Lines Matching refs:sn
124 void init_gssp_clnt(struct sunrpc_net *sn) in init_gssp_clnt() argument
126 mutex_init(&sn->gssp_lock); in init_gssp_clnt()
127 sn->gssp_clnt = NULL; in init_gssp_clnt()
132 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in set_gssp_clnt() local
136 mutex_lock(&sn->gssp_lock); in set_gssp_clnt()
139 if (sn->gssp_clnt) in set_gssp_clnt()
140 rpc_shutdown_client(sn->gssp_clnt); in set_gssp_clnt()
141 sn->gssp_clnt = clnt; in set_gssp_clnt()
143 mutex_unlock(&sn->gssp_lock); in set_gssp_clnt()
147 void clear_gssp_clnt(struct sunrpc_net *sn) in clear_gssp_clnt() argument
149 mutex_lock(&sn->gssp_lock); in clear_gssp_clnt()
150 if (sn->gssp_clnt) { in clear_gssp_clnt()
151 rpc_shutdown_client(sn->gssp_clnt); in clear_gssp_clnt()
152 sn->gssp_clnt = NULL; in clear_gssp_clnt()
154 mutex_unlock(&sn->gssp_lock); in clear_gssp_clnt()
157 static struct rpc_clnt *get_gssp_clnt(struct sunrpc_net *sn) in get_gssp_clnt() argument
161 mutex_lock(&sn->gssp_lock); in get_gssp_clnt()
162 clnt = sn->gssp_clnt; in get_gssp_clnt()
165 mutex_unlock(&sn->gssp_lock); in get_gssp_clnt()
171 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); in gssp_call() local
175 clnt = get_gssp_clnt(sn); in gssp_call()