Lines Matching refs:p
63 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_decode_void() argument
65 return xdr_argsize_check(rqstp, p); in nfs4_decode_void()
68 static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_encode_void() argument
70 return xdr_ressize_check(rqstp, p); in nfs4_encode_void()
75 __be32 *p; in read_buf() local
77 p = xdr_inline_decode(xdr, nbytes); in read_buf()
78 if (unlikely(p == NULL)) in read_buf()
80 return p; in read_buf()
85 __be32 *p; in decode_string() local
87 p = read_buf(xdr, 4); in decode_string()
88 if (unlikely(p == NULL)) in decode_string()
90 *len = ntohl(*p); in decode_string()
93 p = read_buf(xdr, *len); in decode_string()
94 if (unlikely(p == NULL)) in decode_string()
96 *str = (const char *)p; in decode_string()
105 __be32 *p; in decode_fh() local
107 p = read_buf(xdr, 4); in decode_fh()
108 if (unlikely(p == NULL)) in decode_fh()
110 fh->size = ntohl(*p); in decode_fh()
113 p = read_buf(xdr, fh->size); in decode_fh()
114 if (unlikely(p == NULL)) in decode_fh()
116 memcpy(&fh->data[0], p, fh->size); in decode_fh()
123 __be32 *p; in decode_bitmap() local
126 p = read_buf(xdr, 4); in decode_bitmap()
127 if (unlikely(p == NULL)) in decode_bitmap()
129 attrlen = ntohl(*p); in decode_bitmap()
130 p = read_buf(xdr, attrlen << 2); in decode_bitmap()
131 if (unlikely(p == NULL)) in decode_bitmap()
134 bitmap[0] = ntohl(*p++); in decode_bitmap()
136 bitmap[1] = ntohl(*p); in decode_bitmap()
142 __be32 *p; in decode_stateid() local
144 p = read_buf(xdr, NFS4_STATEID_SIZE); in decode_stateid()
145 if (unlikely(p == NULL)) in decode_stateid()
147 memcpy(stateid, p, NFS4_STATEID_SIZE); in decode_stateid()
153 __be32 *p; in decode_compound_hdr_arg() local
165 p = read_buf(xdr, 12); in decode_compound_hdr_arg()
166 if (unlikely(p == NULL)) in decode_compound_hdr_arg()
168 hdr->minorversion = ntohl(*p++); in decode_compound_hdr_arg()
171 hdr->cb_ident = ntohl(*p++); /* ignored by v4.1 and v4.2 */ in decode_compound_hdr_arg()
178 hdr->nops = ntohl(*p); in decode_compound_hdr_arg()
186 __be32 *p; in decode_op_hdr() local
187 p = read_buf(xdr, 4); in decode_op_hdr()
188 if (unlikely(p == NULL)) in decode_op_hdr()
190 *op = ntohl(*p); in decode_op_hdr()
210 __be32 *p; in decode_recall_args() local
217 p = read_buf(xdr, 4); in decode_recall_args()
218 if (unlikely(p == NULL)) { in decode_recall_args()
222 args->truncate = ntohl(*p); in decode_recall_args()
235 __be32 *p; in decode_layoutrecall_args() local
240 p = read_buf(xdr, 4 * sizeof(uint32_t)); in decode_layoutrecall_args()
241 if (unlikely(p == NULL)) { in decode_layoutrecall_args()
246 args->cbl_layout_type = ntohl(*p++); in decode_layoutrecall_args()
250 iomode = ntohl(*p++); in decode_layoutrecall_args()
251 args->cbl_layoutchanged = ntohl(*p++); in decode_layoutrecall_args()
252 args->cbl_recall_type = ntohl(*p++); in decode_layoutrecall_args()
260 p = read_buf(xdr, 2 * sizeof(uint64_t)); in decode_layoutrecall_args()
261 if (unlikely(p == NULL)) { in decode_layoutrecall_args()
265 p = xdr_decode_hyper(p, &args->cbl_range.offset); in decode_layoutrecall_args()
266 p = xdr_decode_hyper(p, &args->cbl_range.length); in decode_layoutrecall_args()
271 p = read_buf(xdr, 2 * sizeof(uint64_t)); in decode_layoutrecall_args()
272 if (unlikely(p == NULL)) { in decode_layoutrecall_args()
276 p = xdr_decode_hyper(p, &args->cbl_fsid.major); in decode_layoutrecall_args()
277 p = xdr_decode_hyper(p, &args->cbl_fsid.minor); in decode_layoutrecall_args()
296 __be32 *p; in decode_devicenotify_args() local
303 p = read_buf(xdr, sizeof(uint32_t)); in decode_devicenotify_args()
304 if (unlikely(p == NULL)) { in decode_devicenotify_args()
308 n = ntohl(*p++); in decode_devicenotify_args()
326 p = read_buf(xdr, (4 * sizeof(uint32_t)) + NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
327 if (unlikely(p == NULL)) { in decode_devicenotify_args()
332 tmp = ntohl(*p++); /* bitmap size */ in decode_devicenotify_args()
337 dev->cbd_notify_type = ntohl(*p++); in decode_devicenotify_args()
344 tmp = ntohl(*p++); /* opaque size */ in decode_devicenotify_args()
352 dev->cbd_layout_type = ntohl(*p++); in decode_devicenotify_args()
353 memcpy(dev->cbd_dev_id.data, p, NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
354 p += XDR_QUADLEN(NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
357 p = read_buf(xdr, sizeof(uint32_t)); in decode_devicenotify_args()
358 if (unlikely(p == NULL)) { in decode_devicenotify_args()
362 dev->cbd_immediate = ntohl(*p++); in decode_devicenotify_args()
385 __be32 *p; in decode_sessionid() local
388 p = read_buf(xdr, len); in decode_sessionid()
389 if (unlikely(p == NULL)) in decode_sessionid()
392 memcpy(sid->data, p, len); in decode_sessionid()
399 __be32 *p; in decode_rc_list() local
408 p = read_buf(xdr, sizeof(uint32_t)); in decode_rc_list()
409 if (unlikely(p == NULL)) in decode_rc_list()
412 rc_list->rcl_nrefcalls = ntohl(*p++); in decode_rc_list()
414 p = read_buf(xdr, in decode_rc_list()
416 if (unlikely(p == NULL)) in decode_rc_list()
424 rc_list->rcl_refcalls[i].rc_sequenceid = ntohl(*p++); in decode_rc_list()
425 rc_list->rcl_refcalls[i].rc_slotid = ntohl(*p++); in decode_rc_list()
438 __be32 *p; in decode_cb_sequence_args() local
447 p = read_buf(xdr, 5 * sizeof(uint32_t)); in decode_cb_sequence_args()
448 if (unlikely(p == NULL)) in decode_cb_sequence_args()
452 args->csa_sequenceid = ntohl(*p++); in decode_cb_sequence_args()
453 args->csa_slotid = ntohl(*p++); in decode_cb_sequence_args()
454 args->csa_highestslotid = ntohl(*p++); in decode_cb_sequence_args()
455 args->csa_cachethis = ntohl(*p++); in decode_cb_sequence_args()
456 args->csa_nrclists = ntohl(*p++); in decode_cb_sequence_args()
501 __be32 *p, status; in decode_recallany_args() local
504 p = read_buf(xdr, 4); in decode_recallany_args()
505 if (unlikely(p == NULL)) in decode_recallany_args()
507 args->craa_objs_to_keep = ntohl(*p++); in decode_recallany_args()
520 __be32 *p; in decode_recallslot_args() local
523 p = read_buf(xdr, 4); in decode_recallslot_args()
524 if (unlikely(p == NULL)) in decode_recallslot_args()
526 args->crsa_target_highest_slotid = ntohl(*p++); in decode_recallslot_args()
534 __be32 *p; in encode_string() local
536 p = xdr_reserve_space(xdr, 4 + len); in encode_string()
537 if (unlikely(p == NULL)) in encode_string()
539 xdr_encode_opaque(p, str, len); in encode_string()
548 __be32 *p; in encode_attr_bitmap() local
553 p = xdr_reserve_space(xdr, 16); in encode_attr_bitmap()
554 if (unlikely(p == NULL)) in encode_attr_bitmap()
556 *p++ = htonl(2); in encode_attr_bitmap()
557 *p++ = bm[0]; in encode_attr_bitmap()
558 *p++ = bm[1]; in encode_attr_bitmap()
560 p = xdr_reserve_space(xdr, 12); in encode_attr_bitmap()
561 if (unlikely(p == NULL)) in encode_attr_bitmap()
563 *p++ = htonl(1); in encode_attr_bitmap()
564 *p++ = bm[0]; in encode_attr_bitmap()
566 p = xdr_reserve_space(xdr, 8); in encode_attr_bitmap()
567 if (unlikely(p == NULL)) in encode_attr_bitmap()
569 *p++ = htonl(0); in encode_attr_bitmap()
571 *savep = p; in encode_attr_bitmap()
577 __be32 *p; in encode_attr_change() local
581 p = xdr_reserve_space(xdr, 8); in encode_attr_change()
582 if (unlikely(!p)) in encode_attr_change()
584 p = xdr_encode_hyper(p, change); in encode_attr_change()
590 __be32 *p; in encode_attr_size() local
594 p = xdr_reserve_space(xdr, 8); in encode_attr_size()
595 if (unlikely(!p)) in encode_attr_size()
597 p = xdr_encode_hyper(p, size); in encode_attr_size()
603 __be32 *p; in encode_attr_time() local
605 p = xdr_reserve_space(xdr, 12); in encode_attr_time()
606 if (unlikely(!p)) in encode_attr_time()
608 p = xdr_encode_hyper(p, time->tv_sec); in encode_attr_time()
609 *p = htonl(time->tv_nsec); in encode_attr_time()
645 __be32 *p; in encode_op_hdr() local
647 p = xdr_reserve_space(xdr, 8); in encode_op_hdr()
648 if (unlikely(p == NULL)) in encode_op_hdr()
650 *p++ = htonl(op); in encode_op_hdr()
651 *p = res; in encode_op_hdr()
675 *savep = htonl((unsigned int)((char *)xdr->p - (char *)(savep+1))); in encode_getattr_res()
686 __be32 *p; in encode_sessionid() local
689 p = xdr_reserve_space(xdr, len); in encode_sessionid()
690 if (unlikely(p == NULL)) in encode_sessionid()
693 memcpy(p, sid, len); in encode_sessionid()
701 __be32 *p; in encode_cb_sequence_res() local
709 p = xdr_reserve_space(xdr, 4 * sizeof(uint32_t)); in encode_cb_sequence_res()
710 if (unlikely(p == NULL)) in encode_cb_sequence_res()
713 *p++ = htonl(res->csr_sequenceid); in encode_cb_sequence_res()
714 *p++ = htonl(res->csr_slotid); in encode_cb_sequence_res()
715 *p++ = htonl(res->csr_highestslotid); in encode_cb_sequence_res()
716 *p++ = htonl(res->csr_target_highestslotid); in encode_cb_sequence_res()
869 maxlen = xdr_out->end - xdr_out->p; in process_op()
895 __be32 *p, status; in nfs4_callback_compound() local
908 p = (__be32*)((char *)rqstp->rq_res.head[0].iov_base + rqstp->rq_res.head[0].iov_len); in nfs4_callback_compound()
909 xdr_init_encode(&xdr_out, &rqstp->rq_res, p); in nfs4_callback_compound()