Home
last modified time | relevance | path

Searched refs:clnt (Results 1 – 25 of 71) sorted by relevance

123

/openbmc/linux/net/sunrpc/
H A Dclnt.c78 static int rpc_ping(struct rpc_clnt *clnt);
79 static int rpc_ping_noreply(struct rpc_clnt *clnt);
82 static void rpc_register_client(struct rpc_clnt *clnt) in rpc_register_client() argument
84 struct net *net = rpc_net_ns(clnt); in rpc_register_client()
88 list_add(&clnt->cl_clients, &sn->all_clients); in rpc_register_client()
92 static void rpc_unregister_client(struct rpc_clnt *clnt) in rpc_unregister_client() argument
94 struct net *net = rpc_net_ns(clnt); in rpc_unregister_client()
98 list_del(&clnt->cl_clients); in rpc_unregister_client()
102 static void __rpc_clnt_remove_pipedir(struct rpc_clnt *clnt) in __rpc_clnt_remove_pipedir() argument
104 rpc_remove_client_dir(clnt); in __rpc_clnt_remove_pipedir()
[all …]
H A Ddebugfs.c24 struct rpc_clnt *clnt = task->tk_client; in tasks_show() local
35 clnt->cl_clid, xid, rpc_task_timeout(task), task->tk_ops, in tasks_show()
36 clnt->cl_program->name, clnt->cl_vers, rpc_proc_name(task), in tasks_show()
43 __acquires(&clnt->cl_lock) in tasks_start()
45 struct rpc_clnt *clnt = f->private; in tasks_start() local
49 spin_lock(&clnt->cl_lock); in tasks_start()
50 list_for_each_entry(task, &clnt->cl_tasks, tk_task) in tasks_start()
59 struct rpc_clnt *clnt = f->private; in tasks_next() local
66 if (next == &clnt->cl_tasks) in tasks_next()
73 __releases(&clnt->cl_lock) in tasks_stop()
[all …]
H A Drpcb_clnt.c181 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()
[all …]
H A Dstats.c124 struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt) in rpc_alloc_iostats() argument
129 stats = kcalloc(clnt->cl_maxproc, sizeof(*stats), GFP_KERNEL); in rpc_alloc_iostats()
131 for (i = 0; i < clnt->cl_maxproc; i++) in rpc_alloc_iostats()
247 static int do_print_stats(struct rpc_clnt *clnt, struct rpc_xprt *xprt, void *seqv) in do_print_stats() argument
255 void rpc_clnt_show_stats(struct seq_file *seq, struct rpc_clnt *clnt) in rpc_clnt_show_stats() argument
257 unsigned int op, maxproc = clnt->cl_maxproc; in rpc_clnt_show_stats()
259 if (!clnt->cl_metrics) in rpc_clnt_show_stats()
264 clnt->cl_prog, clnt->cl_vers, clnt->cl_program->name); in rpc_clnt_show_stats()
266 rpc_clnt_iterate_for_each_xprt(clnt, do_print_stats, seq); in rpc_clnt_show_stats()
271 struct rpc_clnt *next = clnt; in rpc_clnt_show_stats()
[all …]
H A Dauth_unix.c29 unx_create(const struct rpc_auth_create_args *args, struct rpc_clnt *clnt) in unx_create() argument
113 struct rpc_clnt *clnt = task->tk_client; in unx_marshal() local
118 struct user_namespace *userns = clnt->cl_cred ? in unx_marshal()
119 clnt->cl_cred->user_ns : &init_user_ns; in unx_marshal()
129 if (xdr_stream_encode_opaque(xdr, clnt->cl_nodename, in unx_marshal()
130 clnt->cl_nodelen) < 0) in unx_marshal()
H A Dsysfs.h24 void rpc_sysfs_client_setup(struct rpc_clnt *clnt,
27 void rpc_sysfs_client_destroy(struct rpc_clnt *clnt);
H A Dauth_tls.c50 static int tls_probe(struct rpc_clnt *clnt) in tls_probe() argument
56 .rpc_client = clnt, in tls_probe()
74 struct rpc_clnt *clnt) in tls_create() argument
H A Drpc_pipe.c400 struct rpc_clnt *clnt = m->private; in rpc_show_info() local
404 rcu_dereference(clnt->cl_xprt)->servername); in rpc_show_info()
405 seq_printf(m, "service: %s (%d) version %d\n", clnt->cl_program->name, in rpc_show_info()
406 clnt->cl_prog, clnt->cl_vers); in rpc_show_info()
407 seq_printf(m, "address: %s\n", rpc_peeraddr2str(clnt, RPC_DISPLAY_ADDR)); in rpc_show_info()
408 seq_printf(m, "protocol: %s\n", rpc_peeraddr2str(clnt, RPC_DISPLAY_PROTO)); in rpc_show_info()
409 seq_printf(m, "port: %s\n", rpc_peeraddr2str(clnt, RPC_DISPLAY_PORT)); in rpc_show_info()
417 struct rpc_clnt *clnt = NULL; in rpc_info_open() local
425 clnt = RPC_I(inode)->private; in rpc_info_open()
426 if (clnt != NULL && refcount_inc_not_zero(&clnt->cl_count)) { in rpc_info_open()
[all …]
H A Dsysfs.c517 void rpc_sysfs_client_setup(struct rpc_clnt *clnt, in rpc_sysfs_client_setup() argument
529 net, clnt->cl_clid); in rpc_sysfs_client_setup()
534 clnt->cl_sysfs = rpc_client; in rpc_sysfs_client_setup()
535 rpc_client->clnt = clnt; in rpc_sysfs_client_setup()
590 void rpc_sysfs_client_destroy(struct rpc_clnt *clnt) in rpc_sysfs_client_destroy() argument
592 struct rpc_sysfs_client *rpc_client = clnt->cl_sysfs; in rpc_sysfs_client_destroy()
601 clnt->cl_sysfs = NULL; in rpc_sysfs_client_destroy()
/openbmc/linux/net/9p/
H A Dclient.c57 inline int p9_is_proto_dotl(struct p9_client *clnt) in p9_is_proto_dotl() argument
59 return clnt->proto_version == p9_proto_2000L; in p9_is_proto_dotl()
63 inline int p9_is_proto_dotu(struct p9_client *clnt) in p9_is_proto_dotu() argument
65 return clnt->proto_version == p9_proto_2000u; in p9_is_proto_dotu()
69 int p9_show_client_options(struct seq_file *m, struct p9_client *clnt) in p9_show_client_options() argument
71 if (clnt->msize != DEFAULT_MSIZE) in p9_show_client_options()
72 seq_printf(m, ",msize=%u", clnt->msize); in p9_show_client_options()
73 seq_printf(m, ",trans=%s", clnt->trans_mod->name); in p9_show_client_options()
75 switch (clnt->proto_version) { in p9_show_client_options()
87 if (clnt->trans_mod->show_options) in p9_show_client_options()
[all …]
/openbmc/linux/include/trace/events/
H A D9p.h125 TP_PROTO(struct p9_client *clnt, int8_t type, int tag),
127 TP_ARGS(clnt, type, tag),
130 __field( void *, clnt )
136 __entry->clnt = clnt;
142 (long)__entry->clnt, show_9p_op(__entry->type),
147 TP_PROTO(struct p9_client *clnt, int8_t type, int tag, int err),
149 TP_ARGS(clnt, type, tag, err),
152 __field( void *, clnt )
159 __entry->clnt = clnt;
166 (long)__entry->clnt, show_9p_op(__entry->type),
[all …]
H A Dsunrpc.h9 #include <linux/sunrpc/clnt.h>
111 const struct rpc_clnt *clnt
114 TP_ARGS(clnt),
121 __entry->client_id = clnt->cl_clid;
131 const struct rpc_clnt *clnt \
133 TP_ARGS(clnt))
170 const struct rpc_clnt *clnt,
175 TP_ARGS(clnt, xprt, args),
181 __string(program, clnt->cl_program->name)
188 __entry->client_id = clnt
[all...]
/openbmc/linux/net/sunrpc/auth_gss/
H A Dgss_rpc_upcall.c104 struct rpc_clnt *clnt; in gssp_rpc_create() local
107 clnt = rpc_create(&args); in gssp_rpc_create()
108 if (IS_ERR(clnt)) { in gssp_rpc_create()
110 "client (errno %ld).\n", PTR_ERR(clnt)); in gssp_rpc_create()
111 result = PTR_ERR(clnt); in gssp_rpc_create()
117 "%p)\n", clnt); in gssp_rpc_create()
118 *_clnt = clnt; in gssp_rpc_create()
133 struct rpc_clnt *clnt; in set_gssp_clnt() local
137 ret = gssp_rpc_create(net, &clnt); in set_gssp_clnt()
141 sn->gssp_clnt = clnt; in set_gssp_clnt()
[all …]
H A Dauth_gss.c79 struct rpc_clnt *clnt; member
904 dentry = rpc_mkpipe_dentry(dir, p->name, p->clnt, p->pipe); in gss_pipe_dentry_create()
916 static struct gss_pipe *gss_pipe_alloc(struct rpc_clnt *clnt, in gss_pipe_alloc() argument
932 p->clnt = clnt; in gss_pipe_alloc()
945 struct rpc_clnt *clnt; member
970 gss_pipe = gss_pipe_alloc(args->clnt, args->name, args->upcall_ops); in gss_pipe_alloc_pdo()
976 static struct gss_pipe *gss_pipe_get(struct rpc_clnt *clnt, in gss_pipe_get() argument
980 struct net *net = rpc_net_ns(clnt); in gss_pipe_get()
983 .clnt = clnt, in gss_pipe_get()
989 &clnt->cl_pipedir_objects, in gss_pipe_get()
[all …]
/openbmc/linux/include/linux/sunrpc/
H A Dclnt.h36 struct rpc_clnt *clnt; member
158 void (*add_xprt_test)(struct rpc_clnt *clnt,
192 struct rpc_xprt *rpc_task_get_xprt(struct rpc_clnt *clnt,
208 int rpc_call_async(struct rpc_clnt *clnt,
212 int rpc_call_sync(struct rpc_clnt *clnt,
214 struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred,
228 int rpc_clnt_iterate_for_each_xprt(struct rpc_clnt *clnt,
232 int rpc_clnt_test_and_add_xprt(struct rpc_clnt *clnt,
242 void rpc_set_connect_timeout(struct rpc_clnt *clnt,
259 bool rpc_clnt_xprt_switch_has_addr(struct rpc_clnt *clnt,
[all …]
H A Dsched.h219 unsigned long rpc_cancel_tasks(struct rpc_clnt *clnt, int error,
292 int rpc_clnt_swap_activate(struct rpc_clnt *clnt);
293 void rpc_clnt_swap_deactivate(struct rpc_clnt *clnt);
296 rpc_clnt_swap_activate(struct rpc_clnt *clnt) in rpc_clnt_swap_activate()
302 rpc_clnt_swap_deactivate(struct rpc_clnt *clnt) in rpc_clnt_swap_deactivate()
295 rpc_clnt_swap_activate(struct rpc_clnt * clnt) rpc_clnt_swap_activate() argument
301 rpc_clnt_swap_deactivate(struct rpc_clnt * clnt) rpc_clnt_swap_deactivate() argument
H A Dmetrics.h95 static inline struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt) { return NULL; } in rpc_alloc_iostats() argument
103 static inline void rpc_clnt_show_stats(struct seq_file *seq, struct rpc_clnt *clnt) {} in rpc_clnt_show_stats() argument
/openbmc/linux/include/net/9p/
H A Dclient.h149 struct p9_client *clnt; member
180 int p9_show_client_options(struct seq_file *m, struct p9_client *clnt);
187 void p9_client_destroy(struct p9_client *clnt);
188 void p9_client_disconnect(struct p9_client *clnt);
189 void p9_client_begin_disconnect(struct p9_client *clnt);
190 struct p9_fid *p9_client_attach(struct p9_client *clnt, struct p9_fid *afid,
211 int p9dirent_read(struct p9_client *clnt, char *buf, int len,
285 int p9stat_read(struct p9_client *clnt, char *buf, int len,
289 int p9_is_proto_dotu(struct p9_client *clnt);
290 int p9_is_proto_dotl(struct p9_client *clnt);
/openbmc/linux/fs/9p/
H A Dv9fs.c152 return p9_show_client_options(m, v9ses->clnt); in v9fs_show_options()
410 v9ses->clnt = p9_client_create(dev_name, data); in v9fs_session_init()
411 if (IS_ERR(v9ses->clnt)) { in v9fs_session_init()
412 rc = PTR_ERR(v9ses->clnt); in v9fs_session_init()
419 if (p9_is_proto_dotl(v9ses->clnt)) { in v9fs_session_init()
422 } else if (p9_is_proto_dotu(v9ses->clnt)) { in v9fs_session_init()
430 v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ; in v9fs_session_init()
459 fid = p9_client_attach(v9ses->clnt, NULL, v9ses->uname, INVALID_UID, in v9fs_session_init()
490 p9_client_destroy(v9ses->clnt); in v9fs_session_init()
505 if (v9ses->clnt) { in v9fs_session_close()
[all …]
H A Dvfs_dir.c97 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir()
122 err = p9stat_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir()
158 buflen = fid->clnt->msize - P9_READDIRHDRSZ; in v9fs_dir_readdir_dotl()
177 err = p9dirent_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir_dotl()
/openbmc/linux/fs/lockd/
H A Dmon.c95 struct rpc_clnt *clnt; in nsm_mon_unmon() local
111 clnt = nsm_create(host->net, host->nodename); in nsm_mon_unmon()
112 if (IS_ERR(clnt)) { in nsm_mon_unmon()
114 "status=%ld, net=%x\n", PTR_ERR(clnt), in nsm_mon_unmon()
116 return PTR_ERR(clnt); in nsm_mon_unmon()
119 msg.rpc_proc = &clnt->cl_procinfo[proc]; in nsm_mon_unmon()
120 status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFTCONN); in nsm_mon_unmon()
124 rpc_force_rebind(clnt); in nsm_mon_unmon()
125 status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFTCONN); in nsm_mon_unmon()
133 rpc_shutdown_client(clnt); in nsm_mon_unmon()
H A Dhost.c180 struct rpc_clnt *clnt; in nlm_destroy_host_locked() local
190 clnt = host->h_rpcclnt; in nlm_destroy_host_locked()
191 if (clnt != NULL) in nlm_destroy_host_locked()
192 rpc_shutdown_client(clnt); in nlm_destroy_host_locked()
430 struct rpc_clnt *clnt; in nlm_bind_host() local
441 if ((clnt = host->h_rpcclnt) != NULL) { in nlm_bind_host()
479 clnt = rpc_create(&args); in nlm_bind_host()
480 if (!IS_ERR(clnt)) in nlm_bind_host()
481 host->h_rpcclnt = clnt; in nlm_bind_host()
484 clnt = NULL; in nlm_bind_host()
[all …]
H A Dclntproc.c267 struct rpc_clnt *clnt; in nlmclnt_call() local
285 if ((clnt = nlm_bind_host(host)) == NULL) in nlmclnt_call()
287 msg.rpc_proc = &clnt->cl_procinfo[proc]; in nlmclnt_call()
290 if ((status = rpc_call_sync(clnt, &msg, 0)) < 0) { in nlmclnt_call()
345 struct rpc_clnt *clnt; in __nlm_async_call() local
357 clnt = nlm_bind_host(host); in __nlm_async_call()
358 if (clnt == NULL) in __nlm_async_call()
360 msg->rpc_proc = &clnt->cl_procinfo[proc]; in __nlm_async_call()
361 task_setup_data.rpc_client = clnt; in __nlm_async_call()
/openbmc/linux/fs/nfs/
H A Dmount_clnt.c261 struct rpc_clnt *clnt; in nfs_umount() local
270 clnt = rpc_create(&args); in nfs_umount()
271 if (IS_ERR(clnt)) in nfs_umount()
278 msg.rpc_proc = &clnt->cl_procinfo[MOUNTPROC3_UMNT]; in nfs_umount()
280 msg.rpc_proc = &clnt->cl_procinfo[MOUNTPROC_UMNT]; in nfs_umount()
282 status = rpc_call_sync(clnt, &msg, 0); in nfs_umount()
283 rpc_shutdown_client(clnt); in nfs_umount()
292 PTR_ERR(clnt)); in nfs_umount()
H A Dsysfs.c225 static void shutdown_client(struct rpc_clnt *clnt) in shutdown_client() argument
227 clnt->cl_shutdown = 1; in shutdown_client()
228 rpc_cancel_tasks(clnt, -EIO, shutdown_match_client, NULL); in shutdown_client()
278 struct rpc_clnt *clnt, const char *uniq) in nfs_sysfs_link_rpc_client() argument
283 strscpy(name, clnt->cl_program->name, sizeof(name)); in nfs_sysfs_link_rpc_client()
288 &clnt->cl_sysfs->kobject, name); in nfs_sysfs_link_rpc_client()

123