Lines Matching refs:xprt
77 static void svc_bc_sock_free(struct svc_xprt *xprt);
442 static int svc_tcp_has_wspace(struct svc_xprt *xprt) in svc_tcp_has_wspace() argument
444 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_has_wspace()
448 if (test_bit(XPT_LISTENER, &xprt->xpt_flags)) in svc_tcp_has_wspace()
450 required = atomic_read(&xprt->xpt_reserved) + serv->sv_max_mesg; in svc_tcp_has_wspace()
453 atomic_read(&xprt->xpt_reserved) == 0)) in svc_tcp_has_wspace()
471 static void svc_tcp_adjust_wspace(struct svc_xprt *xprt) in svc_tcp_adjust_wspace() argument
473 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_adjust_wspace()
475 if (svc_tcp_has_wspace(xprt)) in svc_tcp_adjust_wspace()
666 static int svc_udp_has_wspace(struct svc_xprt *xprt) in svc_udp_has_wspace() argument
668 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_udp_has_wspace()
669 struct svc_serv *serv = xprt->xpt_server; in svc_udp_has_wspace()
684 static struct svc_xprt *svc_udp_accept(struct svc_xprt *xprt) in svc_udp_accept() argument
833 static struct svc_xprt *svc_tcp_accept(struct svc_xprt *xprt) in svc_tcp_accept() argument
835 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_accept()
1238 static void svc_bc_sock_free(struct svc_xprt *xprt);
1248 static void svc_bc_tcp_sock_detach(struct svc_xprt *xprt) in svc_bc_tcp_sock_detach() argument
1583 static void svc_sock_detach(struct svc_xprt *xprt) in svc_sock_detach() argument
1585 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_sock_detach()
1604 static void svc_tcp_sock_detach(struct svc_xprt *xprt) in svc_tcp_sock_detach() argument
1606 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_tcp_sock_detach()
1610 svc_sock_detach(xprt); in svc_tcp_sock_detach()
1612 if (!test_bit(XPT_LISTENER, &xprt->xpt_flags)) { in svc_tcp_sock_detach()
1621 static void svc_sock_free(struct svc_xprt *xprt) in svc_sock_free() argument
1623 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt); in svc_sock_free()
1644 struct svc_xprt *xprt; in svc_bc_create_socket() local
1656 xprt = &svsk->sk_xprt; in svc_bc_create_socket()
1657 svc_xprt_init(net, &svc_tcp_bc_class, xprt, serv); in svc_bc_create_socket()
1659 serv->sv_bc_xprt = xprt; in svc_bc_create_socket()
1661 return xprt; in svc_bc_create_socket()
1667 static void svc_bc_sock_free(struct svc_xprt *xprt) in svc_bc_sock_free() argument
1669 if (xprt) in svc_bc_sock_free()
1670 kfree(container_of(xprt, struct svc_sock, sk_xprt)); in svc_bc_sock_free()