Home
last modified time | relevance | path

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

/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c24 static int gssx_enc_bool(struct xdr_stream *xdr, int v) in gssx_enc_bool() argument
28 p = xdr_reserve_space(xdr, 4); in gssx_enc_bool()
35 static int gssx_dec_bool(struct xdr_stream *xdr, u32 *v) in gssx_dec_bool() argument
39 p = xdr_inline_decode(xdr, 4); in gssx_dec_bool()
46 static int gssx_enc_buffer(struct xdr_stream *xdr, in gssx_enc_buffer() argument
51 p = xdr_reserve_space(xdr, sizeof(u32) + buf->len); in gssx_enc_buffer()
58 static int gssx_enc_in_token(struct xdr_stream *xdr, in gssx_enc_in_token() argument
63 p = xdr_reserve_space(xdr, 4); in gssx_enc_in_token()
69 xdr_write_pages(xdr, in->pages, in->page_base, in->page_len); in gssx_enc_in_token()
75 static int gssx_dec_buffer(struct xdr_stream *xdr, in gssx_dec_buffer() argument
[all …]
Dgss_rpc_xdr.h181 struct xdr_stream *xdr,
184 struct xdr_stream *xdr,
Dauth_gss.c1662 struct xdr_stream xdr; in gss_wrap_req_encode() local
1664 xdr_init_encode(&xdr, &rqstp->rq_snd_buf, p); in gss_wrap_req_encode()
1665 encode(rqstp, &xdr, obj); in gss_wrap_req_encode()
1933 struct xdr_stream xdr; in gss_unwrap_req_decode() local
1935 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, p); in gss_unwrap_req_decode()
1936 return decode(rqstp, &xdr, obj); in gss_unwrap_req_decode()
/net/sunrpc/
Dxdr.c132 xdr_inline_pages(struct xdr_buf *xdr, unsigned int offset, in xdr_inline_pages() argument
135 struct kvec *head = xdr->head; in xdr_inline_pages()
136 struct kvec *tail = xdr->tail; in xdr_inline_pages()
142 xdr->pages = pages; in xdr_inline_pages()
143 xdr->page_base = base; in xdr_inline_pages()
144 xdr->page_len = len; in xdr_inline_pages()
149 xdr->buflen += len; in xdr_inline_pages()
441 unsigned int xdr_stream_pos(const struct xdr_stream *xdr) in xdr_stream_pos() argument
443 return (unsigned int)(XDR_QUADLEN(xdr->buf->len) - xdr->nwords) << 2; in xdr_stream_pos()
460 void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p) in xdr_init_encode() argument
[all …]
Dsocklib.c72 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
74 struct page **ppage = xdr->pages; in xdr_partial_copy_from_skb()
75 unsigned int len, pglen = xdr->page_len; in xdr_partial_copy_from_skb()
79 len = xdr->head[0].iov_len; in xdr_partial_copy_from_skb()
82 ret = copy_actor(desc, (char *)xdr->head[0].iov_base + base, len); in xdr_partial_copy_from_skb()
96 if (base || xdr->page_base) { in xdr_partial_copy_from_skb()
98 base += xdr->page_base; in xdr_partial_copy_from_skb()
137 len = xdr->tail[0].iov_len; in xdr_partial_copy_from_skb()
139 copied += copy_actor(desc, (char *)xdr->tail[0].iov_base + base, len - base); in xdr_partial_copy_from_skb()
153 int csum_partial_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb) in csum_partial_copy_to_xdr() argument
[all …]
Drpcb_clnt.c847 static void rpcb_enc_mapping(struct rpc_rqst *req, struct xdr_stream *xdr, in rpcb_enc_mapping() argument
857 p = xdr_reserve_space(xdr, RPCB_mappingargs_sz << 2); in rpcb_enc_mapping()
864 static int rpcb_dec_getport(struct rpc_rqst *req, struct xdr_stream *xdr, in rpcb_dec_getport() argument
872 p = xdr_inline_decode(xdr, 4); in rpcb_dec_getport()
886 static int rpcb_dec_set(struct rpc_rqst *req, struct xdr_stream *xdr, in rpcb_dec_set() argument
891 p = xdr_inline_decode(xdr, 4); in rpcb_dec_set()
906 static void encode_rpcb_string(struct xdr_stream *xdr, const char *string, in encode_rpcb_string() argument
917 p = xdr_reserve_space(xdr, 4 + len); in encode_rpcb_string()
921 static void rpcb_enc_getaddr(struct rpc_rqst *req, struct xdr_stream *xdr, in rpcb_enc_getaddr() argument
932 p = xdr_reserve_space(xdr, (RPCB_program_sz + RPCB_version_sz) << 2); in rpcb_enc_getaddr()
[all …]
Dxprtsock.c402 static int xs_send_pagedata(struct socket *sock, struct xdr_buf *xdr, unsigned int base, int more, … in xs_send_pagedata() argument
410 remainder = xdr->page_len - base; in xs_send_pagedata()
411 base += xdr->page_base; in xs_send_pagedata()
412 ppage = xdr->pages + (base >> PAGE_SHIFT); in xs_send_pagedata()
449 …s(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xdr, unsigned int base,… in xs_sendpages() argument
451 unsigned int remainder = xdr->len - base; in xs_sendpages()
464 if (base < xdr->head[0].iov_len || addr != NULL) { in xs_sendpages()
465 unsigned int len = xdr->head[0].iov_len - base; in xs_sendpages()
467 err = xs_send_kvec(sock, addr, addrlen, &xdr->head[0], base, remainder != 0); in xs_sendpages()
473 base -= xdr->head[0].iov_len; in xs_sendpages()
[all …]
Dsvcsock.c175 int svc_send_common(struct socket *sock, struct xdr_buf *xdr, in svc_send_common() argument
181 struct page **ppage = xdr->pages; in svc_send_common()
182 size_t base = xdr->page_base; in svc_send_common()
183 unsigned int pglen = xdr->page_len; in svc_send_common()
188 slen = xdr->len; in svc_send_common()
191 if (slen == xdr->head[0].iov_len) in svc_send_common()
194 xdr->head[0].iov_len, flags); in svc_send_common()
195 if (len != xdr->head[0].iov_len) in svc_send_common()
197 slen -= xdr->head[0].iov_len; in svc_send_common()
219 if (xdr->tail[0].iov_len) { in svc_send_common()
[all …]
Dauth.c773 struct xdr_stream xdr; in rpcauth_wrap_req_encode() local
775 xdr_init_encode(&xdr, &rqstp->rq_snd_buf, data); in rpcauth_wrap_req_encode()
776 encode(rqstp, &xdr, obj); in rpcauth_wrap_req_encode()
798 struct xdr_stream xdr; in rpcauth_unwrap_req_decode() local
800 xdr_init_decode(&xdr, &rqstp->rq_rcv_buf, data); in rpcauth_unwrap_req_decode()
801 return decode(rqstp, &xdr, obj); in rpcauth_unwrap_req_decode()
Dsunrpc.h59 int svc_send_common(struct socket *sock, struct xdr_buf *xdr,
Dsvc.c1074 kxdrproc_t xdr; in svc_process_common() local
1183 xdr = procp->pc_decode; in svc_process_common()
1184 if (xdr && !xdr(rqstp, argv->iov_base, rqstp->rq_argp)) in svc_process_common()
1196 (xdr = procp->pc_encode) && in svc_process_common()
1197 !xdr(rqstp, resv->iov_base+resv->iov_len, rqstp->rq_resp)) { in svc_process_common()
DMakefile14 addr.o rpcb_clnt.o timer.o xdr.o \
Dclnt.c2392 static void rpcproc_encode_null(void *rqstp, struct xdr_stream *xdr, void *obj) in rpcproc_encode_null() argument
2396 static int rpcproc_decode_null(void *rqstp, struct xdr_stream *xdr, void *obj) in rpcproc_decode_null() argument
/net/rxrpc/
Dar-key.c90 const __be32 *xdr, unsigned int toklen) in rxrpc_preparse_xdr_rxkad() argument
97 ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(xdr[3]), in rxrpc_preparse_xdr_rxkad()
102 tktlen = ntohl(xdr[7]); in rxrpc_preparse_xdr_rxkad()
125 token->kad->vice_id = ntohl(xdr[0]); in rxrpc_preparse_xdr_rxkad()
126 token->kad->kvno = ntohl(xdr[1]); in rxrpc_preparse_xdr_rxkad()
127 token->kad->start = ntohl(xdr[4]); in rxrpc_preparse_xdr_rxkad()
128 token->kad->expiry = ntohl(xdr[5]); in rxrpc_preparse_xdr_rxkad()
129 token->kad->primary_flag = ntohl(xdr[6]); in rxrpc_preparse_xdr_rxkad()
130 memcpy(&token->kad->session_key, &xdr[2], 8); in rxrpc_preparse_xdr_rxkad()
131 memcpy(&token->kad->ticket, &xdr[8], tktlen); in rxrpc_preparse_xdr_rxkad()
[all …]
/net/sunrpc/xprtrdma/
Dsvc_rdma_sendto.c54 struct xdr_buf *xdr, in map_xdr() argument
63 BUG_ON(xdr->len != in map_xdr()
64 (xdr->head[0].iov_len + xdr->page_len + xdr->tail[0].iov_len)); in map_xdr()
70 vec->sge[sge_no].iov_base = xdr->head[0].iov_base; in map_xdr()
71 vec->sge[sge_no].iov_len = xdr->head[0].iov_len; in map_xdr()
76 page_bytes = xdr->page_len; in map_xdr()
77 page_off = xdr->page_base; in map_xdr()
80 page_address(xdr->pages[page_no]) + page_off; in map_xdr()
91 if (xdr->tail[0].iov_len) { in map_xdr()
92 vec->sge[sge_no].iov_base = xdr->tail[0].iov_base; in map_xdr()
[all …]