Home
last modified time | relevance | path

Searched refs:rpc_xprt (Results 1 – 25 of 35) sorted by relevance

12

/linux/include/linux/sunrpc/
H A Dxprt.h44 struct rpc_xprt;
58 struct rpc_xprt * rq_xprt; /* RPC client */
138 void (*set_buffer_size)(struct rpc_xprt *xprt, size_t sndsize, size_t rcvsize);
139 int (*reserve_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
140 void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
141 void (*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task);
142 void (*free_slot)(struct rpc_xprt *xprt,
145 void (*set_port)(struct rpc_xprt *xprt, unsigned short port);
146 void (*connect)(struct rpc_xprt *xprt, struct rpc_task *task);
147 int (*get_srcaddr)(struct rpc_xprt *xprt, char *buf,
[all …]
H A Dbc_xprt.h21 struct rpc_rqst *xprt_lookup_bc_request(struct rpc_xprt *xprt, __be32 xid);
26 int xprt_setup_backchannel(struct rpc_xprt *, unsigned int min_reqs);
27 void xprt_destroy_backchannel(struct rpc_xprt *, unsigned int max_reqs);
30 int xprt_setup_bc(struct rpc_xprt *xprt, unsigned int min_reqs);
31 void xprt_destroy_bc(struct rpc_xprt *xprt, unsigned int max_reqs);
33 unsigned int xprt_bc_max_slots(struct rpc_xprt *xprt);
48 static inline int xprt_setup_backchannel(struct rpc_xprt *xprt, in xprt_setup_backchannel()
54 static inline void xprt_destroy_backchannel(struct rpc_xprt *xprt, in xprt_destroy_backchannel()
H A Dxprtmultipath.h35 struct rpc_xprt * xpi_cursor;
43 struct rpc_xprt *(*xpi_xprt)(struct rpc_xprt_iter *);
44 struct rpc_xprt *(*xpi_next)(struct rpc_xprt_iter *);
47 extern struct rpc_xprt_switch *xprt_switch_alloc(struct rpc_xprt *xprt,
56 struct rpc_xprt *xprt);
58 struct rpc_xprt *xprt, bool offline);
77 extern struct rpc_xprt *xprt_iter_xprt(struct rpc_xprt_iter *xpi);
78 extern struct rpc_xprt *xprt_iter_get_xprt(struct rpc_xprt_iter *xpi);
79 extern struct rpc_xprt *xprt_iter_get_next(struct rpc_xprt_iter *xpi);
H A Dclnt.h51 struct rpc_xprt __rcu * cl_xprt; /* transport */
159 struct rpc_xprt *xprt,
192 struct rpc_xprt *rpc_task_get_xprt(struct rpc_clnt *clnt,
193 struct rpc_xprt *xprt);
229 int (*fn)(struct rpc_clnt *, struct rpc_xprt *, void *),
234 struct rpc_xprt *xprt,
239 struct rpc_xprt *,
248 struct rpc_xprt *,
256 void rpc_clnt_xprt_switch_add_xprt(struct rpc_clnt *, struct rpc_xprt *);
257 void rpc_clnt_xprt_switch_remove_xprt(struct rpc_clnt *, struct rpc_xprt *);
[all …]
H A Ddebug.h81 struct rpc_xprt;
90 void rpc_xprt_debugfs_register(struct rpc_xprt *);
91 void rpc_xprt_debugfs_unregister(struct rpc_xprt *);
118 rpc_xprt_debugfs_register(struct rpc_xprt *xprt) in rpc_xprt_debugfs_register()
124 rpc_xprt_debugfs_unregister(struct rpc_xprt *xprt) in rpc_xprt_debugfs_unregister()
H A Dsched.h83 struct rpc_xprt * tk_xprt; /* Transport */
119 struct rpc_xprt *rpc_xprt; member
H A Dxprtsock.h20 struct rpc_xprt xprt;
/linux/net/sunrpc/
H A Dxprtmultipath.c24 typedef struct rpc_xprt *(*xprt_switch_find_xprt_t)(struct rpc_xprt_switch *xps,
25 const struct rpc_xprt *cur);
33 struct rpc_xprt *xprt) in xprt_switch_add_xprt_locked()
53 struct rpc_xprt *xprt) in rpc_xprt_switch_add_xprt()
65 struct rpc_xprt *xprt, bool offline) in xprt_switch_remove_xprt_locked()
87 struct rpc_xprt *xprt, bool offline) in rpc_xprt_switch_remove_xprt()
127 struct rpc_xprt_switch *xprt_switch_alloc(struct rpc_xprt *xprt, in xprt_switch_alloc()
155 struct rpc_xprt *xprt; in xprt_switch_free_entries()
158 struct rpc_xprt, xprt_switch); in xprt_switch_free_entries()
235 bool xprt_is_active(const struct rpc_xprt *xprt) in xprt_is_active()
[all …]
H A Dxprt.c72 static void xprt_init(struct rpc_xprt *xprt, struct net *net);
73 static __be32 xprt_alloc_xid(struct rpc_xprt *xprt);
74 static void xprt_destroy(struct rpc_xprt *xprt);
247 static void xprt_clear_locked(struct rpc_xprt *xprt) in xprt_clear_locked()
265 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt()
296 xprt_need_congestion_window_wait(struct rpc_xprt *xprt) in xprt_need_congestion_window_wait()
302 xprt_set_congestion_window_wait(struct rpc_xprt *xprt) in xprt_set_congestion_window_wait()
314 xprt_test_and_clear_congestion_window_wait(struct rpc_xprt *xprt) in xprt_test_and_clear_congestion_window_wait()
329 int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt_cong()
364 static inline int xprt_lock_write(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_lock_write()
[all …]
H A Dsysfs.c62 static inline struct rpc_xprt *
93 struct rpc_xprt *xprt = rpc_sysfs_xprt_kobj_get_xprt(kobj); in rpc_sysfs_xprt_dstaddr_show()
110 struct rpc_xprt *xprt = rpc_sysfs_xprt_kobj_get_xprt(kobj); in rpc_sysfs_xprt_srcaddr_show()
135 struct rpc_xprt *xprt = rpc_sysfs_xprt_kobj_get_xprt(kobj); in rpc_sysfs_xprt_info_show()
169 struct rpc_xprt *xprt = rpc_sysfs_xprt_kobj_get_xprt(kobj); in rpc_sysfs_xprt_state_show()
232 struct rpc_xprt *xprt = rpc_sysfs_xprt_kobj_get_xprt(kobj); in rpc_sysfs_xprt_dstaddr_store()
291 struct rpc_xprt *xprt = rpc_sysfs_xprt_kobj_get_xprt(kobj); in rpc_sysfs_xprt_state_change()
499 struct rpc_xprt *xprt, in rpc_sysfs_xprt_alloc()
547 struct rpc_xprt *xprt, in rpc_sysfs_xprt_switch_setup()
571 struct rpc_xprt *xprt, in rpc_sysfs_xprt_setup()
[all …]
H A Dsysfs.h12 struct rpc_xprt *xprt;
17 struct rpc_xprt *xprt;
29 struct rpc_xprt *xprt, gfp_t gfp_flags);
32 struct rpc_xprt *xprt, gfp_t gfp_flags);
33 void rpc_sysfs_xprt_destroy(struct rpc_xprt *xprt);
H A Dbackchannel_rqst.c22 unsigned int xprt_bc_max_slots(struct rpc_xprt *xprt) in xprt_bc_max_slots()
31 static inline int xprt_need_to_requeue(struct rpc_xprt *xprt) in xprt_need_to_requeue()
75 static struct rpc_rqst *xprt_alloc_bc_req(struct rpc_xprt *xprt) in xprt_alloc_bc_req()
123 int xprt_setup_backchannel(struct rpc_xprt *xprt, unsigned int min_reqs) in xprt_setup_backchannel()
131 int xprt_setup_bc(struct rpc_xprt *xprt, unsigned int min_reqs) in xprt_setup_bc()
202 void xprt_destroy_backchannel(struct rpc_xprt *xprt, unsigned int max_reqs) in xprt_destroy_backchannel()
209 void xprt_destroy_bc(struct rpc_xprt *xprt, unsigned int max_reqs) in xprt_destroy_bc()
236 static struct rpc_rqst *xprt_get_bc_request(struct rpc_xprt *xprt, __be32 xid, in xprt_get_bc_request()
269 struct rpc_xprt *xprt = req->rq_xprt; in xprt_free_bc_request()
276 struct rpc_xprt *xprt = req->rq_xprt; in xprt_free_bc_rqst()
[all …]
H A Dxprtsock.c64 static void xs_close(struct rpc_xprt *xprt);
67 static void xs_tcp_set_socket_timeouts(struct rpc_xprt *xprt,
229 static inline struct rpc_xprt *xprt_from_sock(struct sock *sk) in xprt_from_sock()
231 return (struct rpc_xprt *) sk->sk_user_data; in xprt_from_sock()
234 static inline struct sockaddr *xs_addr(struct rpc_xprt *xprt) in xs_addr()
239 static inline struct sockaddr_un *xs_addr_un(struct rpc_xprt *xprt) in xs_addr_un()
244 static inline struct sockaddr_in *xs_addr_in(struct rpc_xprt *xprt) in xs_addr_in()
249 static inline struct sockaddr_in6 *xs_addr_in6(struct rpc_xprt *xprt) in xs_addr_in6()
254 static void xs_format_common_peer_addresses(struct rpc_xprt *xprt) in xs_format_common_peer_addresses()
295 static void xs_format_common_peer_ports(struct rpc_xprt *xprt) in xs_format_common_peer_ports()
[all …]
H A Dclnt.c263 static struct rpc_xprt *rpc_clnt_set_transport(struct rpc_clnt *clnt, in rpc_clnt_set_transport()
264 struct rpc_xprt *xprt, in rpc_clnt_set_transport()
267 struct rpc_xprt *old; in rpc_clnt_set_transport()
366 struct rpc_xprt *xprt, in rpc_new_client()
462 struct rpc_xprt *xprt) in rpc_create_xprt()
531 struct rpc_xprt *xprt; in rpc_create()
637 struct rpc_xprt *xprt; in __rpc_clone_client()
740 struct rpc_xprt *xprt, *old; in rpc_switch_client_transport()
853 int (*fn)(struct rpc_clnt *, struct rpc_xprt *, void *), in rpc_clnt_iterate_for_each_xprt() argument
863 struct rpc_xprt *xprt = xprt_iter_get_next(&xpi); in rpc_clnt_iterate_for_each_xprt()
[all …]
H A Ddebugfs.c120 static int do_xprt_debugfs(struct rpc_clnt *clnt, struct rpc_xprt *xprt, void *numv) in do_xprt_debugfs()
176 struct rpc_xprt *xprt = f->private; in xprt_info_show()
189 struct rpc_xprt *xprt = inode->i_private; in xprt_info_open()
205 struct rpc_xprt *xprt = inode->i_private; in xprt_info_release()
220 rpc_xprt_debugfs_register(struct rpc_xprt *xprt) in rpc_xprt_debugfs_register()
241 rpc_xprt_debugfs_unregister(struct rpc_xprt *xprt) in rpc_xprt_debugfs_unregister()
H A Drpcb_clnt.c118 struct rpc_xprt * r_xprt;
148 static void rpcb_wake_rpcbind_waiters(struct rpc_xprt *xprt, int status) in rpcb_wake_rpcbind_waiters()
674 struct rpc_xprt *xprt; in rpcb_getport_async()
798 struct rpc_xprt *xprt = map->r_xprt; in rpcb_getport_done()
/linux/net/sunrpc/xprtrdma/
H A Dtransport.c147 xprt_rdma_format_addresses4(struct rpc_xprt *xprt, struct sockaddr *sap) in xprt_rdma_format_addresses4()
159 xprt_rdma_format_addresses6(struct rpc_xprt *xprt, struct sockaddr *sap) in xprt_rdma_format_addresses6()
171 xprt_rdma_format_addresses(struct rpc_xprt *xprt, struct sockaddr *sap) in xprt_rdma_format_addresses()
200 xprt_rdma_free_addresses(struct rpc_xprt *xprt) in xprt_rdma_free_addresses()
227 struct rpc_xprt *xprt = &r_xprt->rx_xprt; in xprt_rdma_connect_worker()
259 xprt_rdma_inject_disconnect(struct rpc_xprt *xprt) in xprt_rdma_inject_disconnect()
275 xprt_rdma_destroy(struct rpc_xprt *xprt) in xprt_rdma_destroy()
301 static struct rpc_xprt *
304 struct rpc_xprt *xprt; in xprt_setup_rdma()
374 void xprt_rdma_close(struct rpc_xprt *xprt) in xprt_rdma_close()
[all …]
H A Dbackchannel.c25 int xprt_rdma_bc_setup(struct rpc_xprt *xprt, unsigned int reqs) in xprt_rdma_bc_setup()
40 size_t xprt_rdma_bc_maxpayload(struct rpc_xprt *xprt) in xprt_rdma_bc_maxpayload()
51 unsigned int xprt_rdma_bc_max_slots(struct rpc_xprt *xprt) in xprt_rdma_bc_max_slots()
99 struct rpc_xprt *xprt = rqst->rq_xprt; in xprt_rdma_bc_send_reply()
131 void xprt_rdma_bc_destroy(struct rpc_xprt *xprt, unsigned int reqs) in xprt_rdma_bc_destroy()
155 struct rpc_xprt *xprt = rqst->rq_xprt; in xprt_rdma_bc_free_rqst()
169 struct rpc_xprt *xprt = &r_xprt->rx_xprt; in rpcrdma_bc_rqst_get()
222 struct rpc_xprt *xprt = &r_xprt->rx_xprt; in rpcrdma_bc_receive_call()
H A Dxprt_rdma.h92 struct rpc_xprt *re_xprt;
430 struct rpc_xprt rx_xprt;
584 void xprt_rdma_format_addresses(struct rpc_xprt *xprt, struct sockaddr *sap);
585 void xprt_rdma_free_addresses(struct rpc_xprt *xprt);
586 void xprt_rdma_close(struct rpc_xprt *xprt);
587 void xprt_rdma_print_stats(struct rpc_xprt *xprt, struct seq_file *seq);
594 int xprt_rdma_bc_setup(struct rpc_xprt *, unsigned int);
595 size_t xprt_rdma_bc_maxpayload(struct rpc_xprt *);
596 unsigned int xprt_rdma_bc_max_slots(struct rpc_xprt *);
600 void xprt_rdma_bc_destroy(struct rpc_xprt *, unsigned int);
H A Dsvc_rdma_backchannel.c23 struct rpc_xprt *xprt = sxprt->xpt_bc_xprt; in svc_rdma_handle_bc_reply()
138 struct rpc_xprt *xprt = rqst->rq_xprt; in rpcrdma_bc_send_request()
197 xprt_rdma_bc_close(struct rpc_xprt *xprt) in xprt_rdma_bc_close()
204 xprt_rdma_bc_put(struct rpc_xprt *xprt) in xprt_rdma_bc_put()
234 static struct rpc_xprt *
237 struct rpc_xprt *xprt; in xprt_setup_rdma_bc()
H A Drpc_rdma.c987 static void __rpcrdma_update_cwnd_locked(struct rpc_xprt *xprt, in __rpcrdma_update_cwnd_locked()
997 struct rpc_xprt *xprt = &r_xprt->rx_xprt; in rpcrdma_update_cwnd()
1013 struct rpc_xprt *xprt = &r_xprt->rx_xprt; in rpcrdma_reset_cwnd()
1124 struct rpc_xprt *xprt = &r_xprt->rx_xprt; in rpcrdma_is_bcall()
1354 struct rpc_xprt *xprt = &rep->rr_rxprt->rx_xprt; in rpcrdma_unpin_rqst()
1377 struct rpc_xprt *xprt = &r_xprt->rx_xprt; in rpcrdma_complete_rqst()
1430 struct rpc_xprt *xprt = &r_xprt->rx_xprt; in rpcrdma_reply_handler()
/linux/fs/nfs/
H A Dcallback.c91 static inline void nfs_callback_bc_serv(u32 minorversion, struct rpc_xprt *xprt, in nfs_callback_bc_serv()
102 static inline void nfs_callback_bc_serv(u32 minorversion, struct rpc_xprt *xprt, in nfs_callback_bc_serv()
108 static int nfs_callback_start_svc(int minorversion, struct rpc_xprt *xprt, in nfs_callback_start_svc()
143 struct net *net, struct rpc_xprt *xprt) in nfs_callback_up_net()
225 int nfs_callback_up(u32 minorversion, struct rpc_xprt *xprt) in nfs_callback_up()
H A Dcallback.h190 extern int nfs_callback_up(u32 minorversion, struct rpc_xprt *xprt);
H A Dnfs4_fs.h75 struct rpc_xprt *xprt, void *data);
350 struct nfs41_exchange_id_res *res, struct rpc_xprt *xprt);
/linux/include/trace/events/
H A Dsunrpc.h171 const struct rpc_xprt *xprt,
845 struct rpc_xprt *xprt,
890 struct rpc_xprt *xprt, \
898 struct rpc_xprt *xprt,
946 struct rpc_xprt *xprt, \
1006 const struct rpc_xprt *xprt
1032 const struct rpc_xprt *xprt \
1045 const struct rpc_xprt *xprt,
1073 const struct rpc_xprt *xprt, \
1155 TP_PROTO(const struct rpc_xprt *xpr
[all...]

12