Lines Matching refs:xprt
26 void (*xpo_release_ctxt)(struct svc_xprt *xprt, void *ctxt);
30 void (*xpo_handshake)(struct svc_xprt *xprt);
128 static inline bool svc_xprt_is_dead(const struct svc_xprt *xprt) in svc_xprt_is_dead() argument
130 return (test_bit(XPT_DEAD, &xprt->xpt_flags) != 0) || in svc_xprt_is_dead()
131 (test_bit(XPT_CLOSE, &xprt->xpt_flags) != 0); in svc_xprt_is_dead()
143 void svc_xprt_received(struct svc_xprt *xprt);
144 void svc_xprt_enqueue(struct svc_xprt *xprt);
145 void svc_xprt_put(struct svc_xprt *xprt);
146 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt);
147 void svc_xprt_close(struct svc_xprt *xprt);
154 void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *xprt);
156 void svc_xprt_deferred_close(struct svc_xprt *xprt);
158 static inline void svc_xprt_get(struct svc_xprt *xprt) in svc_xprt_get() argument
160 kref_get(&xprt->xpt_ref); in svc_xprt_get()
162 static inline void svc_xprt_set_local(struct svc_xprt *xprt, in svc_xprt_set_local() argument
166 memcpy(&xprt->xpt_local, sa, salen); in svc_xprt_set_local()
167 xprt->xpt_locallen = salen; in svc_xprt_set_local()
169 static inline void svc_xprt_set_remote(struct svc_xprt *xprt, in svc_xprt_set_remote() argument
173 memcpy(&xprt->xpt_remote, sa, salen); in svc_xprt_set_remote()
174 xprt->xpt_remotelen = salen; in svc_xprt_set_remote()
175 snprintf(xprt->xpt_remotebuf, sizeof(xprt->xpt_remotebuf) - 1, in svc_xprt_set_remote()
205 static inline unsigned short svc_xprt_local_port(const struct svc_xprt *xprt) in svc_xprt_local_port() argument
207 return svc_addr_port((const struct sockaddr *)&xprt->xpt_local); in svc_xprt_local_port()
210 static inline unsigned short svc_xprt_remote_port(const struct svc_xprt *xprt) in svc_xprt_remote_port() argument
212 return svc_addr_port((const struct sockaddr *)&xprt->xpt_remote); in svc_xprt_remote_port()