• Home
  • Raw
  • Download

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);
147 void (*timer)(struct rpc_xprt *xprt, struct rpc_task *task);
149 void (*close)(struct rpc_xprt *xprt);
150 void (*destroy)(struct rpc_xprt *xprt);
151 void (*set_connect_timeout)(struct rpc_xprt *xprt,
154 void (*print_stats)(struct rpc_xprt *xprt, struct seq_file *seq);
155 int (*enable_swap)(struct rpc_xprt *xprt);
156 void (*disable_swap)(struct rpc_xprt *xprt);
157 void (*inject_disconnect)(struct rpc_xprt *xprt);
158 int (*bc_setup)(struct rpc_xprt *xprt,
160 size_t (*bc_maxpayload)(struct rpc_xprt *xprt);
161 unsigned int (*bc_num_slots)(struct rpc_xprt *xprt);
163 void (*bc_destroy)(struct rpc_xprt *xprt,
347 unsigned long xprt_reconnect_delay(const struct rpc_xprt *xprt);
348 void xprt_reconnect_backoff(struct rpc_xprt *xprt,
352 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task);
353 int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task);
354 void xprt_alloc_slot(struct rpc_xprt *xprt, struct rpc_task *task);
355 void xprt_free_slot(struct rpc_xprt *xprt,
367 void xprt_release_xprt(struct rpc_xprt *xprt, struct rpc_task *task);
368 void xprt_release_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task);
370 struct rpc_xprt * xprt_get(struct rpc_xprt *xprt);
371 void xprt_put(struct rpc_xprt *xprt);
376 void xprt_add_backlog(struct rpc_xprt *xprt, struct rpc_task *task);
377 bool xprt_wake_up_backlog(struct rpc_xprt *xprt, struct rpc_rqst *req);
381 xprt_enable_swap(struct rpc_xprt *xprt) in xprt_enable_swap() argument
383 return xprt->ops->enable_swap(xprt); in xprt_enable_swap()
387 xprt_disable_swap(struct rpc_xprt *xprt) in xprt_disable_swap() argument
389 xprt->ops->disable_swap(xprt); in xprt_disable_swap()
400 void xprt_wake_pending_tasks(struct rpc_xprt *xprt, int status);
401 void xprt_wait_for_buffer_space(struct rpc_xprt *xprt);
402 bool xprt_write_space(struct rpc_xprt *xprt);
403 void xprt_adjust_cwnd(struct rpc_xprt *xprt, struct rpc_task *task, int result);
404 struct rpc_rqst * xprt_lookup_rqst(struct rpc_xprt *xprt, __be32 xid);
410 bool xprt_request_get_cong(struct rpc_xprt *xprt, struct rpc_rqst *req);
411 void xprt_disconnect_done(struct rpc_xprt *xprt);
412 void xprt_force_disconnect(struct rpc_xprt *xprt);
413 void xprt_conditional_disconnect(struct rpc_xprt *xprt, unsigned int cookie);
436 static inline void xprt_set_connected(struct rpc_xprt *xprt) in xprt_set_connected() argument
438 set_bit(XPRT_CONNECTED, &xprt->state); in xprt_set_connected()
441 static inline void xprt_clear_connected(struct rpc_xprt *xprt) in xprt_clear_connected() argument
443 clear_bit(XPRT_CONNECTED, &xprt->state); in xprt_clear_connected()
446 static inline int xprt_connected(struct rpc_xprt *xprt) in xprt_connected() argument
448 return test_bit(XPRT_CONNECTED, &xprt->state); in xprt_connected()
451 static inline int xprt_test_and_set_connected(struct rpc_xprt *xprt) in xprt_test_and_set_connected() argument
453 return test_and_set_bit(XPRT_CONNECTED, &xprt->state); in xprt_test_and_set_connected()
456 static inline int xprt_test_and_clear_connected(struct rpc_xprt *xprt) in xprt_test_and_clear_connected() argument
458 return test_and_clear_bit(XPRT_CONNECTED, &xprt->state); in xprt_test_and_clear_connected()
461 static inline void xprt_clear_connecting(struct rpc_xprt *xprt) in xprt_clear_connecting() argument
464 clear_bit(XPRT_CONNECTING, &xprt->state); in xprt_clear_connecting()
468 static inline int xprt_connecting(struct rpc_xprt *xprt) in xprt_connecting() argument
470 return test_bit(XPRT_CONNECTING, &xprt->state); in xprt_connecting()
473 static inline int xprt_test_and_set_connecting(struct rpc_xprt *xprt) in xprt_test_and_set_connecting() argument
475 return test_and_set_bit(XPRT_CONNECTING, &xprt->state); in xprt_test_and_set_connecting()
478 static inline void xprt_set_bound(struct rpc_xprt *xprt) in xprt_set_bound() argument
480 test_and_set_bit(XPRT_BOUND, &xprt->state); in xprt_set_bound()
483 static inline int xprt_bound(struct rpc_xprt *xprt) in xprt_bound() argument
485 return test_bit(XPRT_BOUND, &xprt->state); in xprt_bound()
488 static inline void xprt_clear_bound(struct rpc_xprt *xprt) in xprt_clear_bound() argument
490 clear_bit(XPRT_BOUND, &xprt->state); in xprt_clear_bound()
493 static inline void xprt_clear_binding(struct rpc_xprt *xprt) in xprt_clear_binding() argument
496 clear_bit(XPRT_BINDING, &xprt->state); in xprt_clear_binding()
500 static inline int xprt_test_and_set_binding(struct rpc_xprt *xprt) in xprt_test_and_set_binding() argument
502 return test_and_set_bit(XPRT_BINDING, &xprt->state); in xprt_test_and_set_binding()