Lines Matching refs:xdr

90 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
92 struct page **ppage = xdr->pages; in xdr_partial_copy_from_skb()
93 unsigned int len, pglen = xdr->page_len; in xdr_partial_copy_from_skb()
97 len = xdr->head[0].iov_len; in xdr_partial_copy_from_skb()
100 ret = copy_actor(desc, (char *)xdr->head[0].iov_base + base, len); in xdr_partial_copy_from_skb()
114 if (base || xdr->page_base) { in xdr_partial_copy_from_skb()
116 base += xdr->page_base; in xdr_partial_copy_from_skb()
125 if ((xdr->flags & XDRBUF_SPARSE_PAGES) && *ppage == NULL) { in xdr_partial_copy_from_skb()
155 len = xdr->tail[0].iov_len; in xdr_partial_copy_from_skb()
157 copied += copy_actor(desc, (char *)xdr->tail[0].iov_base + base, len - base); in xdr_partial_copy_from_skb()
170 int csum_partial_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb) in csum_partial_copy_to_xdr() argument
182 if (xdr_partial_copy_from_skb(xdr, 0, &desc, xdr_skb_read_and_csum_bits) < 0) in csum_partial_copy_to_xdr()
198 if (xdr_partial_copy_from_skb(xdr, 0, &desc, xdr_skb_read_bits) < 0) in csum_partial_copy_to_xdr()
222 struct xdr_buf *xdr, size_t base) in xprt_send_pagedata() argument
224 iov_iter_bvec(&msg->msg_iter, WRITE, xdr->bvec, xdr_buf_pagecount(xdr), in xprt_send_pagedata()
225 xdr->page_len + xdr->page_base); in xprt_send_pagedata()
226 return xprt_sendmsg(sock, msg, base + xdr->page_base); in xprt_send_pagedata()
265 struct xdr_buf *xdr, unsigned int base, in xprt_sock_sendmsg() argument
269 unsigned int remainder = rmsize + xdr->len - base; in xprt_sock_sendmsg()
279 want = xdr->head[0].iov_len + rmsize; in xprt_sock_sendmsg()
288 &xdr->head[0], base); in xprt_sock_sendmsg()
290 err = xprt_send_kvec(sock, msg, &xdr->head[0], base); in xprt_sock_sendmsg()
299 if (base < xdr->page_len) { in xprt_sock_sendmsg()
300 unsigned int len = xdr->page_len - base; in xprt_sock_sendmsg()
305 err = xprt_send_pagedata(sock, msg, xdr, base); in xprt_sock_sendmsg()
311 base -= xdr->page_len; in xprt_sock_sendmsg()
314 if (base >= xdr->tail[0].iov_len) in xprt_sock_sendmsg()
317 err = xprt_send_kvec(sock, msg, &xdr->tail[0], base); in xprt_sock_sendmsg()