/linux-2.6.39/fs/nfs/ |
D | nfs4xdr.c | 802 static __be32 *reserve_space(struct xdr_stream *xdr, size_t nbytes) in reserve_space() argument 804 __be32 *p = xdr_reserve_space(xdr, nbytes); in reserve_space() 809 static void encode_string(struct xdr_stream *xdr, unsigned int len, const char *str) in encode_string() argument 813 p = xdr_reserve_space(xdr, 4 + len); in encode_string() 818 static void encode_compound_hdr(struct xdr_stream *xdr, in encode_compound_hdr() argument 832 p = reserve_space(xdr, 4 + hdr->taglen + 8); in encode_compound_hdr() 845 static void encode_nfs4_verifier(struct xdr_stream *xdr, const nfs4_verifier *verf) in encode_nfs4_verifier() argument 849 p = xdr_reserve_space(xdr, NFS4_VERIFIER_SIZE); in encode_nfs4_verifier() 854 static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, const struct nfs_server *… in encode_attrs() argument 911 p = reserve_space(xdr, len); in encode_attrs() [all …]
|
D | nfs3xdr.c | 121 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument 125 func, xdr->end - xdr->p); in print_overflow_msg() 140 static void encode_uint32(struct xdr_stream *xdr, u32 value) in encode_uint32() argument 142 __be32 *p = xdr_reserve_space(xdr, 4); in encode_uint32() 146 static int decode_uint32(struct xdr_stream *xdr, u32 *value) in decode_uint32() argument 150 p = xdr_inline_decode(xdr, 4); in decode_uint32() 156 print_overflow_msg(__func__, xdr); in decode_uint32() 160 static int decode_uint64(struct xdr_stream *xdr, u64 *value) in decode_uint64() argument 164 p = xdr_inline_decode(xdr, 8); in decode_uint64() 170 print_overflow_msg(__func__, xdr); in decode_uint64() [all …]
|
D | nfs2xdr.c | 83 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument 87 func, xdr->end - xdr->p); in print_overflow_msg() 105 static int decode_nfsdata(struct xdr_stream *xdr, struct nfs_readres *result) in decode_nfsdata() argument 111 p = xdr_inline_decode(xdr, 4); in decode_nfsdata() 115 hdrlen = (u8 *)xdr->p - (u8 *)xdr->iov->iov_base; in decode_nfsdata() 116 recvd = xdr->buf->len - hdrlen; in decode_nfsdata() 120 xdr_read_pages(xdr, count); in decode_nfsdata() 130 print_overflow_msg(__func__, xdr); in decode_nfsdata() 156 static int decode_stat(struct xdr_stream *xdr, enum nfs_stat *status) in decode_stat() argument 160 p = xdr_inline_decode(xdr, 4); in decode_stat() [all …]
|
D | callback_xdr.c | 69 static __be32 *read_buf(struct xdr_stream *xdr, int nbytes) in read_buf() argument 73 p = xdr_inline_decode(xdr, nbytes); in read_buf() 79 static __be32 decode_string(struct xdr_stream *xdr, unsigned int *len, const char **str) in decode_string() argument 83 p = read_buf(xdr, 4); in decode_string() 89 p = read_buf(xdr, *len); in decode_string() 99 static __be32 decode_fh(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fh() argument 103 p = read_buf(xdr, 4); in decode_fh() 109 p = read_buf(xdr, fh->size); in decode_fh() 117 static __be32 decode_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_bitmap() argument 122 p = read_buf(xdr, 4); in decode_bitmap() [all …]
|
D | mount_clnt.c | 281 static void encode_mntdirpath(struct xdr_stream *xdr, const char *pathname) in encode_mntdirpath() argument 287 p = xdr_reserve_space(xdr, 4 + pathname_len); in encode_mntdirpath() 291 static void mnt_xdr_enc_dirpath(struct rpc_rqst *req, struct xdr_stream *xdr, in mnt_xdr_enc_dirpath() argument 294 encode_mntdirpath(xdr, dirpath); in mnt_xdr_enc_dirpath() 306 static int decode_status(struct xdr_stream *xdr, struct mountres *res) in decode_status() argument 312 p = xdr_inline_decode(xdr, 4); in decode_status() 329 static int decode_fhandle(struct xdr_stream *xdr, struct mountres *res) in decode_fhandle() argument 334 p = xdr_inline_decode(xdr, NFS2_FHSIZE); in decode_fhandle() 344 struct xdr_stream *xdr, in mnt_xdr_dec_mountres() argument 349 status = decode_status(xdr, res); in mnt_xdr_dec_mountres() [all …]
|
/linux-2.6.39/fs/lockd/ |
D | clnt4xdr.c | 81 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument 85 func, xdr->end - xdr->p); in print_overflow_msg() 101 static void encode_bool(struct xdr_stream *xdr, const int value) in encode_bool() argument 105 p = xdr_reserve_space(xdr, 4); in encode_bool() 109 static void encode_int32(struct xdr_stream *xdr, const s32 value) in encode_int32() argument 113 p = xdr_reserve_space(xdr, 4); in encode_int32() 120 static void encode_netobj(struct xdr_stream *xdr, in encode_netobj() argument 126 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj() 130 static int decode_netobj(struct xdr_stream *xdr, in decode_netobj() argument 136 p = xdr_inline_decode(xdr, 4); in decode_netobj() [all …]
|
D | clntxdr.c | 77 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument 81 func, xdr->end - xdr->p); in print_overflow_msg() 98 static void encode_bool(struct xdr_stream *xdr, const int value) in encode_bool() argument 102 p = xdr_reserve_space(xdr, 4); in encode_bool() 106 static void encode_int32(struct xdr_stream *xdr, const s32 value) in encode_int32() argument 110 p = xdr_reserve_space(xdr, 4); in encode_int32() 117 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 …]
|
D | mon.c | 404 static void encode_nsm_string(struct xdr_stream *xdr, const char *string) in encode_nsm_string() argument 410 p = xdr_reserve_space(xdr, 4 + len); in encode_nsm_string() 417 static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_name() argument 419 encode_nsm_string(xdr, argp->mon_name); in encode_mon_name() 428 static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_my_id() argument 432 encode_nsm_string(xdr, utsname()->nodename); in encode_my_id() 433 p = xdr_reserve_space(xdr, 4 + 4 + 4); in encode_my_id() 443 static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_id() argument 445 encode_mon_name(xdr, argp); in encode_mon_id() 446 encode_my_id(xdr, argp); in encode_mon_id() [all …]
|
D | Makefile | 8 svcshare.o svcproc.o svcsubs.o mon.o xdr.o grace.o
|
/linux-2.6.39/net/sunrpc/ |
D | xdr.c | 132 xdr_encode_pages(struct xdr_buf *xdr, struct page **pages, unsigned int base, in xdr_encode_pages() argument 135 struct kvec *tail = xdr->tail; in xdr_encode_pages() 138 xdr->pages = pages; in xdr_encode_pages() 139 xdr->page_base = base; in xdr_encode_pages() 140 xdr->page_len = len; in xdr_encode_pages() 142 p = (u32 *)xdr->head[0].iov_base + XDR_QUADLEN(xdr->head[0].iov_len); in xdr_encode_pages() 154 xdr->buflen += len; in xdr_encode_pages() 155 xdr->len += len; in xdr_encode_pages() 160 xdr_inline_pages(struct xdr_buf *xdr, unsigned int offset, in xdr_inline_pages() argument 163 struct kvec *head = xdr->head; in xdr_inline_pages() [all …]
|
D | socklib.c | 71 ssize_t xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct xdr_skb_reader *de… in xdr_partial_copy_from_skb() argument 73 struct page **ppage = xdr->pages; in xdr_partial_copy_from_skb() 74 unsigned int len, pglen = xdr->page_len; in xdr_partial_copy_from_skb() 78 len = xdr->head[0].iov_len; in xdr_partial_copy_from_skb() 81 ret = copy_actor(desc, (char *)xdr->head[0].iov_base + base, len); in xdr_partial_copy_from_skb() 95 if (base || xdr->page_base) { in xdr_partial_copy_from_skb() 97 base += xdr->page_base; in xdr_partial_copy_from_skb() 136 len = xdr->tail[0].iov_len; in xdr_partial_copy_from_skb() 138 copied += copy_actor(desc, (char *)xdr->tail[0].iov_base + base, len - base); in xdr_partial_copy_from_skb() 152 int csum_partial_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb) in csum_partial_copy_to_xdr() argument [all …]
|
D | rpcb_clnt.c | 692 static void rpcb_enc_mapping(struct rpc_rqst *req, struct xdr_stream *xdr, in rpcb_enc_mapping() argument 702 p = xdr_reserve_space(xdr, RPCB_mappingargs_sz << 2); in rpcb_enc_mapping() 709 static int rpcb_dec_getport(struct rpc_rqst *req, struct xdr_stream *xdr, in rpcb_dec_getport() argument 718 p = xdr_inline_decode(xdr, 4); in rpcb_dec_getport() 732 static int rpcb_dec_set(struct rpc_rqst *req, struct xdr_stream *xdr, in rpcb_dec_set() argument 738 p = xdr_inline_decode(xdr, 4); in rpcb_dec_set() 752 static void encode_rpcb_string(struct xdr_stream *xdr, const char *string, in encode_rpcb_string() argument 760 p = xdr_reserve_space(xdr, 4 + len); in encode_rpcb_string() 764 static void rpcb_enc_getaddr(struct rpc_rqst *req, struct xdr_stream *xdr, in rpcb_enc_getaddr() argument 775 p = xdr_reserve_space(xdr, (RPCB_program_sz + RPCB_version_sz) << 2); in rpcb_enc_getaddr() [all …]
|
D | svcsock.c | 166 int svc_send_common(struct socket *sock, struct xdr_buf *xdr, in svc_send_common() argument 172 struct page **ppage = xdr->pages; in svc_send_common() 173 size_t base = xdr->page_base; in svc_send_common() 174 unsigned int pglen = xdr->page_len; in svc_send_common() 179 slen = xdr->len; in svc_send_common() 182 if (slen == xdr->head[0].iov_len) in svc_send_common() 185 xdr->head[0].iov_len, flags); in svc_send_common() 186 if (len != xdr->head[0].iov_len) in svc_send_common() 188 slen -= xdr->head[0].iov_len; in svc_send_common() 210 if (xdr->tail[0].iov_len) { in svc_send_common() [all …]
|
D | xprtsock.c | 362 static int xs_send_pagedata(struct socket *sock, struct xdr_buf *xdr, unsigned int base, int more) in xs_send_pagedata() argument 368 remainder = xdr->page_len - base; in xs_send_pagedata() 369 base += xdr->page_base; in xs_send_pagedata() 370 ppage = xdr->pages + (base >> PAGE_SHIFT); in xs_send_pagedata() 402 …es(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xdr, unsigned int base) in xs_sendpages() argument 404 unsigned int remainder = xdr->len - base; in xs_sendpages() 416 if (base < xdr->head[0].iov_len || addr != NULL) { in xs_sendpages() 417 unsigned int len = xdr->head[0].iov_len - base; in xs_sendpages() 419 err = xs_send_kvec(sock, addr, addrlen, &xdr->head[0], base, remainder != 0); in xs_sendpages() 425 base -= xdr->head[0].iov_len; in xs_sendpages() [all …]
|
D | auth.c | 569 struct xdr_stream xdr; in rpcauth_wrap_req_encode() local 571 xdr_init_encode(&xdr, &rqstp->rq_snd_buf, data); in rpcauth_wrap_req_encode() 572 encode(rqstp, &xdr, obj); in rpcauth_wrap_req_encode() 594 struct xdr_stream xdr; in rpcauth_unwrap_req_decode() local 596 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, data); in rpcauth_unwrap_req_decode() 597 return decode(rqstp, &xdr, obj); in rpcauth_unwrap_req_decode()
|
D | sunrpc.h | 46 int svc_send_common(struct socket *sock, struct xdr_buf *xdr,
|
D | Makefile | 13 addr.o rpcb_clnt.o timer.o xdr.o \
|
D | svc.c | 988 kxdrproc_t xdr; in svc_process_common() local 1099 xdr = procp->pc_decode; in svc_process_common() 1100 if (xdr && !xdr(rqstp, argv->iov_base, rqstp->rq_argp)) in svc_process_common() 1112 (xdr = procp->pc_encode) && in svc_process_common() 1113 !xdr(rqstp, resv->iov_base+resv->iov_len, rqstp->rq_resp)) { in svc_process_common()
|
D | clnt.c | 1786 static void rpcproc_encode_null(void *rqstp, struct xdr_stream *xdr, void *obj) in rpcproc_encode_null() argument 1790 static int rpcproc_decode_null(void *rqstp, struct xdr_stream *xdr, void *obj) in rpcproc_decode_null() argument
|
/linux-2.6.39/net/rxrpc/ |
D | ar-key.c | 84 static int rxrpc_instantiate_xdr_rxkad(struct key *key, const __be32 *xdr, in rxrpc_instantiate_xdr_rxkad() argument 93 ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(xdr[3]), in rxrpc_instantiate_xdr_rxkad() 98 tktlen = ntohl(xdr[7]); in rxrpc_instantiate_xdr_rxkad() 123 token->kad->vice_id = ntohl(xdr[0]); in rxrpc_instantiate_xdr_rxkad() 124 token->kad->kvno = ntohl(xdr[1]); in rxrpc_instantiate_xdr_rxkad() 125 token->kad->start = ntohl(xdr[4]); in rxrpc_instantiate_xdr_rxkad() 126 token->kad->expiry = ntohl(xdr[5]); in rxrpc_instantiate_xdr_rxkad() 127 token->kad->primary_flag = ntohl(xdr[6]); in rxrpc_instantiate_xdr_rxkad() 128 memcpy(&token->kad->session_key, &xdr[2], 8); in rxrpc_instantiate_xdr_rxkad() 129 memcpy(&token->kad->ticket, &xdr[8], tktlen); in rxrpc_instantiate_xdr_rxkad() [all …]
|
/linux-2.6.39/net/sunrpc/xprtrdma/ |
D | svc_rdma_sendto.c | 73 struct xdr_buf *xdr, in fast_reg_xdr() argument 93 frva = (void *)((unsigned long)(xdr->head[0].iov_base) & PAGE_MASK); in fast_reg_xdr() 94 vec->sge[sge_no].iov_base = xdr->head[0].iov_base; in fast_reg_xdr() 95 vec->sge[sge_no].iov_len = xdr->head[0].iov_len; in fast_reg_xdr() 105 page_off = (unsigned long)xdr->head[0].iov_base & ~PAGE_MASK; in fast_reg_xdr() 108 virt_to_page(xdr->head[0].iov_base), in fast_reg_xdr() 118 page_off = xdr->page_base; in fast_reg_xdr() 119 page_bytes = xdr->page_len + page_off; in fast_reg_xdr() 130 page = xdr->pages[page_no++]; in fast_reg_xdr() 151 if (0 == xdr->tail[0].iov_len) in fast_reg_xdr() [all …]
|
/linux-2.6.39/fs/nfsd/ |
D | nfs4callback.c | 90 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr) in print_overflow_msg() argument 94 func, xdr->end - xdr->p); in print_overflow_msg() 136 static void encode_nfs_cb_opnum4(struct xdr_stream *xdr, enum nfs_cb_opnum4 op) in encode_nfs_cb_opnum4() argument 140 p = xdr_reserve_space(xdr, 4); in encode_nfs_cb_opnum4() 149 static void encode_nfs_fh4(struct xdr_stream *xdr, const struct knfsd_fh *fh) in encode_nfs_fh4() argument 155 p = xdr_reserve_space(xdr, 4 + length); in encode_nfs_fh4() 167 static void encode_stateid4(struct xdr_stream *xdr, const stateid_t *sid) in encode_stateid4() argument 171 p = xdr_reserve_space(xdr, NFS4_STATEID_SIZE); in encode_stateid4() 181 static void encode_sessionid4(struct xdr_stream *xdr, in encode_sessionid4() argument 186 p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN); in encode_sessionid4() [all …]
|
D | nfssvc.c | 572 kxdrproc_t xdr; in nfsd_dispatch() local 592 xdr = proc->pc_decode; in nfsd_dispatch() 593 if (xdr && !xdr(rqstp, (__be32*)rqstp->rq_arg.head[0].iov_base, in nfsd_dispatch() 624 xdr = proc->pc_encode; in nfsd_dispatch() 625 if (xdr && !xdr(rqstp, nfserrp, in nfsd_dispatch()
|
/linux-2.6.39/include/linux/sunrpc/ |
D | xdr.h | 211 typedef void (*kxdreproc_t)(void *rqstp, struct xdr_stream *xdr, void *obj); 212 typedef int (*kxdrdproc_t)(void *rqstp, struct xdr_stream *xdr, void *obj); 214 extern void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p); 215 extern __be32 *xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes); 216 extern void xdr_write_pages(struct xdr_stream *xdr, struct page **pages, 218 extern void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p); 219 extern void xdr_set_scratch_buffer(struct xdr_stream *xdr, void *buf, size_t buflen); 220 extern __be32 *xdr_inline_decode(struct xdr_stream *xdr, size_t nbytes); 221 extern void xdr_read_pages(struct xdr_stream *xdr, unsigned int len); 222 extern void xdr_enter_page(struct xdr_stream *xdr, unsigned int len);
|
/linux-2.6.39/net/sunrpc/auth_gss/ |
D | auth_gss.c | 1239 struct xdr_stream xdr; in gss_wrap_req_encode() local 1241 xdr_init_encode(&xdr, &rqstp->rq_snd_buf, p); in gss_wrap_req_encode() 1242 encode(rqstp, &xdr, obj); in gss_wrap_req_encode() 1512 struct xdr_stream xdr; in gss_unwrap_req_decode() local 1514 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, p); in gss_unwrap_req_decode() 1515 return decode(rqstp, &xdr, obj); in gss_unwrap_req_decode()
|