Home
last modified time | relevance | path

Searched refs:page_len (Results 1 – 18 of 18) sorted by relevance

/net/sunrpc/
Dxdr.c138 if (!buf->page_len) in xdr_buf_pagecount()
140 return (buf->page_base + buf->page_len + PAGE_SIZE - 1) >> PAGE_SHIFT; in xdr_buf_pagecount()
190 xdr->page_len = len; in xdr_inline_pages()
451 if (pgbase >= buf->page_len) { in xdr_buf_pages_zero()
452 xdr_buf_iov_zero(buf->tail, pgbase - buf->page_len, len); in xdr_buf_pages_zero()
455 if (pgbase + len > buf->page_len) { in xdr_buf_pages_zero()
456 xdr_buf_iov_zero(buf->tail, 0, pgbase + len - buf->page_len); in xdr_buf_pages_zero()
457 len = buf->page_len - pgbase; in xdr_buf_pages_zero()
491 if (pagelen > buf->page_len) in xdr_buf_pages_fill_sparse()
492 pagelen = buf->page_len; in xdr_buf_pages_fill_sparse()
[all …]
Dsocklib.c92 unsigned int len, pglen = xdr->page_len; in xdr_partial_copy_from_skb()
230 xdr->page_len + xdr->page_base); in xprt_send_pagedata()
304 if (base < xdr->page_len) { in xprt_sock_sendmsg()
305 unsigned int len = xdr->page_len - base; in xprt_sock_sendmsg()
316 base -= xdr->page_len; in xprt_sock_sendmsg()
Dsvcsock.c499 rqstp->rq_arg.page_len = 0; in svc_udp_recvfrom()
502 rqstp->rq_arg.page_len = len - rqstp->rq_arg.head[0].iov_len; in svc_udp_recvfrom()
504 DIV_ROUND_UP(rqstp->rq_arg.page_len, PAGE_SIZE); in svc_udp_recvfrom()
1001 rqstp->rq_arg.page_len = 0; in svc_tcp_recvfrom()
1003 rqstp->rq_arg.page_len = rqstp->rq_arg.len - rqstp->rq_arg.head[0].iov_len; in svc_tcp_recvfrom()
1106 if (xdr->page_len) { in svc_tcp_sendmsg()
1112 remaining = xdr->page_len; in svc_tcp_sendmsg()
Dsvc_xprt.c554 rqstp->rq_res.page_len = 0; in svc_xprt_release()
711 arg->page_len = (pages-2)*PAGE_SIZE; in svc_alloc_arg()
937 xb->page_len + in svc_send()
1205 if (rqstp->rq_arg.page_len || !test_bit(RQ_USEDEFERRAL, &rqstp->rq_flags)) in svc_defer()
1255 rqstp->rq_arg.page_len = 0; in svc_deferred_recv()
Dsvc.c1532 rqstp->rq_res.page_len = 0; in svc_process()
1587 rqstp->rq_arg.page_len = 0; in bc_svc_process()
1589 rqstp->rq_arg.page_len) in bc_svc_process()
1590 rqstp->rq_arg.page_len = rqstp->rq_arg.len - in bc_svc_process()
1594 rqstp->rq_arg.page_len; in bc_svc_process()
Dbackchannel_rqst.c72 buf->page_len = 0; in xprt_bc_reinit_xdr_buf()
Dxprt.c1984 xbufp->len = xbufp->head[0].iov_len + xbufp->page_len + in xprt_init_bc_request()
Dxprtsock.c431 min_t(size_t, count - offset, buf->page_len), in xs_read_xdr_buf()
/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c563 if (xdr->page_len) { in svc_rdma_xb_write()
565 xdr->page_len); in svc_rdma_xb_write()
790 unsigned int page_len; in svc_rdma_copy_inline_range() local
792 page_len = min_t(unsigned int, remaining, in svc_rdma_copy_inline_range()
799 memcpy(dst + info->ri_pageno, src + offset, page_len); in svc_rdma_copy_inline_range()
801 info->ri_totalbytes += page_len; in svc_rdma_copy_inline_range()
802 info->ri_pageoff += page_len; in svc_rdma_copy_inline_range()
807 remaining -= page_len; in svc_rdma_copy_inline_range()
808 offset += page_len; in svc_rdma_copy_inline_range()
872 buf->page_len = info->ri_totalbytes - buf->head[0].iov_len; in svc_rdma_read_multiple_chunks()
[all …]
Drpc_rdma.c140 if (xdr->page_len) { in rpcrdma_args_inline()
141 remaining = xdr->page_len; in rpcrdma_args_inline()
193 len = buf->page_len; in rpcrdma_alloc_sparse_pages()
244 len = xdrbuf->page_len; in rpcrdma_convert_iovs()
606 remaining = xdr->page_len; in rpcrdma_prepare_pagelist()
668 dst += xdr->head[0].iov_len + xdr->page_len; in rpcrdma_pullup_tail_iov()
687 remaining = xdr->page_len; in rpcrdma_pullup_pagelist()
718 if (unlikely(xdr->page_len)) in rpcrdma_prepare_noch_pullup()
733 if (xdr->page_len) in rpcrdma_prepare_noch_mapped()
1066 if (copy_len && rqst->rq_rcv_buf.page_len) { in rpcrdma_inline_fixup()
[all …]
Dsvc_rdma_sendto.c581 remaining = xdr->page_len; in svc_rdma_xb_dma_map()
625 remaining = xdr->page_len; in svc_rdma_xb_count_sges()
695 remaining = xdr->page_len; in svc_rdma_xb_linearize()
Dsvc_rdma_recvfrom.c390 arg->page_len = 0; in svc_rdma_build_arg_xdr()
/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c55 if (buf->page_len || buf->tail[0].iov_len) in gss_krb5_add_padding()
80 if (len <= buf->page_len) { in gss_krb5_remove_padding()
90 len -= buf->page_len; in gss_krb5_remove_padding()
Dgss_rpc_xdr.h126 unsigned int page_len; /* Length of page data */ member
Dsvcauth_gss.c954 return buf->head[0].iov_len + buf->page_len + buf->tail[0].iov_len; in total_buf_len()
960 if (buf->page_len == 0) { in fix_priv_head()
1139 inlen = in_token->page_len; in gss_free_in_token_pages()
1165 if (inlen > (argv->iov_len + rqstp->rq_arg.page_len)) { in gss_read_proxy_verf()
1177 in_token->page_len = inlen; in gss_read_proxy_verf()
Dgss_rpc_xdr.c53 *p = cpu_to_be32(in->page_len); in gssx_enc_in_token()
56 xdr_write_pages(xdr, in->pages, in->page_base, in->page_len); in gssx_enc_in_token()
Dauth_gss.c1784 if (snd_buf->page_len == 0) { in alloc_enc_pages()
1790 last = (snd_buf->page_base + snd_buf->page_len - 1) >> PAGE_SHIFT; in alloc_enc_pages()
1848 if (snd_buf->page_len || snd_buf->tail[0].iov_len) { in gss_wrap_req_priv()
1869 if (snd_buf->page_len || snd_buf->tail[0].iov_len) in gss_wrap_req_priv()
Dgss_krb5_crypto.c347 if (page_pos >= 0 && page_pos < outbuf->page_len) { in encryptor()