Lines Matching refs:sn
136 void init_gssp_clnt(struct sunrpc_net *sn) in init_gssp_clnt() argument
138 mutex_init(&sn->gssp_lock); in init_gssp_clnt()
139 sn->gssp_clnt = NULL; in init_gssp_clnt()
144 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gssp_clnt() local
148 mutex_lock(&sn->gssp_lock); in set_gssp_clnt()
151 if (sn->gssp_clnt) in set_gssp_clnt()
152 rpc_shutdown_client(sn->gssp_clnt); in set_gssp_clnt()
153 sn->gssp_clnt = clnt; in set_gssp_clnt()
155 mutex_unlock(&sn->gssp_lock); in set_gssp_clnt()
159 void clear_gssp_clnt(struct sunrpc_net *sn) in clear_gssp_clnt() argument
161 mutex_lock(&sn->gssp_lock); in clear_gssp_clnt()
162 if (sn->gssp_clnt) { in clear_gssp_clnt()
163 rpc_shutdown_client(sn->gssp_clnt); in clear_gssp_clnt()
164 sn->gssp_clnt = NULL; in clear_gssp_clnt()
166 mutex_unlock(&sn->gssp_lock); in clear_gssp_clnt()
169 static struct rpc_clnt *get_gssp_clnt(struct sunrpc_net *sn) in get_gssp_clnt() argument
173 mutex_lock(&sn->gssp_lock); in get_gssp_clnt()
174 clnt = sn->gssp_clnt; in get_gssp_clnt()
177 mutex_unlock(&sn->gssp_lock); in get_gssp_clnt()
183 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in gssp_call() local
187 clnt = get_gssp_clnt(sn); in gssp_call()