Searched refs:xdr_buf (Results 1 - 42 of 42) sorted by relevance

/linux-4.4.14/include/linux/sunrpc/
H A Dxdr.h55 struct xdr_buf { struct
107 void xdr_inline_pages(struct xdr_buf *, unsigned int,
109 void xdr_terminate_string(struct xdr_buf *, const u32);
152 extern void xdr_shift_buf(struct xdr_buf *, size_t);
153 extern void xdr_buf_from_iov(struct kvec *, struct xdr_buf *);
154 extern int xdr_buf_subsegment(struct xdr_buf *, struct xdr_buf *, unsigned int, unsigned int);
155 extern void xdr_buf_trim(struct xdr_buf *, unsigned int);
156 extern int xdr_buf_read_netobj(struct xdr_buf *, struct xdr_netobj *, unsigned int);
157 extern int read_bytes_from_xdr_buf(struct xdr_buf *, unsigned int, void *, unsigned int);
158 extern int write_bytes_to_xdr_buf(struct xdr_buf *, unsigned int, void *, unsigned int);
173 extern int csum_partial_copy_to_xdr(struct xdr_buf *, struct sk_buff *);
174 extern ssize_t xdr_partial_copy_from_skb(struct xdr_buf *, unsigned int,
177 extern int xdr_encode_word(struct xdr_buf *, unsigned int, u32);
178 extern int xdr_decode_word(struct xdr_buf *, unsigned int, u32 *);
189 extern int xdr_decode_array2(struct xdr_buf *buf, unsigned int base,
191 extern int xdr_encode_array2(struct xdr_buf *buf, unsigned int base,
201 struct xdr_buf *buf; /* XDR buffer to read/write */
216 extern void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p);
224 extern void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p);
225 extern void xdr_init_decode_pages(struct xdr_stream *xdr, struct xdr_buf *buf,
231 extern int xdr_process_buf(struct xdr_buf *buf, unsigned int offset, unsigned int len, int (*actor)(struct scatterlist *, void *), void *data);
H A Dgss_api.h55 struct xdr_buf *message,
59 struct xdr_buf *message,
64 struct xdr_buf *outbuf,
69 struct xdr_buf *inbuf);
113 struct xdr_buf *message,
117 struct xdr_buf *message,
122 struct xdr_buf *outbuf,
127 struct xdr_buf *buf);
H A Dgss_krb5.h84 struct xdr_buf *buf,
87 struct xdr_buf *buf, u32 *headskip,
241 struct xdr_buf *body, int body_offset, u8 *cksumkey,
246 struct xdr_buf *body, int body_offset, u8 *key,
249 u32 gss_get_mic_kerberos(struct gss_ctx *, struct xdr_buf *,
252 u32 gss_verify_mic_kerberos(struct gss_ctx *, struct xdr_buf *,
257 struct xdr_buf *outbuf, struct page **pages);
261 struct xdr_buf *buf);
273 gss_encrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *outbuf,
277 gss_decrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *inbuf,
292 xdr_extend_head(struct xdr_buf *buf, unsigned int base, unsigned int shiftlen);
313 struct xdr_buf *buf,
318 struct xdr_buf *buf, u32 *plainoffset,
H A Dsvc.h164 * We use xdr_buf for holding responses as it fits well with NFS
168 * The xdr_buf.head kvec always points to the first page in the rq_*pages
169 * list. The xdr_buf.pages pointer points to the second page on that
170 * list. xdr_buf.tail points to the end of the first page.
247 struct xdr_buf rq_arg;
248 struct xdr_buf rq_res;
H A Dxprt.h68 struct xdr_buf rq_snd_buf; /* send buffer */
69 struct xdr_buf rq_rcv_buf; /* recv buffer */
92 struct xdr_buf rq_private_buf; /* The receive buffer
H A Dsvc_rdma.h75 struct xdr_buf arg;
/linux-4.4.14/include/linux/
H A Dnfsacl.h35 nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode,
38 nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt,
/linux-4.4.14/net/sunrpc/
H A Dxdr.c115 * xdr_terminate_string - '\0'-terminate a string residing in an xdr_buf
121 xdr_terminate_string(struct xdr_buf *buf, const u32 len) xdr_terminate_string()
132 xdr_inline_pages(struct xdr_buf *xdr, unsigned int offset, xdr_inline_pages()
154 * Helper routines for doing 'memmove' like operations on a struct xdr_buf
308 * @buf: xdr_buf
316 xdr_shrink_bufhead(struct xdr_buf *buf, size_t len) xdr_shrink_bufhead()
384 * @buf: xdr_buf
392 xdr_shrink_pagelen(struct xdr_buf *buf, size_t len) xdr_shrink_pagelen()
431 xdr_shift_buf(struct xdr_buf *buf, size_t len) xdr_shift_buf()
454 * scratch buffer in the xdr_buf's header kvec. Previously this
460 void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p) xdr_init_encode()
495 * required at the end of encoding, or any other time when the xdr_buf
559 * bytes of data. If so, update the total xdr_buf length, and
605 struct xdr_buf *buf = xdr->buf; xdr_truncate_encode()
668 struct xdr_buf *buf = xdr->buf; xdr_restrict_buflen()
694 struct xdr_buf *buf = xdr->buf; xdr_write_pages()
790 void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p) xdr_init_decode()
814 void xdr_init_decode_pages(struct xdr_stream *xdr, struct xdr_buf *buf, xdr_init_decode_pages()
904 struct xdr_buf *buf = xdr->buf; xdr_align_pages()
945 struct xdr_buf *buf = xdr->buf; xdr_read_pages()
999 xdr_buf_from_iov(struct kvec *iov, struct xdr_buf *buf) xdr_buf_from_iov()
1018 * @buf and @subbuf may be pointers to the same struct xdr_buf.
1023 xdr_buf_subsegment(struct xdr_buf *buf, struct xdr_buf *subbuf, xdr_buf_subsegment()
1072 * Trim an xdr_buf by the given number of bytes by fixing up the lengths. Note
1073 * that it's possible that we'll trim less than that amount if the xdr_buf is
1077 void xdr_buf_trim(struct xdr_buf *buf, unsigned int len) xdr_buf_trim()
1108 static void __read_bytes_from_xdr_buf(struct xdr_buf *subbuf, void *obj, unsigned int len) __read_bytes_from_xdr_buf()
1126 int read_bytes_from_xdr_buf(struct xdr_buf *buf, unsigned int base, void *obj, unsigned int len) read_bytes_from_xdr_buf()
1128 struct xdr_buf subbuf; read_bytes_from_xdr_buf()
1139 static void __write_bytes_to_xdr_buf(struct xdr_buf *subbuf, void *obj, unsigned int len) __write_bytes_to_xdr_buf()
1157 int write_bytes_to_xdr_buf(struct xdr_buf *buf, unsigned int base, void *obj, unsigned int len) write_bytes_to_xdr_buf()
1159 struct xdr_buf subbuf; write_bytes_to_xdr_buf()
1171 xdr_decode_word(struct xdr_buf *buf, unsigned int base, u32 *obj) xdr_decode_word()
1185 xdr_encode_word(struct xdr_buf *buf, unsigned int base, u32 obj) xdr_encode_word()
1193 /* If the netobj starting offset bytes from the start of xdr_buf is contained
1197 int xdr_buf_read_netobj(struct xdr_buf *buf, struct xdr_netobj *obj, unsigned int offset) xdr_buf_read_netobj()
1199 struct xdr_buf subbuf; xdr_buf_read_netobj()
1233 xdr_xcode_array2(struct xdr_buf *buf, unsigned int base, xdr_xcode_array2()
1427 xdr_decode_array2(struct xdr_buf *buf, unsigned int base, xdr_decode_array2()
1438 xdr_encode_array2(struct xdr_buf *buf, unsigned int base, xdr_encode_array2()
1450 xdr_process_buf(struct xdr_buf *buf, unsigned int offset, unsigned int len, xdr_process_buf()
H A Dsunrpc.h59 int svc_send_common(struct socket *sock, struct xdr_buf *xdr,
H A Dsocklib.c72 ssize_t xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct xdr_skb_reader *desc, xdr_skb_read_actor copy_actor) xdr_partial_copy_from_skb()
153 int csum_partial_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb) csum_partial_copy_to_xdr()
H A Dbackchannel_rqst.c61 struct xdr_buf *xbufp; xprt_free_allocation()
72 static int xprt_alloc_xdr_buf(struct xdr_buf *buf, gfp_t gfp_flags) xprt_alloc_xdr_buf()
H A Dxprtsock.c343 static int xs_send_pagedata(struct socket *sock, struct xdr_buf *xdr, unsigned int base, int more, bool zerocopy, int *sent_p) xs_send_pagedata()
392 static int xs_sendpages(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xdr, unsigned int base, bool zerocopy, int *sent_p) xs_sendpages()
484 static inline void xs_encode_stream_record_marker(struct xdr_buf *buf) xs_encode_stream_record_marker()
508 struct xdr_buf *xdr = &req->rq_snd_buf; xs_local_send_request()
568 struct xdr_buf *xdr = &req->rq_snd_buf; xs_udp_send_request()
643 struct xdr_buf *xdr = &req->rq_snd_buf; xs_tcp_send_request()
887 static int xs_local_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb) xs_local_copy_to_xdr()
1210 struct xdr_buf *rcvbuf; xs_tcp_read_common()
2535 struct xdr_buf *xbufp = &req->rq_snd_buf; bc_sendto()
H A Dsvcsock.c175 int svc_send_common(struct socket *sock, struct xdr_buf *xdr, svc_send_common()
234 static int svc_sendto(struct svc_rqst *rqstp, struct xdr_buf *xdr) svc_sendto()
1054 memcpy(&req->rq_private_buf, &req->rq_rcv_buf, sizeof(struct xdr_buf)); receive_cb_reply()
1214 struct xdr_buf *xbufp = &rqstp->rq_res; svc_tcp_sendto()
H A Dclnt.c1031 struct xdr_buf *xbufp = &req->rq_snd_buf; rpc_run_bc_task()
1049 * Set up the xdr_buf length. rpc_run_bc_task()
1636 rpc_xdr_buf_init(struct xdr_buf *buf, void *start, size_t len) rpc_xdr_buf_init()
H A Dsvc_xprt.c603 struct xdr_buf *arg; svc_alloc_arg()
867 struct xdr_buf *xb; svc_send()
H A Dsvc.c1303 * Setup response xdr_buf. svc_process()
/linux-4.4.14/fs/nfs_common/
H A Dnfsacl.c82 * @buf: destination xdr_buf to contain XDR encoded ACL
83 * @base: byte offset in xdr_buf where XDR'd ACL begins
91 int nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, nfsacl_encode()
257 * @buf: xdr_buf containing XDR'd ACL data to decode
258 * @base: byte offset in xdr_buf where XDR'd ACL begins
264 int nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt, nfsacl_decode()
/linux-4.4.14/net/sunrpc/auth_gss/
H A Dgss_krb5_wrap.c49 gss_krb5_add_padding(struct xdr_buf *buf, int offset, int blocksize) gss_krb5_add_padding()
66 gss_krb5_remove_padding(struct xdr_buf *buf, int blocksize) gss_krb5_remove_padding()
159 struct xdr_buf *buf, struct page **pages) gss_wrap_kerberos_v1()
266 gss_unwrap_kerberos_v1(struct krb5_ctx *kctx, int offset, struct xdr_buf *buf) gss_unwrap_kerberos_v1()
401 static void rotate_buf_a_little(struct xdr_buf *buf, unsigned int shift) rotate_buf_a_little()
418 static void _rotate_left(struct xdr_buf *buf, unsigned int shift) _rotate_left()
431 static void rotate_left(u32 base, struct xdr_buf *buf, unsigned int shift) rotate_left()
433 struct xdr_buf subbuf; rotate_left()
441 struct xdr_buf *buf, struct page **pages) gss_wrap_kerberos_v2()
495 gss_unwrap_kerberos_v2(struct krb5_ctx *kctx, int offset, struct xdr_buf *buf) gss_unwrap_kerberos_v2()
571 * Move the head data back to the right position in xdr_buf. gss_unwrap_kerberos_v2()
592 struct xdr_buf *buf, struct page **pages) gss_wrap_kerberos()
610 gss_unwrap_kerberos(struct gss_ctx *gctx, int offset, struct xdr_buf *buf) gss_unwrap_kerberos()
H A Dgss_krb5_crypto.c152 struct xdr_buf *body, int body_offset, u8 *cksumkey, make_checksum_hmac_md5()
242 struct xdr_buf *body, int body_offset, u8 *cksumkey, make_checksum()
323 struct xdr_buf *body, int body_offset, u8 *cksumkey, make_checksum_v2()
392 struct xdr_buf *outbuf;
404 struct xdr_buf *outbuf = desc->outbuf; encryptor()
462 gss_encrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *buf, gss_encrypt_xdr_buf()
538 gss_decrypt_xdr_buf(struct crypto_blkcipher *tfm, struct xdr_buf *buf, gss_decrypt_xdr_buf()
576 xdr_extend_head(struct xdr_buf *buf, unsigned int base, unsigned int shiftlen) xdr_extend_head()
597 gss_krb5_cts_crypt(struct crypto_blkcipher *cipher, struct xdr_buf *buf, gss_krb5_cts_crypt()
615 * the supplied xdr_buf pages. gss_krb5_cts_crypt()
644 struct xdr_buf *buf, struct page **pages) gss_krb5_aes_encrypt()
760 gss_krb5_aes_decrypt(struct krb5_ctx *kctx, u32 offset, struct xdr_buf *buf, gss_krb5_aes_decrypt()
763 struct xdr_buf subbuf; gss_krb5_aes_decrypt()
H A Dgss_mech_switch.c405 struct xdr_buf *message, gss_get_mic()
418 struct xdr_buf *message, gss_verify_mic()
444 struct xdr_buf *buf, gss_wrap()
454 struct xdr_buf *buf) gss_unwrap()
H A Dgss_krb5_seal.c128 gss_get_mic_v1(struct krb5_ctx *ctx, struct xdr_buf *text, gss_get_mic_v1()
169 gss_get_mic_v2(struct krb5_ctx *ctx, struct xdr_buf *text, gss_get_mic_v2()
212 gss_get_mic_kerberos(struct gss_ctx *gss_ctx, struct xdr_buf *text, gss_get_mic_kerberos()
H A Dgss_krb5_unseal.c75 struct xdr_buf *message_buffer, struct xdr_netobj *read_token) gss_verify_mic_v1()
147 struct xdr_buf *message_buffer, struct xdr_netobj *read_token) gss_verify_mic_v2()
209 struct xdr_buf *message_buffer, gss_verify_mic_kerberos()
H A Dsvcauth_gss.c663 struct xdr_buf rpchdr; gss_verify_header()
723 struct xdr_buf verf_data; gss_write_verf()
809 read_u32_from_xdr_buf(struct xdr_buf *buf, int base, u32 *obj) read_u32_from_xdr_buf()
827 unwrap_integ_data(struct svc_rqst *rqstp, struct xdr_buf *buf, u32 seq, struct gss_ctx *ctx) unwrap_integ_data()
832 struct xdr_buf integ_buf; unwrap_integ_data()
869 total_buf_len(struct xdr_buf *buf) total_buf_len()
875 fix_priv_head(struct xdr_buf *buf, int pad) fix_priv_head()
886 unwrap_priv_data(struct svc_rqst *rqstp, struct xdr_buf *buf, u32 seq, struct gss_ctx *ctx) unwrap_priv_data()
1551 svcauth_gss_prepare_to_wrap(struct xdr_buf *resbuf, struct gss_svc_data *gsd) svcauth_gss_prepare_to_wrap()
1582 struct xdr_buf *resbuf = &rqstp->rq_res; svcauth_gss_wrap_resp_integ()
1583 struct xdr_buf integ_buf; svcauth_gss_wrap_resp_integ()
1629 struct xdr_buf *resbuf = &rqstp->rq_res; svcauth_gss_wrap_resp_priv()
1694 struct xdr_buf *resbuf = &rqstp->rq_res; svcauth_gss_release()
H A Dauth_gss.c1487 struct xdr_buf verf_buf; gss_marshal()
1610 struct xdr_buf verf_buf; gss_validate()
1667 struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; gss_wrap_req_integ()
1668 struct xdr_buf integ_buf; gss_wrap_req_integ()
1723 struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; alloc_enc_pages()
1758 struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; gss_wrap_req_priv()
1862 struct xdr_buf *rcv_buf = &rqstp->rq_rcv_buf; gss_unwrap_resp_integ()
1863 struct xdr_buf integ_buf; gss_unwrap_resp_integ()
1899 struct xdr_buf *rcv_buf = &rqstp->rq_rcv_buf; gss_unwrap_resp_priv()
/linux-4.4.14/drivers/block/
H A Dps3vram.c78 u8 *xdr_buf; member in struct:ps3vram_priv
464 memcpy(buf, priv->xdr_buf + cached, avail); ps3vram_read()
505 memcpy(priv->xdr_buf + cached, buf, avail); ps3vram_write()
647 priv->xdr_buf = (void *)__get_free_pages(GFP_KERNEL, ps3vram_probe()
649 if (priv->xdr_buf == NULL) { ps3vram_probe()
656 priv->fifo_base = (u32 *) (priv->xdr_buf + FIFO_OFFSET); ps3vram_probe()
703 xdr_lpar = ps3_mm_phys_to_lpar(__pa(priv->xdr_buf)); ps3vram_probe()
805 free_pages((unsigned long) priv->xdr_buf, get_order(XDR_BUF_SIZE)); ps3vram_probe()
825 ps3_mm_phys_to_lpar(__pa(priv->xdr_buf)), ps3vram_remove()
830 free_pages((unsigned long) priv->xdr_buf, get_order(XDR_BUF_SIZE)); ps3vram_remove()
/linux-4.4.14/net/sunrpc/xprtrdma/
H A Dsvc_rdma_sendto.c54 struct xdr_buf *xdr, map_xdr()
110 struct xdr_buf *xdr, dma_map_xdr()
535 * xdr_buf.tail gets a separate sge, but resides in the send_reply()
536 * same page as xdr_buf.head. Don't count it twice. send_reply()
H A Dbackchannel.c41 struct xdr_buf *buf; rpcrdma_bc_setup_rqst()
304 struct xdr_buf *buf; rpcrdma_bc_receive_call()
H A Drpc_rdma.c100 rpcrdma_tail_pullup(struct xdr_buf *buf) rpcrdma_tail_pullup()
136 * Chunk assembly from upper layer xdr_buf.
138 * Prepare the passed-in xdr_buf into representation as RPC/RDMA chunk
146 rpcrdma_convert_iovs(struct xdr_buf *xdrbuf, unsigned int pos, rpcrdma_convert_iovs()
243 rpcrdma_create_chunks(struct rpc_rqst *rqst, struct xdr_buf *target, rpcrdma_create_chunks()
/linux-4.4.14/fs/nfsd/
H A Dnfscache.c282 * Walk an xdr_buf and get a CRC for at most the first RC_CSUMLEN bytes
290 struct xdr_buf *buf = &rqstp->rq_arg; nfsd_cache_csum()
H A Dnfs4xdr.c2796 struct xdr_buf *buf, __be32 *p, int bytes) svcxdr_init_encode_from_buffer()
2799 memset(buf, 0, sizeof(struct xdr_buf)); svcxdr_init_encode_from_buffer()
2815 struct xdr_buf dummy; nfsd4_encode_fattr_to_buf()
3346 struct xdr_buf *buf = xdr->buf; nfsd4_encode_splice_read()
4315 struct xdr_buf *buf = &resp->rqstp->rq_res; nfsd4_check_resp_size()
4473 struct xdr_buf *buf = resp->xdr.buf; nfs4svc_encode_compoundres()
H A Dnfs4proc.c1578 struct xdr_buf *buf = &rqstp->rq_res; svcxdr_init_encode()
H A Dnfs4state.c2226 struct xdr_buf *buf = resp->xdr.buf; nfsd4_store_cache_entry()
2885 struct xdr_buf *xb = &rqstp->rq_arg; nfsd4_request_too_big()
/linux-4.4.14/fs/nfs/blocklayout/
H A Ddev.c320 struct xdr_buf buf; bl_alloc_deviceid_node()
H A Dblocklayout.c606 struct xdr_buf buf; bl_alloc_lseg()
/linux-4.4.14/fs/nfs/filelayout/
H A Dfilelayoutdev.c74 struct xdr_buf buf; nfs4_fl_alloc_deviceid_node()
H A Dfilelayout.c655 struct xdr_buf buf; filelayout_decode_layout()
/linux-4.4.14/fs/nfs/flexfilelayout/
H A Dflexfilelayoutdev.c42 struct xdr_buf buf; nfs4_ff_alloc_deviceid_node()
H A Dflexfilelayout.c363 struct xdr_buf buf; ff_layout_alloc_lseg()
/linux-4.4.14/fs/nfs/objlayout/
H A Dobjlayout.c88 struct xdr_buf buf = { objlayout_alloc_lseg()
/linux-4.4.14/fs/nfs/
H A Dnfs4xdr.c2893 * so that notification bitmap is put in xdr_buf tail */ nfs4_xdr_enc_getdeviceinfo()
5213 struct xdr_buf *rcvbuf = &req->rq_rcv_buf; decode_readlink()
5873 * the opaque device_addr4 in the xdr_buf->pages (pnfs_device->pages) decode_getdeviceinfo()
5874 * and places the remaining xdr data in xdr_buf->tail decode_getdeviceinfo()
H A Ddir.c536 struct xdr_buf buf; nfs_readdir_page_filler()
H A Dnfs4proc.c3648 * shift it into the 'tail' of the xdr_buf before processing.

Completed in 1001 milliseconds