Home
last modified time | relevance | path

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

/net/sunrpc/
Dxdr.c137 if (!buf->page_len) in xdr_buf_pagecount()
139 return (buf->page_base + buf->page_len + PAGE_SIZE - 1) >> PAGE_SHIFT; in xdr_buf_pagecount()
189 xdr->page_len = len; in xdr_inline_pages()
193 if ((xdr->page_len & 3) == 0) in xdr_inline_pages()
367 unsigned int pglen = buf->page_len; in xdr_shrink_bufhead()
451 unsigned int pglen = buf->page_len; in xdr_shrink_pagelen()
457 if (len > buf->page_len) in xdr_shrink_pagelen()
458 len = buf-> page_len; in xdr_shrink_pagelen()
459 tailbuf_len = buf->buflen - buf->head->iov_len - buf->page_len; in xdr_shrink_pagelen()
482 buf->page_len -= len; in xdr_shrink_pagelen()
[all …]
Dsvcsock.c188 unsigned int pglen = xdr->page_len; in svc_send_common()
591 rqstp->rq_arg.page_len = 0; in svc_udp_recvfrom()
594 rqstp->rq_arg.page_len = len - rqstp->rq_arg.head[0].iov_len; in svc_udp_recvfrom()
596 DIV_ROUND_UP(rqstp->rq_arg.page_len, PAGE_SIZE); in svc_udp_recvfrom()
1097 rqstp->rq_arg.page_len = 0; in svc_tcp_recvfrom()
1099 rqstp->rq_arg.page_len = rqstp->rq_arg.len - rqstp->rq_arg.head[0].iov_len; in svc_tcp_recvfrom()
Dsvc_xprt.c522 rqstp->rq_res.page_len = 0; in svc_xprt_release()
678 arg->page_len = (pages-2)*PAGE_SIZE; in svc_alloc_arg()
912 xb->page_len + in svc_send()
1186 if (rqstp->rq_arg.page_len || !test_bit(RQ_USEDEFERRAL, &rqstp->rq_flags)) in svc_defer()
1233 rqstp->rq_arg.page_len = 0; in svc_deferred_recv()
Dsvc.c1519 rqstp->rq_res.page_len = 0; in svc_process()
1578 rqstp->rq_arg.page_len = 0; in bc_svc_process()
1580 rqstp->rq_arg.page_len) in bc_svc_process()
1581 rqstp->rq_arg.page_len = rqstp->rq_arg.len - in bc_svc_process()
1585 rqstp->rq_arg.page_len; in bc_svc_process()
Dsocklib.c77 unsigned int len, pglen = xdr->page_len; in xdr_partial_copy_from_skb()
Dbackchannel_rqst.c72 buf->page_len = 0; in xprt_bc_reinit_xdr_buf()
Dxprtsock.c425 min_t(size_t, count - offset, buf->page_len), in xs_read_xdr_buf()
776 xdr->page_len + xdr->page_base); in xs_send_pagedata()
847 if (base < xdr->page_len) { in xs_sendpages()
848 unsigned int len = xdr->page_len - base; in xs_sendpages()
858 base -= xdr->page_len; in xs_sendpages()
Dxprt.c1885 xbufp->len = xbufp->head[0].iov_len + xbufp->page_len + in xprt_init_bc_request()
/net/sunrpc/xprtrdma/
Dsvc_rdma_rw.c536 trace_svcrdma_encode_write(xdr->page_len); in svc_rdma_send_write_chunk()
576 if (!writelist && xdr->page_len) { in svc_rdma_send_reply_chunk()
579 xdr->page_len); in svc_rdma_send_reply_chunk()
582 consumed += xdr->page_len; in svc_rdma_send_reply_chunk()
749 head->rc_arg.page_len = info->ri_chunklen; in svc_rdma_build_normal_read_chunk()
789 head->rc_arg.page_len = info->ri_chunklen - in svc_rdma_build_pz_read_chunk()
847 head->rc_arg.page_len = 0; in svc_rdma_recv_read_chunk()
Dsvc_rdma_sendto.c557 remaining = xdr->page_len; in svc_rdma_pull_up_needed()
596 xdrpad = xdr_padsize(xdr->page_len); in svc_rdma_pull_up_reply_msg()
608 remaining = xdr->page_len; in svc_rdma_pull_up_reply_msg()
672 xdr_pad = xdr_padsize(xdr->page_len); in svc_rdma_map_reply_msg()
684 remaining = xdr->page_len; in svc_rdma_map_reply_msg()
868 length = xdr->page_len; in svc_rdma_sendto()
Drpc_rdma.c144 if (xdr->page_len) { in rpcrdma_args_inline()
145 remaining = xdr->page_len; in rpcrdma_args_inline()
197 len = buf->page_len; in rpcrdma_alloc_sparse_pages()
261 len = xdrbuf->page_len; in rpcrdma_convert_iovs()
682 if (xdr->page_len) { in rpcrdma_prepare_msg_sges()
685 remaining = xdr->page_len; in rpcrdma_prepare_msg_sges()
988 if (copy_len && rqst->rq_rcv_buf.page_len) { in rpcrdma_inline_fixup()
991 pagelist_len = rqst->rq_rcv_buf.page_len; in rpcrdma_inline_fixup()
Dsvc_rdma_recvfrom.c377 arg->page_len = 0; in svc_rdma_build_arg_xdr()
659 rqstp->rq_arg.page_len = head->rc_arg.page_len; in rdma_read_complete()
/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.c912 return buf->head[0].iov_len + buf->page_len + buf->tail[0].iov_len; in total_buf_len()
918 if (buf->page_len == 0) { in fix_priv_head()
1081 inlen = in_token->page_len; in gss_free_in_token_pages()
1107 if (inlen > (argv->iov_len + rqstp->rq_arg.page_len)) { in gss_read_proxy_verf()
1119 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.c1779 if (snd_buf->page_len == 0) { in alloc_enc_pages()
1785 last = (snd_buf->page_base + snd_buf->page_len - 1) >> PAGE_SHIFT; in alloc_enc_pages()
1842 if (snd_buf->page_len || snd_buf->tail[0].iov_len) { in gss_wrap_req_priv()
1863 if (snd_buf->page_len || snd_buf->tail[0].iov_len) in gss_wrap_req_priv()
Dgss_krb5_crypto.c481 if (page_pos >= 0 && page_pos < outbuf->page_len) { in encryptor()