• Home
  • Raw
  • Download

Lines Matching refs:p

22 xdr_encode_netobj(__be32 *p, const struct xdr_netobj *obj)  in xdr_encode_netobj()  argument
26 p[quadlen] = 0; /* zero trailing bytes */ in xdr_encode_netobj()
27 *p++ = htonl(obj->len); in xdr_encode_netobj()
28 memcpy(p, obj->data, obj->len); in xdr_encode_netobj()
29 return p + XDR_QUADLEN(obj->len); in xdr_encode_netobj()
34 xdr_decode_netobj(__be32 *p, struct xdr_netobj *obj) in xdr_decode_netobj() argument
38 if ((len = ntohl(*p++)) > XDR_MAX_NETOBJ) in xdr_decode_netobj()
41 obj->data = (u8 *) p; in xdr_decode_netobj()
42 return p + XDR_QUADLEN(len); in xdr_decode_netobj()
60 __be32 *xdr_encode_opaque_fixed(__be32 *p, const void *ptr, unsigned int nbytes) in xdr_encode_opaque_fixed() argument
67 memcpy(p, ptr, nbytes); in xdr_encode_opaque_fixed()
69 memset((char *)p + nbytes, 0, padding); in xdr_encode_opaque_fixed()
70 p += quadlen; in xdr_encode_opaque_fixed()
72 return p; in xdr_encode_opaque_fixed()
84 __be32 *xdr_encode_opaque(__be32 *p, const void *ptr, unsigned int nbytes) in xdr_encode_opaque() argument
86 *p++ = htonl(nbytes); in xdr_encode_opaque()
87 return xdr_encode_opaque_fixed(p, ptr, nbytes); in xdr_encode_opaque()
92 xdr_encode_string(__be32 *p, const char *string) in xdr_encode_string() argument
94 return xdr_encode_array(p, string, strlen(string)); in xdr_encode_string()
99 xdr_decode_string_inplace(__be32 *p, char **sp, in xdr_decode_string_inplace() argument
104 len = ntohl(*p++); in xdr_decode_string_inplace()
108 *sp = (char *) p; in xdr_decode_string_inplace()
109 return p + XDR_QUADLEN(len); in xdr_decode_string_inplace()
118 u32 *p; in xdr_encode_pages() local
124 p = (u32 *)xdr->head[0].iov_base + XDR_QUADLEN(xdr->head[0].iov_len); in xdr_encode_pages()
125 tail->iov_base = p; in xdr_encode_pages()
131 *p = 0; in xdr_encode_pages()
132 tail->iov_base = (char *)p + (len & 3); in xdr_encode_pages()
238 _copy_to_pages(struct page **pages, size_t pgbase, const char *p, size_t len) in _copy_to_pages() argument
253 memcpy(vto + pgbase, p, copy); in _copy_to_pages()
266 p += copy; in _copy_to_pages()
282 _copy_from_pages(char *p, struct page **pages, size_t pgbase, size_t len) in _copy_from_pages() argument
297 memcpy(p, vfrom + pgbase, copy); in _copy_from_pages()
305 p += copy; in _copy_from_pages()
397 char *p; in xdr_shrink_pagelen() local
405 p = (char *)tail->iov_base + len; in xdr_shrink_pagelen()
408 memmove(p, tail->iov_base, copy); in xdr_shrink_pagelen()
446 void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p) in xdr_init_encode() argument
454 xdr->p = (__be32 *)((char *)iov->iov_base + iov->iov_len); in xdr_init_encode()
458 if (p != xdr->p && p != NULL) { in xdr_init_encode()
461 BUG_ON(p < xdr->p || p > xdr->end); in xdr_init_encode()
462 len = (char *)p - (char *)xdr->p; in xdr_init_encode()
463 xdr->p = p; in xdr_init_encode()
481 __be32 *p = xdr->p; in xdr_reserve_space() local
487 q = p + (nbytes >> 2); in xdr_reserve_space()
488 if (unlikely(q > xdr->end || q < p)) in xdr_reserve_space()
490 xdr->p = q; in xdr_reserve_space()
493 return p; in xdr_reserve_space()
514 iov->iov_base = (char *)xdr->p; in xdr_write_pages()
521 BUG_ON(xdr->p >= xdr->end); in xdr_write_pages()
522 iov->iov_base = (char *)xdr->p + (len & 3); in xdr_write_pages()
525 *xdr->p++ = 0; in xdr_write_pages()
538 void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p) in xdr_init_decode() argument
547 xdr->p = p; in xdr_init_decode()
564 __be32 *p = xdr->p; in xdr_inline_decode() local
565 __be32 *q = p + XDR_QUADLEN(nbytes); in xdr_inline_decode()
567 if (unlikely(q > xdr->end || q < p)) in xdr_inline_decode()
569 xdr->p = q; in xdr_inline_decode()
570 return p; in xdr_inline_decode()
593 shift = iov->iov_len + (char *)iov->iov_base - (char *)xdr->p; in xdr_read_pages()
613 xdr->p = (__be32 *)((char *)iov->iov_base + padding); in xdr_read_pages()
638 xdr->p = (__be32 *)(kaddr + xdr->buf->page_base); in xdr_enter_page()
639 xdr->end = (__be32 *)((char *)xdr->p + len); in xdr_enter_page()