Home
last modified time | relevance | path

Searched refs:xdr (Results 1 – 25 of 36) sorted by relevance

12

/fs/nfs/
Dnfs4xdr.c910 static __be32 *reserve_space(struct xdr_stream *xdr, size_t nbytes) in reserve_space() argument
912 __be32 *p = xdr_reserve_space(xdr, nbytes); in reserve_space()
917 static void encode_opaque_fixed(struct xdr_stream *xdr, const void *buf, size_t len) in encode_opaque_fixed() argument
921 p = xdr_reserve_space(xdr, len); in encode_opaque_fixed()
925 static void encode_string(struct xdr_stream *xdr, unsigned int len, const char *str) in encode_string() argument
929 p = reserve_space(xdr, 4 + len); in encode_string()
933 static void encode_uint32(struct xdr_stream *xdr, u32 n) in encode_uint32() argument
937 p = reserve_space(xdr, 4); in encode_uint32()
941 static void encode_uint64(struct xdr_stream *xdr, u64 n) in encode_uint64() argument
945 p = reserve_space(xdr, 8); in encode_uint64()
[all …]
Dnfs42xdr.c112 static void encode_fallocate(struct xdr_stream *xdr, in encode_fallocate() argument
115 encode_nfs4_stateid(xdr, &args->falloc_stateid); in encode_fallocate()
116 encode_uint64(xdr, args->falloc_offset); in encode_fallocate()
117 encode_uint64(xdr, args->falloc_length); in encode_fallocate()
120 static void encode_allocate(struct xdr_stream *xdr, in encode_allocate() argument
124 encode_op_hdr(xdr, OP_ALLOCATE, decode_allocate_maxsz, hdr); in encode_allocate()
125 encode_fallocate(xdr, args); in encode_allocate()
128 static void encode_copy(struct xdr_stream *xdr, in encode_copy() argument
132 encode_op_hdr(xdr, OP_COPY, decode_copy_maxsz, hdr); in encode_copy()
133 encode_nfs4_stateid(xdr, &args->src_stateid); in encode_copy()
[all …]
Dnfs3xdr.c123 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument
127 func, xdr->end - xdr->p); in print_overflow_msg()
142 static void encode_uint32(struct xdr_stream *xdr, u32 value) in encode_uint32() argument
144 __be32 *p = xdr_reserve_space(xdr, 4); in encode_uint32()
148 static int decode_uint32(struct xdr_stream *xdr, u32 *value) in decode_uint32() argument
152 p = xdr_inline_decode(xdr, 4); in decode_uint32()
158 print_overflow_msg(__func__, xdr); in decode_uint32()
162 static int decode_uint64(struct xdr_stream *xdr, u64 *value) in decode_uint64() argument
166 p = xdr_inline_decode(xdr, 8); in decode_uint64()
172 print_overflow_msg(__func__, xdr); in decode_uint64()
[all …]
Dnfs2xdr.c84 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument
88 func, xdr->end - xdr->p); in print_overflow_msg()
106 static int decode_nfsdata(struct xdr_stream *xdr, struct nfs_pgio_res *result) in decode_nfsdata() argument
111 p = xdr_inline_decode(xdr, 4); in decode_nfsdata()
115 recvd = xdr_read_pages(xdr, count); in decode_nfsdata()
128 print_overflow_msg(__func__, xdr); in decode_nfsdata()
154 static int decode_stat(struct xdr_stream *xdr, enum nfs_stat *status) in decode_stat() argument
158 p = xdr_inline_decode(xdr, 4); in decode_stat()
164 print_overflow_msg(__func__, xdr); in decode_stat()
194 static void encode_fhandle(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fhandle() argument
[all …]
Dcallback_xdr.c76 static __be32 *read_buf(struct xdr_stream *xdr, size_t nbytes) in read_buf() argument
80 p = xdr_inline_decode(xdr, nbytes); in read_buf()
86 static __be32 decode_string(struct xdr_stream *xdr, unsigned int *len, const char **str) in decode_string() argument
90 p = read_buf(xdr, 4); in decode_string()
96 p = read_buf(xdr, *len); in decode_string()
106 static __be32 decode_fh(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fh() argument
110 p = read_buf(xdr, 4); in decode_fh()
116 p = read_buf(xdr, fh->size); in decode_fh()
124 static __be32 decode_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_bitmap() argument
129 p = read_buf(xdr, 4); in decode_bitmap()
[all …]
Dmount_clnt.c297 static void encode_mntdirpath(struct xdr_stream *xdr, const char *pathname) in encode_mntdirpath() argument
302 p = xdr_reserve_space(xdr, 4 + pathname_len); in encode_mntdirpath()
306 static void mnt_xdr_enc_dirpath(struct rpc_rqst *req, struct xdr_stream *xdr, in mnt_xdr_enc_dirpath() argument
309 encode_mntdirpath(xdr, dirpath); in mnt_xdr_enc_dirpath()
321 static int decode_status(struct xdr_stream *xdr, struct mountres *res) in decode_status() argument
327 p = xdr_inline_decode(xdr, 4); in decode_status()
344 static int decode_fhandle(struct xdr_stream *xdr, struct mountres *res) in decode_fhandle() argument
349 p = xdr_inline_decode(xdr, NFS2_FHSIZE); in decode_fhandle()
359 struct xdr_stream *xdr, in mnt_xdr_dec_mountres() argument
364 status = decode_status(xdr, res); in mnt_xdr_dec_mountres()
[all …]
Dpnfs_nfs.c790 nfs4_decode_mp_ds_addr(struct net *net, struct xdr_stream *xdr, gfp_t gfp_flags) in nfs4_decode_mp_ds_addr() argument
805 p = xdr_inline_decode(xdr, 4); in nfs4_decode_mp_ds_addr()
810 p = xdr_inline_decode(xdr, nlen); in nfs4_decode_mp_ds_addr()
822 p = xdr_inline_decode(xdr, 4); in nfs4_decode_mp_ds_addr()
827 p = xdr_inline_decode(xdr, rlen); in nfs4_decode_mp_ds_addr()
/fs/lockd/
Dclntxdr.c75 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument
79 func, xdr->end - xdr->p); in print_overflow_msg()
96 static void encode_bool(struct xdr_stream *xdr, const int value) in encode_bool() argument
100 p = xdr_reserve_space(xdr, 4); in encode_bool()
104 static void encode_int32(struct xdr_stream *xdr, const s32 value) in encode_int32() argument
108 p = xdr_reserve_space(xdr, 4); in encode_int32()
115 static void encode_netobj(struct xdr_stream *xdr, in encode_netobj() argument
120 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj()
124 static int decode_netobj(struct xdr_stream *xdr, in decode_netobj() argument
130 p = xdr_inline_decode(xdr, 4); in decode_netobj()
[all …]
Dclnt4xdr.c79 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument
83 func, xdr->end - xdr->p); in print_overflow_msg()
99 static void encode_bool(struct xdr_stream *xdr, const int value) in encode_bool() argument
103 p = xdr_reserve_space(xdr, 4); in encode_bool()
107 static void encode_int32(struct xdr_stream *xdr, const s32 value) in encode_int32() argument
111 p = xdr_reserve_space(xdr, 4); in encode_int32()
118 static void encode_netobj(struct xdr_stream *xdr, in encode_netobj() argument
123 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj()
127 static int decode_netobj(struct xdr_stream *xdr, in decode_netobj() argument
133 p = xdr_inline_decode(xdr, 4); in decode_netobj()
[all …]
Dmon.c421 static void encode_nsm_string(struct xdr_stream *xdr, const char *string) in encode_nsm_string() argument
426 p = xdr_reserve_space(xdr, 4 + len); in encode_nsm_string()
433 static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_name() argument
435 encode_nsm_string(xdr, argp->mon_name); in encode_mon_name()
444 static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_my_id() argument
448 encode_nsm_string(xdr, argp->nodename); in encode_my_id()
449 p = xdr_reserve_space(xdr, 4 + 4 + 4); in encode_my_id()
459 static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_id() argument
461 encode_mon_name(xdr, argp); in encode_mon_id()
462 encode_my_id(xdr, argp); in encode_mon_id()
[all …]
DMakefile8 svcshare.o svcproc.o svcsubs.o mon.o xdr.o
/fs/nfsd/
Dnfs4xdr.c1963 static __be32 nfsd4_encode_components_esc(struct xdr_stream *xdr, char sep, in nfsd4_encode_components_esc() argument
1975 pathlen_offset = xdr->buf->len; in nfsd4_encode_components_esc()
1976 p = xdr_reserve_space(xdr, 4); in nfsd4_encode_components_esc()
2002 p = xdr_reserve_space(xdr, strlen + 4); in nfsd4_encode_components_esc()
2016 write_bytes_to_xdr_buf(xdr->buf, pathlen_offset, &pathlen, 4); in nfsd4_encode_components_esc()
2023 static __be32 nfsd4_encode_components(struct xdr_stream *xdr, char sep, in nfsd4_encode_components() argument
2026 return nfsd4_encode_components_esc(xdr, sep, components, 0, 0); in nfsd4_encode_components()
2032 static __be32 nfsd4_encode_fs_location4(struct xdr_stream *xdr, in nfsd4_encode_fs_location4() argument
2037 status = nfsd4_encode_components_esc(xdr, ':', location->hosts, in nfsd4_encode_fs_location4()
2041 status = nfsd4_encode_components(xdr, '/', location->path); in nfsd4_encode_fs_location4()
[all …]
Dnfs4callback.c65 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument
69 func, xdr->end - xdr->p); 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() argument
115 p = xdr_reserve_space(xdr, 4); in encode_nfs_cb_opnum4()
124 static void encode_nfs_fh4(struct xdr_stream *xdr, const struct knfsd_fh *fh) in encode_nfs_fh4() argument
130 p = xdr_reserve_space(xdr, 4 + length); in encode_nfs_fh4()
142 static void encode_stateid4(struct xdr_stream *xdr, const stateid_t *sid) in encode_stateid4() argument
146 p = xdr_reserve_space(xdr, NFS4_STATEID_SIZE); in encode_stateid4()
156 static void encode_sessionid4(struct xdr_stream *xdr, in encode_sessionid4() argument
161 p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN); in encode_sessionid4()
[all …]
Dblocklayoutxdr.c16 nfsd4_block_encode_layoutget(struct xdr_stream *xdr, in nfsd4_block_encode_layoutget() argument
23 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_block_encode_layoutget()
40 nfsd4_block_encode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) in nfsd4_block_encode_volume() argument
48 p = xdr_reserve_space(xdr, len); in nfsd4_block_encode_volume()
59 p = xdr_reserve_space(xdr, len); in nfsd4_block_encode_volume()
77 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr, in nfsd4_block_encode_getdeviceinfo() argument
84 p = xdr_reserve_space(xdr, len + sizeof(__be32)); in nfsd4_block_encode_getdeviceinfo()
89 ret = nfsd4_block_encode_volume(xdr, &dev->volumes[i]); in nfsd4_block_encode_getdeviceinfo()
Dnfs4idmap.c547 static __be32 encode_ascii_id(struct xdr_stream *xdr, u32 id) in encode_ascii_id() argument
554 p = xdr_reserve_space(xdr, len + 4); in encode_ascii_id()
561 static __be32 idmap_id_to_name(struct xdr_stream *xdr, in idmap_id_to_name() argument
575 return encode_ascii_id(xdr, id); in idmap_id_to_name()
580 p = xdr_reserve_space(xdr, ret + 4); in idmap_id_to_name()
617 static __be32 encode_name_from_id(struct xdr_stream *xdr, in encode_name_from_id() argument
621 return encode_ascii_id(xdr, id); in encode_name_from_id()
622 return idmap_id_to_name(xdr, rqstp, type, id); in encode_name_from_id()
651 __be32 nfsd4_encode_user(struct xdr_stream *xdr, struct svc_rqst *rqstp, in nfsd4_encode_user() argument
655 return encode_name_from_id(xdr, rqstp, IDMAP_TYPE_USER, id); in nfsd4_encode_user()
[all …]
Dflexfilelayoutxdr.c18 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr, in nfsd4_ff_encode_layoutget() argument
46 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_ff_encode_layoutget()
78 nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr, in nfsd4_ff_encode_getdeviceinfo() argument
93 p = xdr_reserve_space(xdr, len + sizeof(__be32)); in nfsd4_ff_encode_getdeviceinfo()
Dflexfilelayoutxdr.h44 __be32 nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr,
46 __be32 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr,
Dnfssvc.c769 kxdrproc_t xdr; in nfsd_dispatch() local
788 xdr = proc->pc_decode; in nfsd_dispatch()
789 if (xdr && !xdr(rqstp, (__be32*)rqstp->rq_arg.head[0].iov_base, in nfsd_dispatch()
829 xdr = proc->pc_encode; in nfsd_dispatch()
830 if (xdr && !xdr(rqstp, nfserrp, in nfsd_dispatch()
Dblocklayoutxdr.h52 __be32 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr,
54 __be32 nfsd4_block_encode_layoutget(struct xdr_stream *xdr,
Dacl.h52 __be32 nfs4_acl_write_who(struct xdr_stream *xdr, int who);
/fs/nfs/objlayout/
Dpnfs_osd_xdr_cli.c74 struct xdr_stream *xdr) in _osd_xdr_decode_opaque_cred() argument
76 __be32 *p = xdr_inline_decode(xdr, 1); in _osd_xdr_decode_opaque_cred()
83 p = xdr_inline_decode(xdr, opaque_cred->cred_len); in _osd_xdr_decode_opaque_cred()
102 struct xdr_stream *xdr) in _osd_xdr_decode_object_cred() argument
104 __be32 *p = xdr_inline_decode(xdr, 32 + 4 + 4); in _osd_xdr_decode_object_cred()
114 ret = _osd_xdr_decode_opaque_cred(&comp->oc_cap_key, xdr); in _osd_xdr_decode_object_cred()
118 ret = _osd_xdr_decode_opaque_cred(&comp->oc_cap, xdr); in _osd_xdr_decode_object_cred()
160 struct pnfs_osd_xdr_decode_layout_iter *iter, struct xdr_stream *xdr) in pnfs_osd_xdr_decode_layout_map() argument
166 p = xdr_inline_decode(xdr, _osd_data_map_xdr_sz() + 4 + 4); in pnfs_osd_xdr_decode_layout_map()
181 struct pnfs_osd_xdr_decode_layout_iter *iter, struct xdr_stream *xdr, in pnfs_osd_xdr_decode_layout_comp() argument
[all …]
Dobjlayout.c372 struct xdr_stream *xdr, in objlayout_encode_layoutcommit() argument
389 start = xdr_reserve_space(xdr, 4); in objlayout_encode_layoutcommit()
391 BUG_ON(pnfs_osd_xdr_encode_layoutupdate(xdr, &lou)); in objlayout_encode_layoutcommit()
393 *start = cpu_to_be32((xdr->p - start - 1) * 4); in objlayout_encode_layoutcommit()
508 struct xdr_stream *xdr, in objlayout_encode_layoutreturn() argument
516 start = xdr_reserve_space(xdr, 4); in objlayout_encode_layoutreturn()
544 p = pnfs_osd_xdr_ioerr_reserve_space(xdr); in objlayout_encode_layoutreturn()
573 *start = cpu_to_be32((xdr->p - start - 1) * 4); in objlayout_encode_layoutreturn()
/fs/nfs/blocklayout/
Ddev.c52 nfs4_block_decode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) in nfs4_block_decode_volume() argument
57 p = xdr_inline_decode(xdr, 4); in nfs4_block_decode_volume()
64 p = xdr_inline_decode(xdr, 4); in nfs4_block_decode_volume()
75 p = xdr_inline_decode(xdr, 8 + 4); in nfs4_block_decode_volume()
86 p = xdr_inline_decode(xdr, b->simple.sigs[i].sig_len); in nfs4_block_decode_volume()
97 p = xdr_inline_decode(xdr, 8 + 8 + 4); in nfs4_block_decode_volume()
105 p = xdr_inline_decode(xdr, 4); in nfs4_block_decode_volume()
115 p = xdr_inline_decode(xdr, b->concat.volumes_count * 4); in nfs4_block_decode_volume()
122 p = xdr_inline_decode(xdr, 8 + 4); in nfs4_block_decode_volume()
133 p = xdr_inline_decode(xdr, b->stripe.volumes_count * 4); in nfs4_block_decode_volume()
[all …]
Dblocklayout.c556 bl_alloc_extent(struct xdr_stream *xdr, struct pnfs_layout_hdr *lo, in bl_alloc_extent() argument
565 p = xdr_inline_decode(xdr, 28 + NFS4_DEVICEID4_SIZE); in bl_alloc_extent()
623 struct xdr_stream xdr; in bl_alloc_lseg() local
641 xdr_init_decode_pages(&xdr, &buf, in bl_alloc_lseg()
643 xdr_set_scratch_buffer(&xdr, page_address(scratch), PAGE_SIZE); in bl_alloc_lseg()
646 p = xdr_inline_decode(&xdr, 4); in bl_alloc_lseg()
658 status = bl_alloc_extent(&xdr, lo, &lv, &extents, gfp_mask); in bl_alloc_lseg()
/fs/nfs/flexfilelayout/
Dflexfilelayout.c62 static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_pnfs_stateid() argument
66 p = xdr_inline_decode(xdr, NFS4_STATEID_SIZE); in decode_pnfs_stateid()
76 static int decode_deviceid(struct xdr_stream *xdr, struct nfs4_deviceid *devid) in decode_deviceid() argument
80 p = xdr_inline_decode(xdr, NFS4_DEVICEID4_SIZE); in decode_deviceid()
88 static int decode_nfs_fh(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_nfs_fh() argument
92 p = xdr_inline_decode(xdr, 4); in decode_nfs_fh()
102 p = xdr_inline_decode(xdr, fh->size); in decode_nfs_fh()
120 decode_name(struct xdr_stream *xdr, u32 *id) in decode_name() argument
126 p = xdr_inline_decode(xdr, 4); in decode_name()
136 p = xdr_inline_decode(xdr, len); in decode_name()
[all …]

12