Lines Matching refs:xprt
52 #include <linux/sunrpc/xprt.h>
626 static int svc_udp_has_wspace(struct svc_xprt *xprt)
628 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt);
629 struct svc_serv *serv = xprt->xpt_server;
644 static struct svc_xprt *svc_udp_accept(struct svc_xprt *xprt)
785 static struct svc_xprt *svc_tcp_accept(struct svc_xprt *xprt)
787 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt);
1151 static int svc_tcp_has_wspace(struct svc_xprt *xprt)
1153 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt);
1157 if (test_bit(XPT_LISTENER, &xprt->xpt_flags))
1159 required = atomic_read(&xprt->xpt_reserved) + serv->sv_max_mesg;
1453 static void svc_sock_detach(struct svc_xprt *xprt)
1455 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt);
1472 static void svc_tcp_sock_detach(struct svc_xprt *xprt)
1474 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt);
1478 svc_sock_detach(xprt);
1480 if (!test_bit(XPT_LISTENER, &xprt->xpt_flags))
1487 static void svc_sock_free(struct svc_xprt *xprt)
1489 struct svc_sock *svsk = container_of(xprt, struct svc_sock, sk_xprt);
1508 struct svc_xprt *xprt = NULL;
1515 xprt = &svsk->sk_xprt;
1517 svc_xprt_init(&svc_tcp_class, xprt, serv);
1519 svc_xprt_init(&svc_udp_class, xprt, serv);
1523 dprintk("svc: %s return %p\n", __func__, xprt);
1524 return xprt;
1531 void svc_sock_destroy(struct svc_xprt *xprt)
1533 if (xprt)
1534 kfree(container_of(xprt, struct svc_sock, sk_xprt));