/linux/fs/nfs/ |
A D | nfs42xdr.c | 274 encode_fallocate(xdr, args); in encode_allocate() 341 encode_fallocate(xdr, args); in encode_deallocate() 389 encode_uint32(xdr, 0); in encode_layoutstats() 430 p = reserve_space(xdr, 4); in encode_layouterror() 445 p = reserve_space(xdr, 4); in encode_setxattr() 448 p = reserve_space(xdr, 4); in encode_setxattr() 542 p = reserve_space(xdr, 12); in encode_listxattrs() 672 p = reserve_space(xdr, 12); in encode_copy_commit() 692 encode_savefh(xdr, &hdr); in nfs4_xdr_enc_copy() 704 struct xdr_stream *xdr, in nfs4_xdr_enc_offload_cancel() argument [all …]
|
A D | nfs4xdr.c | 1026 encode_uint32(xdr, 0); in encode_nfs4_seqid() 1052 encode_uint32(xdr, op); in encode_op_hdr() 1552 encode_claim_fh(xdr); in encode_open() 1830 encode_string(xdr, in encode_exchange_id() 2064 encode_uint32(xdr, 0); in encode_layoutreturn() 2082 encode_uint32(xdr, 1); in encode_test_stateid() 2158 encode_getfh(xdr, &hdr); in nfs4_xdr_enc_lookup() 2178 encode_getfh(xdr, &hdr); in nfs4_xdr_enc_lookupp() 2198 encode_getfh(xdr, &hdr); in nfs4_xdr_enc_lookup_root() 5271 return xdr_read_pages(xdr, xdr->buf->page_len); in decode_readdir() [all …]
|
A D | nfs3xdr.c | 145 p = xdr_inline_decode(xdr, 4); in decode_uint32() 156 p = xdr_inline_decode(xdr, 8); in decode_uint64() 199 p = xdr_inline_decode(xdr, 4); in decode_inline_filename3() 225 encode_uint32(xdr, length); in encode_nfspath3() 234 p = xdr_inline_decode(xdr, 4); in decode_nfspath3() 368 encode_uint32(xdr, type); in encode_ftype3() 792 encode_nfs_fh3(xdr, fh); in encode_diropargs3() 817 encode_nfs_fh3(xdr, fh); in nfs3_xdr_enc_getattr3args() 948 encode_read3args(xdr, args); in nfs3_xdr_enc_read3args() 1645 pos = xdr_stream_pos(xdr); in nfs3_xdr_dec_read3res() [all …]
|
A D | nfs2xdr.c | 102 p = xdr_inline_decode(xdr, 4); in decode_nfsdata() 146 p = xdr_inline_decode(xdr, 4); in decode_stat() 497 encode_fhandle(xdr, fh); in encode_diropargs() 554 struct xdr_stream *xdr, in nfs2_xdr_enc_fhandle() argument 559 encode_fhandle(xdr, fh); in nfs2_xdr_enc_fhandle() 626 struct xdr_stream *xdr, in nfs2_xdr_enc_readargs() argument 631 encode_readargs(xdr, args); in nfs2_xdr_enc_readargs() 673 encode_writeargs(xdr, args); in nfs2_xdr_enc_writeargs() 733 struct xdr_stream *xdr, in nfs2_xdr_enc_linkargs() argument 851 error = decode_path(xdr); in nfs2_xdr_dec_readlinkres() [all …]
|
A D | callback_xdr.c | 91 p = xdr_inline_decode(xdr, 4); in decode_fh() 110 p = xdr_inline_decode(xdr, 4); in decode_bitmap() 149 p = xdr_inline_decode(xdr, 12); in decode_compound_hdr_arg() 169 p = xdr_inline_decode(xdr, 4); in decode_op_hdr() 198 p = xdr_inline_decode(xdr, 4); in decode_recall_args() 257 struct xdr_stream *xdr, in decode_devicenotify_args() argument 379 p = xdr_inline_decode(xdr, in decode_rc_list() 400 struct xdr_stream *xdr, in decode_cb_sequence_args() argument 455 p = xdr_inline_decode(xdr, 4); in decode_recallany_args() 468 struct xdr_stream *xdr, in decode_recallslot_args() argument [all …]
|
/linux/fs/nfsd/ |
A D | nfs3xdr.c | 62 p = xdr_inline_decode(xdr, XDR_UNIT * 2); in svcxdr_decode_nfstime3() 90 p = xdr_inline_decode(xdr, size); in svcxdr_decode_nfs_fh3() 144 if (!svcxdr_encode_nfs_fh3(xdr, fhp)) in svcxdr_encode_post_op_fh3() 187 p = xdr_inline_decode(xdr, size); in svcxdr_decode_filename3() 334 svcxdr_decode_specdata3(xdr, args); in svcxdr_decode_devicedata3() 696 remaining -= xdr_stream_pos(xdr); in nfs3svc_decode_symlinkargs() 700 args->first.iov_base = xdr->p; in nfs3svc_decode_symlinkargs() 1116 struct xdr_stream *xdr = &resp->xdr; in svcxdr_encode_entry3_common() local 1167 xdr_commit_encode(&resp->xdr); in nfs3svc_encode_entry3() 1182 struct xdr_stream *xdr = &resp->xdr; in svcxdr_encode_entry3_plus() local [all …]
|
A D | nfsxdr.c | 41 p = xdr_reserve_space(xdr, sizeof(status)); in svcxdr_encode_stat() 63 p = xdr_inline_decode(xdr, NFS_FHSIZE); in svcxdr_decode_fhandle() 78 p = xdr_reserve_space(xdr, NFS_FHSIZE); in svcxdr_encode_fhandle() 104 if (xdr_stream_decode_u32(xdr, &size) < 0) in svcxdr_decode_filename() 108 p = xdr_inline_decode(xdr, size); in svcxdr_decode_filename() 125 return svcxdr_decode_fhandle(xdr, fhp) && in svcxdr_decode_diropargs() 126 svcxdr_decode_filename(xdr, name, len); in svcxdr_decode_diropargs() 136 p = xdr_inline_decode(xdr, XDR_UNIT * 8); in svcxdr_decode_sattr() 578 struct xdr_stream *xdr = &resp->xdr; in svcxdr_encode_entry_common() local 590 if (xdr_stream_encode_u32(xdr, ~0U) < 0) in svcxdr_encode_entry_common() [all …]
|
A D | nfs4xdr.c | 3480 struct xdr_stream *xdr = cd->xdr; in nfsd4_encode_dirent() local 3584 struct xdr_stream *xdr = resp->xdr; in nfsd4_encode_access() local 3597 struct xdr_stream *xdr = resp->xdr; in nfsd4_encode_bind_conn_to_session() local 3614 struct xdr_stream *xdr = resp->xdr; in nfsd4_encode_close() local 3623 struct xdr_stream *xdr = resp->xdr; in nfsd4_encode_commit() local 3637 struct xdr_stream *xdr = resp->xdr; in nfsd4_encode_create() local 3652 struct xdr_stream *xdr = resp->xdr; in nfsd4_encode_getattr() local 3661 struct xdr_stream *xdr = resp->xdr; in nfsd4_encode_getfh() local 3882 if (xdr->end - xdr->p < 1) in nfsd4_encode_splice_read() 4116 readdir->xdr = xdr; in nfsd4_encode_readdir() [all …]
|
A D | xdr3.h | 178 struct xdr_stream xdr; member 269 bool nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 270 bool nfs3svc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 272 bool nfs3svc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 278 bool nfs3svc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 285 bool nfs3svc_encode_wccstat(struct svc_rqst *rqstp, struct xdr_stream *xdr); 289 bool nfs3svc_encode_readres(struct svc_rqst *rqstp, struct xdr_stream *xdr); 290 bool nfs3svc_encode_writeres(struct svc_rqst *rqstp, struct xdr_stream *xdr); 293 bool nfs3svc_encode_linkres(struct svc_rqst *rqstp, struct xdr_stream *xdr); 309 bool svcxdr_decode_nfs_fh3(struct xdr_stream *xdr, struct svc_fh *fhp); [all …]
|
A D | nfs4callback.c | 108 p = xdr_reserve_space(xdr, 4); in encode_nfs_cb_opnum4() 323 p = xdr_reserve_space(xdr, 4); in encode_cb_recall4args() 463 xdr_reserve_space(xdr, 0); in nfs4_xdr_enc_cb_null() 505 struct xdr_stream *xdr, in nfs4_xdr_dec_cb_recall() argument 577 struct xdr_stream *xdr, in nfs4_xdr_enc_cb_layout() argument 595 struct xdr_stream *xdr, in nfs4_xdr_dec_cb_layout() argument 624 struct xdr_stream *xdr, in nfs4_xdr_enc_cb_notify_lock() argument 643 p = xdr_reserve_space(xdr, 4); in nfs4_xdr_enc_cb_notify_lock() 653 struct xdr_stream *xdr, in nfs4_xdr_dec_cb_notify_lock() argument 722 encode_nfs_fh4(xdr, fh); in encode_cb_offload4args() [all …]
|
A D | xdr.h | 115 struct xdr_stream xdr; member 145 bool nfssvc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 146 bool nfssvc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 147 bool nfssvc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 151 bool nfssvc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 155 bool nfssvc_encode_statres(struct svc_rqst *rqstp, struct xdr_stream *xdr); 157 bool nfssvc_encode_diropres(struct svc_rqst *rqstp, struct xdr_stream *xdr); 159 bool nfssvc_encode_readres(struct svc_rqst *rqstp, struct xdr_stream *xdr); 172 bool svcxdr_decode_fhandle(struct xdr_stream *xdr, struct svc_fh *fhp); 173 bool svcxdr_encode_stat(struct xdr_stream *xdr, __be32 status); [all …]
|
/linux/fs/lockd/ |
A D | xdr.c | 56 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_fhandle() 61 p = xdr_inline_decode(xdr, len); in svcxdr_decode_fhandle() 79 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in svcxdr_decode_lock() 81 if (!svcxdr_decode_owner(xdr, &lock->oh)) in svcxdr_decode_lock() 87 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_lock() 114 if (!svcxdr_encode_owner(xdr, &lock->oh)) in svcxdr_encode_holder() 121 if (xdr_stream_encode_u32(xdr, start) < 0) in svcxdr_encode_holder() 123 if (xdr_stream_encode_u32(xdr, len) < 0) in svcxdr_encode_holder() 255 p = xdr_inline_decode(xdr, len); in nlmsvc_decode_reboot() 328 svcxdr_encode_testrply(xdr, resp); in nlmsvc_encode_testres() [all …]
|
A D | xdr4.c | 54 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_fhandle() 59 p = xdr_inline_decode(xdr, len); in svcxdr_decode_fhandle() 78 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in svcxdr_decode_lock() 80 if (!svcxdr_decode_owner(xdr, &lock->oh)) in svcxdr_decode_lock() 86 if (xdr_stream_decode_u64(xdr, &len) < 0) in svcxdr_decode_lock() 113 if (!svcxdr_encode_owner(xdr, &lock->oh)) in svcxdr_encode_holder() 120 if (xdr_stream_encode_u64(xdr, start) < 0) in svcxdr_encode_holder() 122 if (xdr_stream_encode_u64(xdr, len) < 0) in svcxdr_encode_holder() 254 p = xdr_inline_decode(xdr, len); in nlm4svc_decode_reboot() 327 svcxdr_encode_testrply(xdr, resp); in nlm4svc_encode_testres() [all …]
|
A D | clntxdr.c | 90 p = xdr_reserve_space(xdr, 4); in encode_bool() 98 p = xdr_reserve_space(xdr, 4); in encode_int32() 326 encode_fh(xdr, &lock->fh); in encode_nlm_lock() 353 struct xdr_stream *xdr, in nlm_xdr_enc_testargs() argument 361 encode_nlm_lock(xdr, lock); in nlm_xdr_enc_testargs() 375 struct xdr_stream *xdr, in nlm_xdr_enc_lockargs() argument 384 encode_nlm_lock(xdr, lock); in nlm_xdr_enc_lockargs() 398 struct xdr_stream *xdr, in nlm_xdr_enc_cancargs() argument 407 encode_nlm_lock(xdr, lock); in nlm_xdr_enc_cancargs() 424 encode_nlm_lock(xdr, lock); in nlm_xdr_enc_unlockargs() [all …]
|
A D | clnt4xdr.c | 93 p = xdr_reserve_space(xdr, 4); in encode_bool() 101 p = xdr_reserve_space(xdr, 4); in encode_int32() 332 encode_fh(xdr, &lock->fh); in encode_nlm4_lock() 360 struct xdr_stream *xdr, in nlm4_xdr_enc_testargs() argument 368 encode_nlm4_lock(xdr, lock); in nlm4_xdr_enc_testargs() 382 struct xdr_stream *xdr, in nlm4_xdr_enc_lockargs() argument 391 encode_nlm4_lock(xdr, lock); in nlm4_xdr_enc_lockargs() 405 struct xdr_stream *xdr, in nlm4_xdr_enc_cancargs() argument 414 encode_nlm4_lock(xdr, lock); in nlm4_xdr_enc_cancargs() 464 struct xdr_stream *xdr, in nlm4_xdr_enc_testres() argument [all …]
|
A D | svcxdr.h | 26 p = xdr_inline_decode(xdr, XDR_UNIT); in svcxdr_decode_stats() 35 svcxdr_encode_stats(struct xdr_stream *xdr, __be32 status) in svcxdr_encode_stats() argument 39 p = xdr_reserve_space(xdr, XDR_UNIT); in svcxdr_encode_stats() 53 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_string() 57 p = xdr_inline_decode(xdr, len); in svcxdr_decode_string() 78 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_cookie() 85 p = xdr_inline_decode(xdr, len); in svcxdr_decode_cookie() 105 if (xdr_stream_encode_u32(xdr, cookie->len) < 0) in svcxdr_encode_cookie() 107 p = xdr_reserve_space(xdr, cookie->len); in svcxdr_encode_cookie() 121 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_owner() [all …]
|
/linux/net/sunrpc/auth_gss/ |
A D | gss_rpc_xdr.c | 15 p = xdr_reserve_space(xdr, 4); in gssx_enc_bool() 26 p = xdr_inline_decode(xdr, 4); in gssx_dec_bool() 50 p = xdr_reserve_space(xdr, 4); in gssx_enc_in_token() 68 p = xdr_inline_decode(xdr, 4); in gssx_dec_buffer() 127 p = xdr_reserve_space(xdr, 4); in dummy_enc_opt_array() 142 p = xdr_inline_decode(xdr, 4); in dummy_dec_opt_array() 148 gssx_dec_option(xdr, &dummy); in dummy_dec_opt_array() 160 p = xdr_inline_decode(xdr, 4); in get_host_u32() 177 p = xdr_inline_decode(xdr, 4); in gssx_dec_linux_creds() 723 struct xdr_stream *xdr, in gssx_enc_accept_sec_context() argument [all …]
|
/linux/net/sunrpc/ |
A D | xdr.c | 911 BUG_ON(p < xdr->p || p > xdr->end); in xdr_init_encode() 959 frag1bytes = (xdr->end - xdr->p) << 2; in xdr_get_next_encode_buffer() 1044 if (xdr->iov == xdr->buf->head) { in xdr_reserve_space_vec() 1046 xdr->end = xdr->p; in xdr_reserve_space_vec() 1189 BUG_ON(xdr->p >= xdr->end); in xdr_write_pages() 1283 else if (xdr->iov == xdr->buf->head) in xdr_set_next_buffer() 1285 return xdr->p != xdr->end; in xdr_set_next_buffer() 1305 xdr->nwords -= p - xdr->p; in xdr_init_decode() 1386 if (xdr->p == xdr->end && !xdr_set_next_buffer(xdr)) in xdr_inline_decode() 1654 if (xdr->p == xdr->end && !xdr_set_next_buffer(xdr)) in xdr_stream_subsegment() [all …]
|
A D | socklib.c | 91 struct page **ppage = xdr->pages; in xdr_partial_copy_from_skb() 96 len = xdr->head[0].iov_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() 154 len = xdr->tail[0].iov_len; in xdr_partial_copy_from_skb() 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() 293 &xdr->head[0], base); in xprt_sock_sendmsg() 304 if (base < xdr->page_len) { in xprt_sock_sendmsg() 316 base -= xdr->page_len; in xprt_sock_sendmsg() [all …]
|
/linux/include/linux/sunrpc/ |
A D | xdr.h | 280 xdr->scratch.iov_base = buf; in xdr_set_scratch_buffer() 281 xdr->scratch.iov_len = buflen; in xdr_set_scratch_buffer() 306 xdr_set_scratch_buffer(xdr, NULL, 0); in xdr_reset_scratch_buffer() 319 return xdr->nwords << 2; in xdr_stream_remaining() 371 __be32 *p = xdr_reserve_space(xdr, len); in xdr_stream_encode_item_present() 390 __be32 *p = xdr_reserve_space(xdr, len); in xdr_stream_encode_item_absent() 424 __be32 *p = xdr_reserve_space(xdr, len); in xdr_stream_encode_bool() 445 __be32 *p = xdr_reserve_space(xdr, len); in xdr_stream_encode_u32() 466 __be32 *p = xdr_reserve_space(xdr, len); in xdr_stream_encode_u64() 512 __be32 *p = xdr_reserve_space(xdr, len); in xdr_stream_encode_opaque_fixed() [all …]
|
/linux/net/sunrpc/xprtrdma/ |
A D | rpc_rdma.c | 140 if (xdr->page_len) { in rpcrdma_args_inline() 141 remaining = xdr->page_len; in rpcrdma_args_inline() 609 ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); in rpcrdma_prepare_pagelist() 611 remaining = xdr->page_len; in rpcrdma_prepare_pagelist() 673 dst += xdr->head[0].iov_len + xdr->page_len; in rpcrdma_pullup_tail_iov() 674 memmove(dst, xdr->tail[0].iov_base, xdr->tail[0].iov_len); in rpcrdma_pullup_tail_iov() 690 ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); in rpcrdma_pullup_pagelist() 692 remaining = xdr->page_len; in rpcrdma_pullup_pagelist() 718 struct xdr_buf *xdr) in rpcrdma_prepare_noch_pullup() argument 732 struct xdr_buf *xdr) in rpcrdma_prepare_noch_mapped() argument [all …]
|
A D | svc_rdma_sendto.c | 587 ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); in svc_rdma_xb_dma_map() 589 remaining = xdr->page_len; in svc_rdma_xb_dma_map() 605 return xdr->len; in svc_rdma_xb_dma_map() 629 if (xdr->head[0].iov_len) in svc_rdma_xb_count_sges() 633 remaining = xdr->page_len; in svc_rdma_xb_count_sges() 640 if (xdr->tail[0].iov_len) in svc_rdma_xb_count_sges() 696 if (xdr->head[0].iov_len) { in svc_rdma_xb_linearize() 697 memcpy(args->pd_dest, xdr->head[0].iov_base, xdr->head[0].iov_len); in svc_rdma_xb_linearize() 701 ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); in svc_rdma_xb_linearize() 703 remaining = xdr->page_len; in svc_rdma_xb_linearize() [all …]
|
/linux/include/linux/lockd/ |
A D | xdr4.h | 25 bool nlm4svc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr); 26 bool nlm4svc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 27 bool nlm4svc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 28 bool nlm4svc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 30 bool nlm4svc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr); 31 bool nlm4svc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr); 33 bool nlm4svc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr); 35 bool nlm4svc_encode_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr); 36 bool nlm4svc_encode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr); 37 bool nlm4svc_encode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr); [all …]
|
A D | xdr.h | 99 bool nlmsvc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr); 100 bool nlmsvc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 101 bool nlmsvc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 102 bool nlmsvc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 104 bool nlmsvc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr); 105 bool nlmsvc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr); 107 bool nlmsvc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr); 109 bool nlmsvc_encode_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr); 110 bool nlmsvc_encode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr); 111 bool nlmsvc_encode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr); [all …]
|
/linux/net/rxrpc/ |
A D | key.c | 62 ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(xdr[3]), in rxrpc_preparse_xdr_rxkad() 67 tktlen = ntohl(xdr[7]); in rxrpc_preparse_xdr_rxkad() 145 ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(xdr[3]), in rxrpc_preparse_xdr() 157 if (ntohl(*xdr++) != 0) in rxrpc_preparse_xdr() 162 len = ntohl(*xdr++); in rxrpc_preparse_xdr() 180 xdr += paddedlen >> 2; in rxrpc_preparse_xdr() 192 p = xdr; in rxrpc_preparse_xdr() 219 token = xdr; in rxrpc_preparse_xdr() 567 __be32 *xdr, *oldxdr; in rxrpc_read() local 643 xdr += 8 >> 2; \ in rxrpc_read() [all …]
|