Lines Matching refs:xprt
77 static void svc_bc_sock_free(struct svc_xprt *xprt);
467 static int svc_tcp_has_wspace(struct svc_xprt *xprt) in svc_tcp_has_wspace() argument
469 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_has_wspace()
473 if (test_bit(XPT_LISTENER, &xprt->xpt_flags)) in svc_tcp_has_wspace()
475 required = atomic_read(&xprt->xpt_reserved) + serv->sv_max_mesg; in svc_tcp_has_wspace()
478 atomic_read(&xprt->xpt_reserved) == 0)) in svc_tcp_has_wspace()
496 static void svc_tcp_adjust_wspace(struct svc_xprt *xprt) in svc_tcp_adjust_wspace() argument
498 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_adjust_wspace()
500 if (svc_tcp_has_wspace(xprt)) in svc_tcp_adjust_wspace()
691 static int svc_udp_has_wspace(struct svc_xprt *xprt) in svc_udp_has_wspace() argument
693 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_udp_has_wspace()
694 struct svc_serv *serv = xprt->xpt_server; in svc_udp_has_wspace()
709 static struct svc_xprt *svc_udp_accept(struct svc_xprt *xprt) in svc_udp_accept() argument
858 static struct svc_xprt *svc_tcp_accept(struct svc_xprt *xprt) in svc_tcp_accept() argument
860 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_accept()
1263 static void svc_bc_sock_free(struct svc_xprt *xprt);
1273 static void svc_bc_tcp_sock_detach(struct svc_xprt *xprt) in svc_bc_tcp_sock_detach() argument
1607 static void svc_sock_detach(struct svc_xprt *xprt) in svc_sock_detach() argument
1609 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_sock_detach()
1628 static void svc_tcp_sock_detach(struct svc_xprt *xprt) in svc_tcp_sock_detach() argument
1630 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_sock_detach()
1634 svc_sock_detach(xprt); in svc_tcp_sock_detach()
1636 if (!test_bit(XPT_LISTENER, &xprt->xpt_flags)) { in svc_tcp_sock_detach()
1645 static void svc_sock_free(struct svc_xprt *xprt) in svc_sock_free() argument
1647 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_sock_free()
1668 struct svc_xprt *xprt; in svc_bc_create_socket() local
1680 xprt = &svsk->sk_xprt; in svc_bc_create_socket()
1681 svc_xprt_init(net, &svc_tcp_bc_class, xprt, serv); in svc_bc_create_socket()
1683 serv->sv_bc_xprt = xprt; in svc_bc_create_socket()
1685 return xprt; in svc_bc_create_socket()
1691 static void svc_bc_sock_free(struct svc_xprt *xprt) in svc_bc_sock_free() argument
1693 if (xprt) in svc_bc_sock_free()
1694 kfree(container_of(xprt, struct svc_sock, sk_xprt)); in svc_bc_sock_free()