Lines Matching refs:clnt
181 struct rpc_clnt *clnt = sn->rpcb_local_clnt; in rpcb_put_local() local
201 if (clnt) in rpcb_put_local()
202 rpc_shutdown_client(clnt); in rpcb_put_local()
206 static void rpcb_set_local(struct net *net, struct rpc_clnt *clnt, in rpcb_set_local() argument
213 sn->rpcb_local_clnt = clnt; in rpcb_set_local()
250 struct rpc_clnt *clnt, *clnt4; in rpcb_create_af_local() local
258 clnt = rpc_create(&args); in rpcb_create_af_local()
259 if (IS_ERR(clnt)) { in rpcb_create_af_local()
260 result = PTR_ERR(clnt); in rpcb_create_af_local()
264 clnt4 = rpc_bind_new_program(clnt, &rpcb_program, RPCBVERS_4); in rpcb_create_af_local()
268 rpcb_set_local(net, clnt, clnt4, true); in rpcb_create_af_local()
317 struct rpc_clnt *clnt, *clnt4; in rpcb_create_local_net() local
320 clnt = rpc_create(&args); in rpcb_create_local_net()
321 if (IS_ERR(clnt)) { in rpcb_create_local_net()
322 result = PTR_ERR(clnt); in rpcb_create_local_net()
331 clnt4 = rpc_bind_new_program(clnt, &rpcb_program, RPCBVERS_4); in rpcb_create_local_net()
335 rpcb_set_local(net, clnt, clnt4, false); in rpcb_create_local_net()
403 static int rpcb_register_call(struct sunrpc_net *sn, struct rpc_clnt *clnt, struct rpc_message *msg… in rpcb_register_call() argument
412 error = rpc_call_sync(clnt, msg, flags); in rpcb_register_call()
646 static struct rpc_clnt *rpcb_find_transport_owner(struct rpc_clnt *clnt) in rpcb_find_transport_owner() argument
648 struct rpc_clnt *parent = clnt->cl_parent; in rpcb_find_transport_owner()
649 struct rpc_xprt_switch *xps = rcu_access_pointer(clnt->cl_xpi.xpi_xpswitch); in rpcb_find_transport_owner()
651 while (parent != clnt) { in rpcb_find_transport_owner()
654 if (clnt->cl_autobind) in rpcb_find_transport_owner()
656 clnt = parent; in rpcb_find_transport_owner()
659 return clnt; in rpcb_find_transport_owner()
671 struct rpc_clnt *clnt; in rpcb_getport_async() local
684 clnt = rpcb_find_transport_owner(task->tk_client); in rpcb_getport_async()
705 salen = rpc_peeraddr(clnt, sap, sizeof(addr)); in rpcb_getport_async()
727 trace_rpcb_getport(clnt, task, bind_version); in rpcb_getport_async()
730 clnt->cl_nodename, in rpcb_getport_async()
733 clnt->cl_cred, in rpcb_getport_async()
745 map->r_prog = clnt->cl_prog; in rpcb_getport_async()
746 map->r_vers = clnt->cl_vers; in rpcb_getport_async()