Lines Matching refs:xdr
547 struct xdr_buf *xdr = &rqstp->rq_res; in svc_udp_sendto() local
572 err = xdr_alloc_bvec(xdr, GFP_KERNEL); in svc_udp_sendto()
576 err = xprt_sock_sendmsg(svsk->sk_sock, &msg, xdr, 0, 0, &sent); in svc_udp_sendto()
579 err = xprt_sock_sendmsg(svsk->sk_sock, &msg, xdr, 0, 0, &sent); in svc_udp_sendto()
581 xdr_free_bvec(xdr); in svc_udp_sendto()
1076 static int svc_tcp_sendmsg(struct socket *sock, struct xdr_buf *xdr, in svc_tcp_sendmsg() argument
1079 const struct kvec *head = xdr->head; in svc_tcp_sendmsg()
1080 const struct kvec *tail = xdr->tail; in svc_tcp_sendmsg()
1091 ret = xdr_alloc_bvec(xdr, GFP_KERNEL); in svc_tcp_sendmsg()
1109 if (xdr->page_len) { in svc_tcp_sendmsg()
1113 bvec = xdr->bvec + (xdr->page_base >> PAGE_SHIFT); in svc_tcp_sendmsg()
1114 offset = offset_in_page(xdr->page_base); in svc_tcp_sendmsg()
1115 remaining = xdr->page_len; in svc_tcp_sendmsg()
1156 struct xdr_buf *xdr = &rqstp->rq_res; in svc_tcp_sendto() local
1158 (u32)xdr->len); in svc_tcp_sendto()
1170 err = svc_tcp_sendmsg(svsk->sk_sock, xdr, marker, &sent); in svc_tcp_sendto()
1171 xdr_free_bvec(xdr); in svc_tcp_sendto()
1173 if (err < 0 || sent != (xdr->len + sizeof(marker))) in svc_tcp_sendto()
1188 (err < 0) ? err : sent, xdr->len); in svc_tcp_sendto()