Home
last modified time | relevance | path

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

123456

/linux/fs/lockd/
H A Dnlm4xdr_gen.c11 xdrgen_decode_netobj(struct xdr_stream *xdr, netobj *ptr) in xdrgen_decode_netobj() argument
13 return xdrgen_decode_opaque(xdr, ptr, MAXNETOBJ_SZ); in xdrgen_decode_netobj()
17 xdrgen_decode_fsh4_mode(struct xdr_stream *xdr, fsh4_mode *ptr) in xdrgen_decode_fsh4_mode() argument
21 if (xdr_stream_decode_u32(xdr, &val) < 0) in xdrgen_decode_fsh4_mode()
38 xdrgen_decode_fsh4_access(struct xdr_stream *xdr, fsh4_access *ptr) in xdrgen_decode_fsh4_access() argument
42 if (xdr_stream_decode_u32(xdr, &val) < 0) in xdrgen_decode_fsh4_access()
59 xdrgen_decode_uint64(struct xdr_stream *xdr, uint64 *ptr) in xdrgen_decode_uint64() argument
61 return xdrgen_decode_unsigned_hyper(xdr, ptr); in xdrgen_decode_uint64()
65 xdrgen_decode_int64(struct xdr_stream *xdr, int64 *ptr) in xdrgen_decode_int64() argument
67 return xdrgen_decode_hyper(xdr, ptr); in xdrgen_decode_int64()
[all …]
H A Dnlm3xdr_gen.c11 xdrgen_decode_netobj(struct xdr_stream *xdr, netobj *ptr) in xdrgen_decode_netobj() argument
13 return xdrgen_decode_opaque(xdr, ptr, MAXNETOBJ_SZ); in xdrgen_decode_netobj()
17 xdrgen_decode_nlm_stats(struct xdr_stream *xdr, nlm_stats *ptr) in xdrgen_decode_nlm_stats() argument
22 if (xdr_stream_decode_be32(xdr, &raw) < 0) in xdrgen_decode_nlm_stats()
41 xdrgen_decode_nlm_stat(struct xdr_stream *xdr, struct nlm_stat *ptr) in xdrgen_decode_nlm_stat() argument
43 if (!xdrgen_decode_nlm_stats(xdr, &ptr->stat)) in xdrgen_decode_nlm_stat()
49 xdrgen_decode_nlm_res(struct xdr_stream *xdr, struct nlm_res *ptr) in xdrgen_decode_nlm_res() argument
51 if (!xdrgen_decode_netobj(xdr, &ptr->cookie)) in xdrgen_decode_nlm_res()
53 if (!xdrgen_decode_nlm_stat(xdr, &ptr->stat)) in xdrgen_decode_nlm_res()
59 xdrgen_decode_nlm_holder(struct xdr_stream *xdr, struct nlm_holder *ptr) in xdrgen_decode_nlm_holder() argument
[all …]
H A Dnlm3xdr_gen.h16 bool nlm_svc_decode_nlm_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
17 bool nlm_svc_decode_nlm_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
18 bool nlm_svc_decode_nlm_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
19 bool nlm_svc_decode_nlm_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
20 bool nlm_svc_decode_nlm_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr);
21 bool nlm_svc_decode_nlm_res(struct svc_rqst *rqstp, struct xdr_stream *xdr);
22 bool nlm_svc_decode_nlm_notifyargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
23 bool nlm_svc_decode_nlm_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
24 bool nlm_svc_decode_nlm_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr);
26 bool nlm_svc_encode_nlm_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr);
[all …]
H A Dnlm4xdr_gen.h16 bool nlm4_svc_decode_nlm4_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
17 bool nlm4_svc_decode_nlm4_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
18 bool nlm4_svc_decode_nlm4_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
19 bool nlm4_svc_decode_nlm4_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
20 bool nlm4_svc_decode_nlm4_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr);
21 bool nlm4_svc_decode_nlm4_res(struct svc_rqst *rqstp, struct xdr_stream *xdr);
22 bool nlm4_svc_decode_nlm4_notifyargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
23 bool nlm4_svc_decode_nlm4_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
24 bool nlm4_svc_decode_nlm4_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr);
26 bool nlm4_svc_encode_nlm4_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr);
[all …]
/linux/fs/nfsd/
H A Dnfs4xdr_gen.c11 xdrgen_decode_int32_t(struct xdr_stream *xdr, int32_t *ptr) in xdrgen_decode_int32_t() argument
13 return xdrgen_decode_int(xdr, ptr); in xdrgen_decode_int32_t()
17 xdrgen_decode_uint32_t(struct xdr_stream *xdr, uint32_t *ptr) in xdrgen_decode_uint32_t() argument
19 return xdrgen_decode_unsigned_int(xdr, ptr); in xdrgen_decode_uint32_t()
23 xdrgen_decode_int64_t(struct xdr_stream *xdr, int64_t *ptr) in xdrgen_decode_int64_t() argument
25 return xdrgen_decode_hyper(xdr, ptr); in xdrgen_decode_int64_t()
29 xdrgen_decode_uint64_t(struct xdr_stream *xdr, uint64_t *ptr) in xdrgen_decode_uint64_t() argument
31 return xdrgen_decode_unsigned_hyper(xdr, ptr); in xdrgen_decode_uint64_t()
35 xdrgen_decode_nfsstat4(struct xdr_stream *xdr, nfsstat4 *ptr) in xdrgen_decode_nfsstat4() argument
39 if (xdr_stream_decode_u32(xdr, &val) < 0) in xdrgen_decode_nfsstat4()
[all …]
H A Dnfs3xdr.c58 svcxdr_decode_nfstime3(struct xdr_stream *xdr, struct timespec64 *timep) in svcxdr_decode_nfstime3() argument
62 p = xdr_inline_decode(xdr, XDR_UNIT * 2); in svcxdr_decode_nfstime3()
81 svcxdr_decode_nfs_fh3(struct xdr_stream *xdr, struct svc_fh *fhp) in svcxdr_decode_nfs_fh3() argument
86 if (xdr_stream_decode_u32(xdr, &size) < 0) in svcxdr_decode_nfs_fh3()
90 p = xdr_inline_decode(xdr, size); in svcxdr_decode_nfs_fh3()
110 svcxdr_encode_nfsstat3(struct xdr_stream *xdr, __be32 status) in svcxdr_encode_nfsstat3() argument
114 p = xdr_reserve_space(xdr, sizeof(status)); in svcxdr_encode_nfsstat3()
123 svcxdr_encode_nfs_fh3(struct xdr_stream *xdr, const struct svc_fh *fhp) in svcxdr_encode_nfs_fh3() argument
128 p = xdr_reserve_space(xdr, XDR_UNIT + size); in svcxdr_encode_nfs_fh3()
140 svcxdr_encode_post_op_fh3(struct xdr_stream *xdr, const struct svc_fh *fhp) in svcxdr_encode_post_op_fh3() argument
[all …]
H A Dnfs4xdr.c165 if (p != argp->xdr->scratch.iov_base) in svcxdr_savemem()
188 if (xdr_stream_decode_u32(argp->xdr, &len) < 0) in nfsd4_decode_ignored_string()
192 if (!xdr_inline_decode(argp->xdr, len)) in nfsd4_decode_ignored_string()
204 if (xdr_stream_decode_u32(argp->xdr, &len) < 0) in nfsd4_decode_opaque()
208 p = xdr_inline_decode(argp->xdr, len); in nfsd4_decode_opaque()
224 if (xdr_stream_decode_u32(argp->xdr, lenp) < 0) in nfsd4_decode_component4()
226 p = xdr_inline_decode(argp->xdr, *lenp); in nfsd4_decode_component4()
244 p = xdr_inline_decode(argp->xdr, XDR_UNIT * 3); in nfsd4_decode_nfstime4()
259 p = xdr_inline_decode(argp->xdr, NFS4_VERIFIER_SIZE); in nfsd4_decode_verifier4()
288 status = xdr_stream_decode_uint32_array(argp->xdr, bmval, bmlen); in nfsd4_decode_bitmap4()
[all …]
H A Dnfsxdr.c49 svcxdr_encode_stat(struct xdr_stream *xdr, __be32 status) in svcxdr_encode_stat() argument
53 p = xdr_reserve_space(xdr, sizeof(status)); in svcxdr_encode_stat()
71 svcxdr_decode_fhandle(struct xdr_stream *xdr, struct svc_fh *fhp) in svcxdr_decode_fhandle() argument
75 p = xdr_inline_decode(xdr, NFS_FHSIZE); in svcxdr_decode_fhandle()
86 svcxdr_encode_fhandle(struct xdr_stream *xdr, const struct svc_fh *fhp) in svcxdr_encode_fhandle() argument
90 p = xdr_reserve_space(xdr, NFS_FHSIZE); in svcxdr_encode_fhandle()
110 svcxdr_decode_filename(struct xdr_stream *xdr, char **name, unsigned int *len) in svcxdr_decode_filename() argument
116 if (xdr_stream_decode_u32(xdr, &size) < 0) in svcxdr_decode_filename()
120 p = xdr_inline_decode(xdr, size); in svcxdr_decode_filename()
134 svcxdr_decode_diropargs(struct xdr_stream *xdr, struct svc_fh *fhp, in svcxdr_decode_diropargs() argument
[all …]
H A Dnfs4xdr_gen.h16 bool xdrgen_decode_fattr4_open_arguments(struct xdr_stream *xdr, fattr4_open_arguments *ptr);
17 bool xdrgen_encode_fattr4_open_arguments(struct xdr_stream *xdr, const fattr4_open_arguments *value…
19 bool xdrgen_decode_fattr4_time_deleg_access(struct xdr_stream *xdr, fattr4_time_deleg_access *ptr);
20 bool xdrgen_encode_fattr4_time_deleg_access(struct xdr_stream *xdr, const fattr4_time_deleg_access …
22 bool xdrgen_decode_fattr4_time_deleg_modify(struct xdr_stream *xdr, fattr4_time_deleg_modify *ptr);
23 bool xdrgen_encode_fattr4_time_deleg_modify(struct xdr_stream *xdr, const fattr4_time_deleg_modify …
25 bool xdrgen_decode_aclmodel4(struct xdr_stream *xdr, aclmodel4 *ptr);
26 bool xdrgen_encode_aclmodel4(struct xdr_stream *xdr, aclmodel4 value);
28 bool xdrgen_decode_aclscope4(struct xdr_stream *xdr, aclscope4 *ptr);
29 bool xdrgen_encode_aclscope4(struct xdr_stream *xdr, aclscope4 value);
[all …]
H A Dnfs4callback.c80 static void encode_uint32(struct xdr_stream *xdr, u32 n) in encode_uint32() argument
82 WARN_ON_ONCE(xdr_stream_encode_u32(xdr, n) < 0); in encode_uint32()
85 static void encode_bitmap4(struct xdr_stream *xdr, const __u32 *bitmap, in encode_bitmap4() argument
88 xdr_stream_encode_uint32_array(xdr, bitmap, len); in encode_bitmap4()
91 static int decode_cb_fattr4(struct xdr_stream *xdr, uint32_t *bitmap, in decode_cb_fattr4() argument
102 if (xdr_stream_decode_u64(xdr, &fattr->ncf_cb_change) < 0) in decode_cb_fattr4()
105 if (xdr_stream_decode_u64(xdr, &fattr->ncf_cb_fsize) < 0) in decode_cb_fattr4()
110 if (!xdrgen_decode_fattr4_time_deleg_access(xdr, &access)) in decode_cb_fattr4()
121 if (!xdrgen_decode_fattr4_time_deleg_modify(xdr, &modify)) in decode_cb_fattr4()
132 static void encode_nfs_cb_opnum4(struct xdr_stream *xdr, enum nfs_cb_opnum4 op) in encode_nfs_cb_opnum4() argument
[all …]
H A Dxdr3.h179 struct xdr_stream xdr; member
269 bool nfs3svc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
270 bool nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
271 bool nfs3svc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
272 bool nfs3svc_decode_accessargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
273 bool nfs3svc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
274 bool nfs3svc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
275 bool nfs3svc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
276 bool nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
277 bool nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
[all …]
H A Dxdr.h116 struct xdr_stream xdr; member
145 bool nfssvc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
146 bool nfssvc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
147 bool nfssvc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
148 bool nfssvc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
149 bool nfssvc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
150 bool nfssvc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
151 bool nfssvc_decode_renameargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
152 bool nfssvc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
153 bool nfssvc_decode_symlinkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr);
[all …]
H A Dblocklayoutxdr.c31 nfsd4_block_encode_layoutget(struct xdr_stream *xdr, in nfsd4_block_encode_layoutget() argument
38 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_block_encode_layoutget()
59 nfsd4_block_encode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) in nfsd4_block_encode_volume() argument
67 p = xdr_reserve_space(xdr, len); in nfsd4_block_encode_volume()
78 p = xdr_reserve_space(xdr, len); in nfsd4_block_encode_volume()
96 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr, in nfsd4_block_encode_getdeviceinfo() argument
107 if (xdr_stream_encode_u32(xdr, 0) != XDR_UNIT) in nfsd4_block_encode_getdeviceinfo()
112 p = xdr_reserve_space(xdr, len + sizeof(__be32)); in nfsd4_block_encode_getdeviceinfo()
117 ret = nfsd4_block_encode_volume(xdr, &dev->volumes[i]); in nfsd4_block_encode_getdeviceinfo()
152 nfsd4_block_decode_layoutupdate(struct xdr_stream *xdr, struct iomap **iomapp, in nfsd4_block_decode_layoutupdate() argument
[all …]
/linux/fs/nfs/
H A Dnfs42xdr.c297 static void encode_fallocate(struct xdr_stream *xdr, in encode_fallocate() argument
300 encode_nfs4_stateid(xdr, &args->falloc_stateid); in encode_fallocate()
301 encode_uint64(xdr, args->falloc_offset); in encode_fallocate()
302 encode_uint64(xdr, args->falloc_length); in encode_fallocate()
305 static void encode_allocate(struct xdr_stream *xdr, in encode_allocate() argument
309 encode_op_hdr(xdr, OP_ALLOCATE, decode_allocate_maxsz, hdr); in encode_allocate()
310 encode_fallocate(xdr, args); in encode_allocate()
313 static void encode_nl4_server(struct xdr_stream *xdr, in encode_nl4_server() argument
316 encode_uint32(xdr, ns->nl4_type); in encode_nl4_server()
320 encode_string(xdr, ns->u.nl4_str_sz, ns->u.nl4_str); in encode_nl4_server()
[all …]
H A Dnfs4xdr.c68 static void encode_layoutget(struct xdr_stream *xdr,
71 static int decode_layoutget(struct xdr_stream *xdr, struct rpc_rqst *req,
972 static __be32 *reserve_space(struct xdr_stream *xdr, size_t nbytes) in reserve_space() argument
974 __be32 *p = xdr_reserve_space(xdr, nbytes); in reserve_space()
979 static void encode_string(struct xdr_stream *xdr, unsigned int len, const char *str) in encode_string() argument
981 WARN_ON_ONCE(xdr_stream_encode_opaque(xdr, str, len) < 0); in encode_string()
984 static void encode_uint32(struct xdr_stream *xdr, u32 n) in encode_uint32() argument
986 WARN_ON_ONCE(xdr_stream_encode_u32(xdr, n) < 0); in encode_uint32()
989 static void encode_uint64(struct xdr_stream *xdr, u64 n) in encode_uint64() argument
991 WARN_ON_ONCE(xdr_stream_encode_u64(xdr, n) < 0); in encode_uint64()
[all …]
H A Dnfs2xdr.c93 static int decode_nfsdata(struct xdr_stream *xdr, struct nfs_pgio_res *result) in decode_nfsdata() argument
98 p = xdr_inline_decode(xdr, 4); in decode_nfsdata()
102 recvd = xdr_read_pages(xdr, count); in decode_nfsdata()
138 static int decode_stat(struct xdr_stream *xdr, enum nfs_stat *status) in decode_stat() argument
142 p = xdr_inline_decode(xdr, 4); in decode_stat()
151 trace_nfs_xdr_status(xdr, (int)*status); in decode_stat()
181 static void encode_fhandle(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fhandle() argument
185 p = xdr_reserve_space(xdr, NFS2_FHSIZE); in encode_fhandle()
189 static int decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fhandle() argument
193 p = xdr_inline_decode(xdr, NFS2_FHSIZE); in decode_fhandle()
[all …]
H A Dcallback_xdr.c69 static bool nfs4_encode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs4_encode_void() argument
74 static __be32 decode_string(struct xdr_stream *xdr, unsigned int *len, in decode_string() argument
79 err = xdr_stream_decode_opaque_inline(xdr, (void **)str, maxlen); in decode_string()
86 static __be32 decode_fh(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fh() argument
90 p = xdr_inline_decode(xdr, 4); in decode_fh()
96 p = xdr_inline_decode(xdr, fh->size); in decode_fh()
103 static __be32 decode_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_bitmap() argument
108 p = xdr_inline_decode(xdr, 4); in decode_bitmap()
112 p = xdr_inline_decode(xdr, attrlen << 2); in decode_bitmap()
124 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument
[all …]
H A Dmount_clnt.c230 static void encode_mntdirpath(struct xdr_stream *xdr, const char *pathname) in encode_mntdirpath() argument
235 p = xdr_reserve_space(xdr, 4 + pathname_len); in encode_mntdirpath()
239 static void mnt_xdr_enc_dirpath(struct rpc_rqst *req, struct xdr_stream *xdr, in mnt_xdr_enc_dirpath() argument
242 encode_mntdirpath(xdr, dirpath); in mnt_xdr_enc_dirpath()
254 static int decode_status(struct xdr_stream *xdr, struct mountres *res) in decode_status() argument
260 p = xdr_inline_decode(xdr, 4); in decode_status()
277 static int decode_fhandle(struct xdr_stream *xdr, struct mountres *res) in decode_fhandle() argument
282 p = xdr_inline_decode(xdr, NFS2_FHSIZE); in decode_fhandle()
292 struct xdr_stream *xdr, in mnt_xdr_dec_mountres() argument
298 status = decode_status(xdr, res); in mnt_xdr_dec_mountres()
[all …]
/linux/include/linux/sunrpc/xdrgen/
H A D_builtins.h16 xdrgen_decode_void(struct xdr_stream *xdr) in xdrgen_decode_void() argument
22 xdrgen_encode_void(struct xdr_stream *xdr) in xdrgen_encode_void() argument
28 xdrgen_decode_bool(struct xdr_stream *xdr, bool *ptr) in xdrgen_decode_bool() argument
30 __be32 *p = xdr_inline_decode(xdr, XDR_UNIT); in xdrgen_decode_bool()
39 xdrgen_encode_bool(struct xdr_stream *xdr, bool val) in xdrgen_encode_bool() argument
41 __be32 *p = xdr_reserve_space(xdr, XDR_UNIT); in xdrgen_encode_bool()
56 xdrgen_decode_short(struct xdr_stream *xdr, s16 *ptr) in xdrgen_decode_short() argument
58 __be32 *p = xdr_inline_decode(xdr, XDR_UNIT); in xdrgen_decode_short()
73 xdrgen_encode_short(struct xdr_stream *xdr, s16 val) in xdrgen_encode_short() argument
75 __be32 *p = xdr_reserve_space(xdr, XDR_UNIT); in xdrgen_encode_short()
[all …]
/linux/net/sunrpc/auth_gss/
H A Dgss_rpc_xdr.c11 static int gssx_enc_bool(struct xdr_stream *xdr, int v) in gssx_enc_bool() argument
15 p = xdr_reserve_space(xdr, 4); in gssx_enc_bool()
22 static int gssx_dec_bool(struct xdr_stream *xdr, u32 *v) in gssx_dec_bool() argument
26 p = xdr_inline_decode(xdr, 4); in gssx_dec_bool()
33 static int gssx_enc_buffer(struct xdr_stream *xdr, in gssx_enc_buffer() argument
38 p = xdr_reserve_space(xdr, sizeof(u32) + buf->len); in gssx_enc_buffer()
45 static int gssx_enc_in_token(struct xdr_stream *xdr, in gssx_enc_in_token() argument
50 p = xdr_reserve_space(xdr, 4); in gssx_enc_in_token()
56 xdr_write_pages(xdr, in->pages, in->page_base, in->page_len); in gssx_enc_in_token()
62 static int gssx_dec_buffer(struct xdr_stream *xdr, in gssx_dec_buffer() argument
[all …]
/linux/net/sunrpc/
H A Dxdr.c149 const struct xdr_buf *xdr) in xdr_buf_to_bvec() argument
151 const struct kvec *head = xdr->head; in xdr_buf_to_bvec()
152 const struct kvec *tail = xdr->tail; in xdr_buf_to_bvec()
162 if (xdr->page_len) { in xdr_buf_to_bvec()
164 struct page **pages = xdr->pages; in xdr_buf_to_bvec()
166 offset = offset_in_page(xdr->page_base); in xdr_buf_to_bvec()
167 remaining = xdr->page_len; in xdr_buf_to_bvec()
403 xdr_inline_pages(struct xdr_buf *xdr, unsigned int offset, in xdr_inline_pages() argument
406 struct kvec *head = xdr->head; in xdr_inline_pages()
407 struct kvec *tail = xdr->tail; in xdr_inline_pages()
[all …]
H A Dsocklib.c65 xdr_partial_copy_from_skb(struct xdr_buf *xdr, struct xdr_skb_reader *desc) in xdr_partial_copy_from_skb() argument
67 struct page **ppage = xdr->pages + (xdr->page_base >> PAGE_SHIFT); in xdr_partial_copy_from_skb()
68 unsigned int poff = xdr->page_base & ~PAGE_MASK; in xdr_partial_copy_from_skb()
69 unsigned int pglen = xdr->page_len; in xdr_partial_copy_from_skb()
73 if (xdr->head[0].iov_len == 0) in xdr_partial_copy_from_skb()
76 ret = xdr_skb_read_bits(desc, xdr->head[0].iov_base, in xdr_partial_copy_from_skb()
77 xdr->head[0].iov_len); in xdr_partial_copy_from_skb()
78 if (ret != xdr->head[0].iov_len || !desc->count) in xdr_partial_copy_from_skb()
88 if ((xdr->flags & XDRBUF_SPARSE_PAGES) && *ppage == NULL) { in xdr_partial_copy_from_skb()
110 if (xdr->tail[0].iov_len) { in xdr_partial_copy_from_skb()
[all …]
/linux/fs/afs/
H A Dcm_security.c193 __be32 *xdr; in afs_create_yfs_cm_token() local
270 xdr = appdata; in afs_create_yfs_cm_token()
272 memcpy(xdr, &net->uuid, 16); /* appdata.initiatorUuid */ in afs_create_yfs_cm_token()
273 xdr += 16 / 4; in afs_create_yfs_cm_token()
274 memcpy(xdr, &server->uuid, 16); /* appdata.acceptorUuid */ in afs_create_yfs_cm_token()
275 xdr += 16 / 4; in afs_create_yfs_cm_token()
276 *xdr++ = htonl(ARRAY_SIZE(caps)); /* appdata.caps.len */ in afs_create_yfs_cm_token()
277 memcpy(xdr, &caps, sizeof(caps)); /* appdata.caps */ in afs_create_yfs_cm_token()
278 xdr += ARRAY_SIZE(caps); in afs_create_yfs_cm_token()
279 *xdr++ = htonl(conn_krb5->etype); /* appdata.enctype */ in afs_create_yfs_cm_token()
[all …]
/linux/net/sunrpc/xprtrdma/
H A Drpc_rdma.c129 struct xdr_buf *xdr = &rqst->rq_snd_buf; in rpcrdma_args_inline() local
133 if (xdr->len > ep->re_max_inline_send) in rpcrdma_args_inline()
136 if (xdr->page_len) { in rpcrdma_args_inline()
137 remaining = xdr->page_len; in rpcrdma_args_inline()
138 offset = offset_in_page(xdr->page_base); in rpcrdma_args_inline()
230 encode_rdma_segment(struct xdr_stream *xdr, struct rpcrdma_mr *mr) in encode_rdma_segment() argument
234 p = xdr_reserve_space(xdr, 4 * sizeof(*p)); in encode_rdma_segment()
243 encode_read_segment(struct xdr_stream *xdr, struct rpcrdma_mr *mr, in encode_read_segment() argument
248 p = xdr_reserve_space(xdr, 6 * sizeof(*p)); in encode_read_segment()
291 * @xdr i
300 struct xdr_stream *xdr = &req->rl_stream; rpcrdma_encode_read_list() local
353 struct xdr_stream *xdr = &req->rl_stream; rpcrdma_encode_write_list() local
427 struct xdr_stream *xdr = &req->rl_stream; rpcrdma_encode_reply_chunk() local
548 rpcrdma_prepare_pagelist(struct rpcrdma_req * req,struct xdr_buf * xdr) rpcrdma_prepare_pagelist() argument
588 rpcrdma_prepare_tail_iov(struct rpcrdma_req * req,struct xdr_buf * xdr,unsigned int page_base,unsigned int len) rpcrdma_prepare_tail_iov() argument
615 rpcrdma_pullup_tail_iov(struct rpcrdma_xprt * r_xprt,struct rpcrdma_req * req,struct xdr_buf * xdr) rpcrdma_pullup_tail_iov() argument
629 rpcrdma_pullup_pagelist(struct rpcrdma_xprt * r_xprt,struct rpcrdma_req * req,struct xdr_buf * xdr) rpcrdma_pullup_pagelist() argument
665 rpcrdma_prepare_noch_pullup(struct rpcrdma_xprt * r_xprt,struct rpcrdma_req * req,struct xdr_buf * xdr) rpcrdma_prepare_noch_pullup() argument
679 rpcrdma_prepare_noch_mapped(struct rpcrdma_xprt * r_xprt,struct rpcrdma_req * req,struct xdr_buf * xdr) rpcrdma_prepare_noch_mapped() argument
701 rpcrdma_prepare_readch(struct rpcrdma_xprt * r_xprt,struct rpcrdma_req * req,struct xdr_buf * xdr) rpcrdma_prepare_readch() argument
743 rpcrdma_prepare_send_sges(struct rpcrdma_xprt * r_xprt,struct rpcrdma_req * req,u32 hdrlen,struct xdr_buf * xdr,enum rpcrdma_chunktype rtype) rpcrdma_prepare_send_sges() argument
814 struct xdr_stream *xdr = &req->rl_stream; rpcrdma_marshal_req() local
1076 struct xdr_stream *xdr = &rep->rr_stream; rpcrdma_is_bcall() local
1119 decode_rdma_segment(struct xdr_stream * xdr,u32 * length) decode_rdma_segment() argument
1134 decode_write_chunk(struct xdr_stream * xdr,u32 * length) decode_write_chunk() argument
1158 decode_read_list(struct xdr_stream * xdr) decode_read_list() argument
1172 decode_write_list(struct xdr_stream * xdr,u32 * length) decode_write_list() argument
1197 decode_reply_chunk(struct xdr_stream * xdr,u32 * length) decode_reply_chunk() argument
1216 struct xdr_stream *xdr = &rep->rr_stream; rpcrdma_decode_msg() local
1245 struct xdr_stream *xdr = &rep->rr_stream; rpcrdma_decode_nomsg() local
1271 struct xdr_stream *xdr = &rep->rr_stream; rpcrdma_decode_error() local
[all...]
/linux/net/rxrpc/
H A Dkey.c54 const __be32 *xdr, unsigned int toklen) in rxrpc_preparse_xdr_rxkad() argument
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()
90 token->kad->vice_id = ntohl(xdr[0]); in rxrpc_preparse_xdr_rxkad()
91 token->kad->kvno = ntohl(xdr[1]); in rxrpc_preparse_xdr_rxkad()
92 token->kad->start = ntohl(xdr[4]); in rxrpc_preparse_xdr_rxkad()
93 token->kad->expiry = ntohl(xdr[5]); in rxrpc_preparse_xdr_rxkad()
94 token->kad->primary_flag = ntohl(xdr[6]); in rxrpc_preparse_xdr_rxkad()
95 memcpy(&token->kad->session_key, &xdr[2], 8); in rxrpc_preparse_xdr_rxkad()
96 memcpy(&token->kad->ticket, &xdr[8], tktlen); in rxrpc_preparse_xdr_rxkad()
[all …]

123456