Lines Matching refs:xprt
2 * linux/include/linux/sunrpc/xprt.h
74 int rq_cong; /* has incremented xprt->cong */
105 void (*set_buffer_size)(struct rpc_xprt *xprt, size_t sndsize, size_t rcvsize);
107 void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
108 void (*set_port)(struct rpc_xprt *xprt, unsigned short port);
116 void (*close)(struct rpc_xprt *xprt);
117 void (*destroy)(struct rpc_xprt *xprt);
118 void (*print_stats)(struct rpc_xprt *xprt, struct seq_file *seq);
234 void xprt_release_xprt(struct rpc_xprt *xprt, struct rpc_task *task);
235 void xprt_release_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task);
237 int xprt_destroy(struct rpc_xprt *xprt);
239 static inline u32 *xprt_skip_transport_header(struct rpc_xprt *xprt, u32 *p)
241 return p + xprt->tsh_size;
249 void xprt_wake_pending_tasks(struct rpc_xprt *xprt, int status);
251 void xprt_write_space(struct rpc_xprt *xprt);
254 struct rpc_rqst * xprt_lookup_rqst(struct rpc_xprt *xprt, u32 xid);
257 void xprt_disconnect(struct rpc_xprt *xprt);
262 int xs_setup_udp(struct rpc_xprt *xprt, struct rpc_timeout *to);
263 int xs_setup_tcp(struct rpc_xprt *xprt, struct rpc_timeout *to);
266 * Reserved bit positions in xprt->state
273 static inline void xprt_set_connected(struct rpc_xprt *xprt)
275 set_bit(XPRT_CONNECTED, &xprt->state);
278 static inline void xprt_clear_connected(struct rpc_xprt *xprt)
280 clear_bit(XPRT_CONNECTED, &xprt->state);
283 static inline int xprt_connected(struct rpc_xprt *xprt)
285 return test_bit(XPRT_CONNECTED, &xprt->state);
288 static inline int xprt_test_and_set_connected(struct rpc_xprt *xprt)
290 return test_and_set_bit(XPRT_CONNECTED, &xprt->state);
293 static inline int xprt_test_and_clear_connected(struct rpc_xprt *xprt)
295 return test_and_clear_bit(XPRT_CONNECTED, &xprt->state);
298 static inline void xprt_clear_connecting(struct rpc_xprt *xprt)
301 clear_bit(XPRT_CONNECTING, &xprt->state);
305 static inline int xprt_connecting(struct rpc_xprt *xprt)
307 return test_bit(XPRT_CONNECTING, &xprt->state);
310 static inline int xprt_test_and_set_connecting(struct rpc_xprt *xprt)
312 return test_and_set_bit(XPRT_CONNECTING, &xprt->state);