Home
last modified time | relevance | path

Searched refs:xdr_stream (Results 1 – 25 of 46) sorted by relevance

12

/Linux-v4.19/include/linux/sunrpc/
Dxdr.h207 struct xdr_stream { struct
221 typedef void (*kxdreproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
223 typedef int (*kxdrdproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
226 extern void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p);
227 extern __be32 *xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes);
228 extern void xdr_commit_encode(struct xdr_stream *xdr);
229 extern void xdr_truncate_encode(struct xdr_stream *xdr, size_t len);
230 extern int xdr_restrict_buflen(struct xdr_stream *xdr, int newbuflen);
231 extern void xdr_write_pages(struct xdr_stream *xdr, struct page **pages,
233 extern unsigned int xdr_stream_pos(const struct xdr_stream *xdr);
[all …]
/Linux-v4.19/fs/nfs/
Dnfs3xdr.c124 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg()
143 static void encode_uint32(struct xdr_stream *xdr, u32 value) in encode_uint32()
149 static int decode_uint32(struct xdr_stream *xdr, u32 *value) in decode_uint32()
163 static int decode_uint64(struct xdr_stream *xdr, u64 *value) in decode_uint64()
187 static int decode_fileid3(struct xdr_stream *xdr, u64 *fileid) in decode_fileid3()
197 static void encode_filename3(struct xdr_stream *xdr, in encode_filename3()
207 static int decode_inline_filename3(struct xdr_stream *xdr, in decode_inline_filename3()
239 static void encode_nfspath3(struct xdr_stream *xdr, struct page **pages, in encode_nfspath3()
246 static int decode_nfspath3(struct xdr_stream *xdr) in decode_nfspath3()
285 static int decode_cookie3(struct xdr_stream *xdr, u64 *cookie) in decode_cookie3()
[all …]
Dnfs4xdr.c70 static void encode_layoutget(struct xdr_stream *xdr,
73 static int decode_layoutget(struct xdr_stream *xdr, struct rpc_rqst *req,
948 static __be32 *reserve_space(struct xdr_stream *xdr, size_t nbytes) in reserve_space()
955 static void encode_opaque_fixed(struct xdr_stream *xdr, const void *buf, size_t len) in encode_opaque_fixed()
960 static void encode_string(struct xdr_stream *xdr, unsigned int len, const char *str) in encode_string()
965 static void encode_uint32(struct xdr_stream *xdr, u32 n) in encode_uint32()
970 static void encode_uint64(struct xdr_stream *xdr, u64 n) in encode_uint64()
975 static ssize_t xdr_encode_bitmap4(struct xdr_stream *xdr, in xdr_encode_bitmap4()
1004 static void encode_nfs4_seqid(struct xdr_stream *xdr, in encode_nfs4_seqid()
1013 static void encode_compound_hdr(struct xdr_stream *xdr, in encode_compound_hdr()
[all …]
Dnfs2xdr.c85 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg()
107 static int decode_nfsdata(struct xdr_stream *xdr, struct nfs_pgio_res *result) in decode_nfsdata()
155 static int decode_stat(struct xdr_stream *xdr, enum nfs_stat *status) in decode_stat()
195 static void encode_fhandle(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fhandle()
203 static int decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fhandle()
279 static int decode_fattr(struct xdr_stream *xdr, struct nfs_fattr *fattr) in decode_fattr()
355 static void encode_sattr(struct xdr_stream *xdr, const struct iattr *attr) in encode_sattr()
402 static void encode_filename(struct xdr_stream *xdr, in encode_filename()
412 static int decode_filename_inline(struct xdr_stream *xdr, in decode_filename_inline()
443 static void encode_path(struct xdr_stream *xdr, struct page **pages, u32 length) in encode_path()
[all …]
Dnfs42xdr.c124 static void encode_fallocate(struct xdr_stream *xdr, in encode_fallocate()
132 static void encode_allocate(struct xdr_stream *xdr, in encode_allocate()
140 static void encode_copy(struct xdr_stream *xdr, in encode_copy()
157 static void encode_offload_cancel(struct xdr_stream *xdr, in encode_offload_cancel()
165 static void encode_deallocate(struct xdr_stream *xdr, in encode_deallocate()
173 static void encode_seek(struct xdr_stream *xdr, in encode_seek()
183 static void encode_layoutstats(struct xdr_stream *xdr, in encode_layoutstats()
211 static void encode_clone(struct xdr_stream *xdr, in encode_clone()
230 struct xdr_stream *xdr, in nfs4_xdr_enc_allocate()
246 static void encode_copy_commit(struct xdr_stream *xdr, in encode_copy_commit()
[all …]
Dcallback_xdr.c52 __be32 (*decode_args)(struct svc_rqst *, struct xdr_stream *, void *);
53 __be32 (*encode_res)(struct svc_rqst *, struct xdr_stream *,
75 static __be32 *read_buf(struct xdr_stream *xdr, size_t nbytes) in read_buf()
85 static __be32 decode_string(struct xdr_stream *xdr, unsigned int *len, in decode_string()
97 static __be32 decode_fh(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fh()
115 static __be32 decode_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_bitmap()
134 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid()
145 static __be32 decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_delegation_stateid()
151 static __be32 decode_compound_hdr_arg(struct xdr_stream *xdr, struct cb_compound_hdr_arg *hdr) in decode_compound_hdr_arg()
176 static __be32 decode_op_hdr(struct xdr_stream *xdr, unsigned int *op) in decode_op_hdr()
[all …]
Dmount_clnt.c298 static void encode_mntdirpath(struct xdr_stream *xdr, const char *pathname) in encode_mntdirpath()
307 static void mnt_xdr_enc_dirpath(struct rpc_rqst *req, struct xdr_stream *xdr, in mnt_xdr_enc_dirpath()
322 static int decode_status(struct xdr_stream *xdr, struct mountres *res) in decode_status()
345 static int decode_fhandle(struct xdr_stream *xdr, struct mountres *res) in decode_fhandle()
360 struct xdr_stream *xdr, in mnt_xdr_dec_mountres()
372 static int decode_fhs_status(struct xdr_stream *xdr, struct mountres *res) in decode_fhs_status()
395 static int decode_fhandle3(struct xdr_stream *xdr, struct mountres *res) in decode_fhandle3()
418 static int decode_auth_flavors(struct xdr_stream *xdr, struct mountres *res) in decode_auth_flavors()
453 struct xdr_stream *xdr, in mnt_xdr_dec_mountres3()
/Linux-v4.19/fs/lockd/
Dclnt4xdr.c80 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg()
100 static void encode_bool(struct xdr_stream *xdr, const int value) in encode_bool()
108 static void encode_int32(struct xdr_stream *xdr, const s32 value) in encode_int32()
119 static void encode_netobj(struct xdr_stream *xdr, in encode_netobj()
128 static int decode_netobj(struct xdr_stream *xdr, in decode_netobj()
154 static void encode_cookie(struct xdr_stream *xdr, in encode_cookie()
160 static int decode_cookie(struct xdr_stream *xdr, in decode_cookie()
196 static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fh()
223 static void encode_nlm4_stat(struct xdr_stream *xdr, in encode_nlm4_stat()
233 static int decode_nlm4_stat(struct xdr_stream *xdr, __be32 *stat) in decode_nlm4_stat()
[all …]
Dclntxdr.c76 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg()
97 static void encode_bool(struct xdr_stream *xdr, const int value) in encode_bool()
105 static void encode_int32(struct xdr_stream *xdr, const s32 value) in encode_int32()
116 static void encode_netobj(struct xdr_stream *xdr, in encode_netobj()
125 static int decode_netobj(struct xdr_stream *xdr, in decode_netobj()
151 static void encode_cookie(struct xdr_stream *xdr, in encode_cookie()
157 static int decode_cookie(struct xdr_stream *xdr, in decode_cookie()
193 static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fh()
217 static void encode_nlm_stat(struct xdr_stream *xdr, in encode_nlm_stat()
227 static int decode_nlm_stat(struct xdr_stream *xdr, in decode_nlm_stat()
[all …]
Dmon.c423 static void encode_nsm_string(struct xdr_stream *xdr, const char *string) in encode_nsm_string()
435 static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_name()
446 static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_my_id()
461 static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_id()
472 static void encode_priv(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_priv()
480 static void nsm_xdr_enc_mon(struct rpc_rqst *req, struct xdr_stream *xdr, in nsm_xdr_enc_mon()
487 static void nsm_xdr_enc_unmon(struct rpc_rqst *req, struct xdr_stream *xdr, in nsm_xdr_enc_unmon()
494 struct xdr_stream *xdr, in nsm_xdr_dec_stat_res()
512 struct xdr_stream *xdr, in nsm_xdr_dec_stat()
/Linux-v4.19/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c24 static int gssx_enc_bool(struct xdr_stream *xdr, int v) in gssx_enc_bool()
35 static int gssx_dec_bool(struct xdr_stream *xdr, u32 *v) in gssx_dec_bool()
46 static int gssx_enc_buffer(struct xdr_stream *xdr, in gssx_enc_buffer()
58 static int gssx_enc_in_token(struct xdr_stream *xdr, in gssx_enc_in_token()
75 static int gssx_dec_buffer(struct xdr_stream *xdr, in gssx_dec_buffer()
108 static int gssx_enc_option(struct xdr_stream *xdr, in gssx_enc_option()
120 static int gssx_dec_option(struct xdr_stream *xdr, in gssx_dec_option()
132 static int dummy_enc_opt_array(struct xdr_stream *xdr, in dummy_enc_opt_array()
148 static int dummy_dec_opt_array(struct xdr_stream *xdr, in dummy_dec_opt_array()
169 static int get_host_u32(struct xdr_stream *xdr, u32 *res) in get_host_u32()
[all …]
Dgss_rpc_xdr.h181 struct xdr_stream *xdr,
184 struct xdr_stream *xdr,
/Linux-v4.19/fs/nfsd/
Dnfs4callback.c65 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg()
111 static void encode_nfs_cb_opnum4(struct xdr_stream *xdr, enum nfs_cb_opnum4 op) in encode_nfs_cb_opnum4()
124 static void encode_nfs_fh4(struct xdr_stream *xdr, const struct knfsd_fh *fh) in encode_nfs_fh4()
142 static void encode_stateid4(struct xdr_stream *xdr, const stateid_t *sid) in encode_stateid4()
156 static void encode_sessionid4(struct xdr_stream *xdr, in encode_sessionid4()
226 static int decode_cb_op_status(struct xdr_stream *xdr, in decode_cb_op_status()
259 static void encode_cb_compound4args(struct xdr_stream *xdr, in encode_cb_compound4args()
291 static int decode_cb_compound4res(struct xdr_stream *xdr, in decode_cb_compound4res()
323 static void encode_cb_recall4args(struct xdr_stream *xdr, in encode_cb_recall4args()
352 static void encode_cb_sequence4args(struct xdr_stream *xdr, in encode_cb_sequence4args()
[all …]
Dflexfilelayoutxdr.h15 struct xdr_stream;
45 __be32 nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr,
47 __be32 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr,
Dblocklayoutxdr.h9 struct xdr_stream;
53 __be32 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr,
55 __be32 nfsd4_block_encode_layoutget(struct xdr_stream *xdr,
Dpnfs.h12 struct xdr_stream;
29 __be32 (*encode_getdeviceinfo)(struct xdr_stream *xdr,
34 __be32 (*encode_layoutget)(struct xdr_stream *,
Didmap.h57 __be32 nfsd4_encode_user(struct xdr_stream *, struct svc_rqst *, kuid_t);
58 __be32 nfsd4_encode_group(struct xdr_stream *, struct svc_rqst *, kgid_t);
Dnfs4xdr.c2050 static __be32 nfsd4_encode_components_esc(struct xdr_stream *xdr, char sep, in nfsd4_encode_components_esc()
2110 static __be32 nfsd4_encode_components(struct xdr_stream *xdr, char sep, in nfsd4_encode_components()
2119 static __be32 nfsd4_encode_fs_location4(struct xdr_stream *xdr, in nfsd4_encode_fs_location4()
2137 static __be32 nfsd4_encode_path(struct xdr_stream *xdr, in nfsd4_encode_path()
2207 static __be32 nfsd4_encode_fsloc_fsroot(struct xdr_stream *xdr, in nfsd4_encode_fsloc_fsroot()
2224 static __be32 nfsd4_encode_fs_locations(struct xdr_stream *xdr, in nfsd4_encode_fs_locations()
2262 nfsd4_encode_aclname(struct xdr_stream *xdr, struct svc_rqst *rqstp, in nfsd4_encode_aclname()
2274 nfsd4_encode_layout_types(struct xdr_stream *xdr, u32 layout_types) in nfsd4_encode_layout_types()
2299 nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp, in nfsd4_encode_security_label()
2319 nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp, in nfsd4_encode_security_label()
[all …]
Dblocklayoutxdr.c17 nfsd4_block_encode_layoutget(struct xdr_stream *xdr, in nfsd4_block_encode_layoutget()
41 nfsd4_block_encode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) in nfsd4_block_encode_volume()
78 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr, in nfsd4_block_encode_getdeviceinfo()
Dflexfilelayoutxdr.c19 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr, in nfsd4_ff_encode_layoutget()
79 nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr, in nfsd4_ff_encode_getdeviceinfo()
Dacl.h52 __be32 nfs4_acl_write_who(struct xdr_stream *xdr, int who);
/Linux-v4.19/include/linux/
Dpnfs_osd_xdr.h294 struct pnfs_osd_xdr_decode_layout_iter *iter, struct xdr_stream *xdr);
297 struct pnfs_osd_xdr_decode_layout_iter *iter, struct xdr_stream *xdr,
310 pnfs_osd_xdr_encode_layoutupdate(struct xdr_stream *xdr,
314 extern __be32 *pnfs_osd_xdr_ioerr_reserve_space(struct xdr_stream *xdr);
/Linux-v4.19/net/sunrpc/
Dxdr.c441 unsigned int xdr_stream_pos(const struct xdr_stream *xdr) in xdr_stream_pos()
460 void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p) in xdr_init_encode()
498 void xdr_commit_encode(struct xdr_stream *xdr) in xdr_commit_encode()
512 static __be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr, in xdr_get_next_encode_buffer()
562 __be32 * xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes) in xdr_reserve_space()
603 void xdr_truncate_encode(struct xdr_stream *xdr, size_t len) in xdr_truncate_encode()
666 int xdr_restrict_buflen(struct xdr_stream *xdr, int newbuflen) in xdr_restrict_buflen()
691 void xdr_write_pages(struct xdr_stream *xdr, struct page **pages, unsigned int base, in xdr_write_pages()
718 static void xdr_set_iov(struct xdr_stream *xdr, struct kvec *iov, in xdr_set_iov()
729 static int xdr_set_page_base(struct xdr_stream *xdr, in xdr_set_page_base()
[all …]
/Linux-v4.19/net/sunrpc/xprtrdma/
Drpc_rdma.c265 encode_item_present(struct xdr_stream *xdr) in encode_item_present()
278 encode_item_not_present(struct xdr_stream *xdr) in encode_item_not_present()
299 encode_rdma_segment(struct xdr_stream *xdr, struct rpcrdma_mr *mr) in encode_rdma_segment()
312 encode_read_segment(struct xdr_stream *xdr, struct rpcrdma_mr *mr, in encode_read_segment()
345 struct xdr_stream *xdr = &req->rl_stream; in rpcrdma_encode_read_list()
397 struct xdr_stream *xdr = &req->rl_stream; in rpcrdma_encode_write_list()
457 struct xdr_stream *xdr = &req->rl_stream; in rpcrdma_encode_reply_chunk()
732 struct xdr_stream *xdr = &req->rl_stream; in rpcrdma_marshal_req()
983 struct xdr_stream *xdr = &rep->rr_stream; in rpcrdma_is_bcall()
1026 static int decode_rdma_segment(struct xdr_stream *xdr, u32 *length) in decode_rdma_segment()
[all …]
/Linux-v4.19/fs/nfs/flexfilelayout/
Dflexfilelayout.c38 static void ff_layout_encode_ff_layoutupdate(struct xdr_stream *xdr,
70 static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_pnfs_stateid()
84 static int decode_deviceid(struct xdr_stream *xdr, struct nfs4_deviceid *devid) in decode_deviceid()
96 static int decode_nfs_fh(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_nfs_fh()
128 decode_name(struct xdr_stream *xdr, u32 *id) in decode_name()
370 struct xdr_stream stream; in ff_layout_alloc_lseg()
1922 static int ff_layout_encode_ioerr(struct xdr_stream *xdr, in ff_layout_encode_ioerr()
1938 encode_opaque_fixed(struct xdr_stream *xdr, const void *buf, size_t len) in encode_opaque_fixed()
1944 ff_layout_encode_ff_iostat_head(struct xdr_stream *xdr, in ff_layout_encode_ff_iostat_head()
1963 ff_layout_encode_ff_iostat(struct xdr_stream *xdr, in ff_layout_encode_ff_iostat()
[all …]

12