Lines Matching refs:xprt
26 void (*xpo_release_ctxt)(struct svc_xprt *xprt, void *ctxt);
120 static inline bool svc_xprt_is_dead(const struct svc_xprt *xprt) in svc_xprt_is_dead() argument
122 return (test_bit(XPT_DEAD, &xprt->xpt_flags) != 0) || in svc_xprt_is_dead()
123 (test_bit(XPT_CLOSE, &xprt->xpt_flags) != 0); in svc_xprt_is_dead()
133 void svc_xprt_received(struct svc_xprt *xprt);
134 void svc_xprt_do_enqueue(struct svc_xprt *xprt);
135 void svc_xprt_enqueue(struct svc_xprt *xprt);
136 void svc_xprt_put(struct svc_xprt *xprt);
137 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt);
138 void svc_close_xprt(struct svc_xprt *xprt);
145 void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *xprt);
147 void svc_xprt_deferred_close(struct svc_xprt *xprt);
149 static inline void svc_xprt_get(struct svc_xprt *xprt) in svc_xprt_get() argument
151 kref_get(&xprt->xpt_ref); in svc_xprt_get()
153 static inline void svc_xprt_set_local(struct svc_xprt *xprt, in svc_xprt_set_local() argument
157 memcpy(&xprt->xpt_local, sa, salen); in svc_xprt_set_local()
158 xprt->xpt_locallen = salen; in svc_xprt_set_local()
160 static inline void svc_xprt_set_remote(struct svc_xprt *xprt, in svc_xprt_set_remote() argument
164 memcpy(&xprt->xpt_remote, sa, salen); in svc_xprt_set_remote()
165 xprt->xpt_remotelen = salen; in svc_xprt_set_remote()
166 snprintf(xprt->xpt_remotebuf, sizeof(xprt->xpt_remotebuf) - 1, in svc_xprt_set_remote()
196 static inline unsigned short svc_xprt_local_port(const struct svc_xprt *xprt) in svc_xprt_local_port() argument
198 return svc_addr_port((const struct sockaddr *)&xprt->xpt_local); in svc_xprt_local_port()
201 static inline unsigned short svc_xprt_remote_port(const struct svc_xprt *xprt) in svc_xprt_remote_port() argument
203 return svc_addr_port((const struct sockaddr *)&xprt->xpt_remote); in svc_xprt_remote_port()