Lines Matching refs:xdr
89 xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct xdr_skb_reader *desc, xdr_… in xdr_partial_copy_from_skb() argument
91 struct page **ppage = xdr->pages; in xdr_partial_copy_from_skb()
92 unsigned int len, pglen = xdr->page_len; in xdr_partial_copy_from_skb()
96 len = xdr->head[0].iov_len; in xdr_partial_copy_from_skb()
99 ret = copy_actor(desc, (char *)xdr->head[0].iov_base + base, len); in xdr_partial_copy_from_skb()
113 if (base || xdr->page_base) { in xdr_partial_copy_from_skb()
115 base += xdr->page_base; in xdr_partial_copy_from_skb()
124 if ((xdr->flags & XDRBUF_SPARSE_PAGES) && *ppage == NULL) { in xdr_partial_copy_from_skb()
154 len = xdr->tail[0].iov_len; in xdr_partial_copy_from_skb()
156 copied += copy_actor(desc, (char *)xdr->tail[0].iov_base + base, len - base); in xdr_partial_copy_from_skb()
169 int csum_partial_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb) in csum_partial_copy_to_xdr() argument
181 if (xdr_partial_copy_from_skb(xdr, 0, &desc, xdr_skb_read_and_csum_bits) < 0) in csum_partial_copy_to_xdr()
197 if (xdr_partial_copy_from_skb(xdr, 0, &desc, xdr_skb_read_bits) < 0) in csum_partial_copy_to_xdr()
221 struct xdr_buf *xdr, size_t base) in xprt_send_pagedata() argument
225 err = xdr_alloc_bvec(xdr, GFP_KERNEL); in xprt_send_pagedata()
229 iov_iter_bvec(&msg->msg_iter, WRITE, xdr->bvec, xdr_buf_pagecount(xdr), in xprt_send_pagedata()
230 xdr->page_len + xdr->page_base); in xprt_send_pagedata()
231 return xprt_sendmsg(sock, msg, base + xdr->page_base); in xprt_send_pagedata()
270 struct xdr_buf *xdr, unsigned int base, in xprt_sock_sendmsg() argument
274 unsigned int remainder = rmsize + xdr->len - base; in xprt_sock_sendmsg()
284 want = xdr->head[0].iov_len + rmsize; in xprt_sock_sendmsg()
293 &xdr->head[0], base); in xprt_sock_sendmsg()
295 err = xprt_send_kvec(sock, msg, &xdr->head[0], base); in xprt_sock_sendmsg()
304 if (base < xdr->page_len) { in xprt_sock_sendmsg()
305 unsigned int len = xdr->page_len - base; in xprt_sock_sendmsg()
310 err = xprt_send_pagedata(sock, msg, xdr, base); in xprt_sock_sendmsg()
316 base -= xdr->page_len; in xprt_sock_sendmsg()
319 if (base >= xdr->tail[0].iov_len) in xprt_sock_sendmsg()
322 err = xprt_send_kvec(sock, msg, &xdr->tail[0], base); in xprt_sock_sendmsg()