Lines Matching refs:xprt

339 static int svc_tcp_has_wspace(struct svc_xprt *xprt)  in svc_tcp_has_wspace()  argument
341 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_has_wspace()
343 if (test_bit(XPT_LISTENER, &xprt->xpt_flags)) in svc_tcp_has_wspace()
348 static void svc_tcp_kill_temp_xprt(struct svc_xprt *xprt) in svc_tcp_kill_temp_xprt() argument
350 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_kill_temp_xprt()
545 struct svc_xprt *xprt = rqstp->rq_xprt; in svc_udp_sendto() local
546 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_udp_sendto()
566 mutex_lock(&xprt->xpt_mutex); in svc_udp_sendto()
568 if (svc_xprt_is_dead(xprt)) in svc_udp_sendto()
581 trace_svcsock_udp_send(xprt, err); in svc_udp_sendto()
583 mutex_unlock(&xprt->xpt_mutex); in svc_udp_sendto()
589 mutex_unlock(&xprt->xpt_mutex); in svc_udp_sendto()
593 static int svc_udp_has_wspace(struct svc_xprt *xprt) in svc_udp_has_wspace() argument
595 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_udp_has_wspace()
596 struct svc_serv *serv = xprt->xpt_server; in svc_udp_has_wspace()
611 static struct svc_xprt *svc_udp_accept(struct svc_xprt *xprt) in svc_udp_accept() argument
617 static void svc_udp_kill_temp_xprt(struct svc_xprt *xprt) in svc_udp_kill_temp_xprt() argument
734 static struct svc_xprt *svc_tcp_accept(struct svc_xprt *xprt) in svc_tcp_accept() argument
736 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_accept()
757 trace_svcsock_accept_err(xprt, serv->sv_name, err); in svc_tcp_accept()
764 trace_svcsock_getpeername_err(xprt, serv->sv_name, err); in svc_tcp_accept()
1154 struct svc_xprt *xprt = rqstp->rq_xprt; in svc_tcp_sendto() local
1155 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_sendto()
1165 mutex_lock(&xprt->xpt_mutex); in svc_tcp_sendto()
1166 if (svc_xprt_is_dead(xprt)) in svc_tcp_sendto()
1171 trace_svcsock_tcp_send(xprt, err < 0 ? (long)err : sent); in svc_tcp_sendto()
1176 mutex_unlock(&xprt->xpt_mutex); in svc_tcp_sendto()
1181 mutex_unlock(&xprt->xpt_mutex); in svc_tcp_sendto()
1185 xprt->xpt_server->sv_name, in svc_tcp_sendto()
1188 svc_xprt_deferred_close(xprt); in svc_tcp_sendto()
1190 mutex_unlock(&xprt->xpt_mutex); in svc_tcp_sendto()
1491 static void svc_sock_detach(struct svc_xprt *xprt) in svc_sock_detach() argument
1493 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_sock_detach()
1508 static void svc_tcp_sock_detach(struct svc_xprt *xprt) in svc_tcp_sock_detach() argument
1510 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_sock_detach()
1512 svc_sock_detach(xprt); in svc_tcp_sock_detach()
1514 if (!test_bit(XPT_LISTENER, &xprt->xpt_flags)) { in svc_tcp_sock_detach()
1523 static void svc_sock_free(struct svc_xprt *xprt) in svc_sock_free() argument
1525 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_sock_free()