Lines Matching refs:xprt
30 #define RPC_MAXCWND(xprt) ((xprt)->max_reqs << RPC_CWNDSHIFT) argument
31 #define RPCXPRT_CONGESTED(xprt) ((xprt)->cong >= (xprt)->cwnd) argument
133 void (*set_buffer_size)(struct rpc_xprt *xprt, size_t sndsize, size_t rcvsize);
134 int (*reserve_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
135 void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
136 void (*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task);
137 void (*free_slot)(struct rpc_xprt *xprt,
140 void (*set_port)(struct rpc_xprt *xprt, unsigned short port);
141 void (*connect)(struct rpc_xprt *xprt, struct rpc_task *task);
142 int (*get_srcaddr)(struct rpc_xprt *xprt, char *buf,
144 unsigned short (*get_srcport)(struct rpc_xprt *xprt);
151 void (*timer)(struct rpc_xprt *xprt, struct rpc_task *task);
153 void (*close)(struct rpc_xprt *xprt);
154 void (*destroy)(struct rpc_xprt *xprt);
155 void (*set_connect_timeout)(struct rpc_xprt *xprt,
158 void (*print_stats)(struct rpc_xprt *xprt, struct seq_file *seq);
159 int (*enable_swap)(struct rpc_xprt *xprt);
160 void (*disable_swap)(struct rpc_xprt *xprt);
161 void (*inject_disconnect)(struct rpc_xprt *xprt);
162 int (*bc_setup)(struct rpc_xprt *xprt,
164 size_t (*bc_maxpayload)(struct rpc_xprt *xprt);
165 unsigned int (*bc_num_slots)(struct rpc_xprt *xprt);
167 void (*bc_destroy)(struct rpc_xprt *xprt,
352 unsigned long xprt_reconnect_delay(const struct rpc_xprt *xprt);
353 void xprt_reconnect_backoff(struct rpc_xprt *xprt,
357 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task);
358 int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task);
359 void xprt_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task);
360 void xprt_free_slot(struct rpc_xprt *xprt,
371 void xprt_release_xprt(struct rpc_xprt *xprt, struct rpc_task *task);
372 void xprt_release_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task);
374 struct rpc_xprt * xprt_get(struct rpc_xprt *xprt);
375 void xprt_put(struct rpc_xprt *xprt);
380 void xprt_add_backlog(struct rpc_xprt *xprt, struct rpc_task *task);
381 bool xprt_wake_up_backlog(struct rpc_xprt *xprt, struct rpc_rqst *req);
385 xprt_enable_swap(struct rpc_xprt *xprt) in xprt_enable_swap() argument
387 return xprt->ops->enable_swap(xprt); in xprt_enable_swap()
391 xprt_disable_swap(struct rpc_xprt *xprt) in xprt_disable_swap() argument
393 xprt->ops->disable_swap(xprt); in xprt_disable_swap()
404 void xprt_wake_pending_tasks(struct rpc_xprt *xprt, int status);
405 void xprt_wait_for_buffer_space(struct rpc_xprt *xprt);
406 bool xprt_write_space(struct rpc_xprt *xprt);
407 void xprt_adjust_cwnd(struct rpc_xprt *xprt, struct rpc_task *task, int result);
408 struct rpc_rqst * xprt_lookup_rqst(struct rpc_xprt *xprt, __be32 xid);
414 bool xprt_request_get_cong(struct rpc_xprt *xprt, struct rpc_rqst *req);
415 void xprt_disconnect_done(struct rpc_xprt *xprt);
416 void xprt_force_disconnect(struct rpc_xprt *xprt);
417 void xprt_conditional_disconnect(struct rpc_xprt *xprt, unsigned int cookie);
440 static inline void xprt_set_connected(struct rpc_xprt *xprt) in xprt_set_connected() argument
442 set_bit(XPRT_CONNECTED, &xprt->state); in xprt_set_connected()
445 static inline void xprt_clear_connected(struct rpc_xprt *xprt) in xprt_clear_connected() argument
447 clear_bit(XPRT_CONNECTED, &xprt->state); in xprt_clear_connected()
450 static inline int xprt_connected(struct rpc_xprt *xprt) in xprt_connected() argument
452 return test_bit(XPRT_CONNECTED, &xprt->state); in xprt_connected()
455 static inline int xprt_test_and_set_connected(struct rpc_xprt *xprt) in xprt_test_and_set_connected() argument
457 return test_and_set_bit(XPRT_CONNECTED, &xprt->state); in xprt_test_and_set_connected()
460 static inline int xprt_test_and_clear_connected(struct rpc_xprt *xprt) in xprt_test_and_clear_connected() argument
462 return test_and_clear_bit(XPRT_CONNECTED, &xprt->state); in xprt_test_and_clear_connected()
465 static inline void xprt_clear_connecting(struct rpc_xprt *xprt) in xprt_clear_connecting() argument
468 clear_bit(XPRT_CONNECTING, &xprt->state); in xprt_clear_connecting()
472 static inline int xprt_connecting(struct rpc_xprt *xprt) in xprt_connecting() argument
474 return test_bit(XPRT_CONNECTING, &xprt->state); in xprt_connecting()
477 static inline int xprt_test_and_set_connecting(struct rpc_xprt *xprt) in xprt_test_and_set_connecting() argument
479 return test_and_set_bit(XPRT_CONNECTING, &xprt->state); in xprt_test_and_set_connecting()
482 static inline void xprt_set_bound(struct rpc_xprt *xprt) in xprt_set_bound() argument
484 test_and_set_bit(XPRT_BOUND, &xprt->state); in xprt_set_bound()
487 static inline int xprt_bound(struct rpc_xprt *xprt) in xprt_bound() argument
489 return test_bit(XPRT_BOUND, &xprt->state); in xprt_bound()
492 static inline void xprt_clear_bound(struct rpc_xprt *xprt) in xprt_clear_bound() argument
494 clear_bit(XPRT_BOUND, &xprt->state); in xprt_clear_bound()
497 static inline void xprt_clear_binding(struct rpc_xprt *xprt) in xprt_clear_binding() argument
500 clear_bit(XPRT_BINDING, &xprt->state); in xprt_clear_binding()
504 static inline int xprt_test_and_set_binding(struct rpc_xprt *xprt) in xprt_test_and_set_binding() argument
506 return test_and_set_bit(XPRT_BINDING, &xprt->state); in xprt_test_and_set_binding()
509 void xprt_set_offline_locked(struct rpc_xprt *xprt, struct rpc_xprt_switch *xps);
510 void xprt_set_online_locked(struct rpc_xprt *xprt, struct rpc_xprt_switch *xps);
511 void xprt_delete_locked(struct rpc_xprt *xprt, struct rpc_xprt_switch *xps);