Lines Matching refs:sn
123 void init_gssp_clnt(struct sunrpc_net *sn) in init_gssp_clnt() argument
125 mutex_init(&sn->gssp_lock); in init_gssp_clnt()
126 sn->gssp_clnt = NULL; in init_gssp_clnt()
131 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gssp_clnt() local
135 mutex_lock(&sn->gssp_lock); in set_gssp_clnt()
138 if (sn->gssp_clnt) in set_gssp_clnt()
139 rpc_shutdown_client(sn->gssp_clnt); in set_gssp_clnt()
140 sn->gssp_clnt = clnt; in set_gssp_clnt()
142 mutex_unlock(&sn->gssp_lock); in set_gssp_clnt()
146 void clear_gssp_clnt(struct sunrpc_net *sn) in clear_gssp_clnt() argument
148 mutex_lock(&sn->gssp_lock); in clear_gssp_clnt()
149 if (sn->gssp_clnt) { in clear_gssp_clnt()
150 rpc_shutdown_client(sn->gssp_clnt); in clear_gssp_clnt()
151 sn->gssp_clnt = NULL; in clear_gssp_clnt()
153 mutex_unlock(&sn->gssp_lock); in clear_gssp_clnt()
156 static struct rpc_clnt *get_gssp_clnt(struct sunrpc_net *sn) in get_gssp_clnt() argument
160 mutex_lock(&sn->gssp_lock); in get_gssp_clnt()
161 clnt = sn->gssp_clnt; in get_gssp_clnt()
164 mutex_unlock(&sn->gssp_lock); in get_gssp_clnt()
170 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in gssp_call() local
174 clnt = get_gssp_clnt(sn); in gssp_call()