• Home
  • Raw
  • Download

Lines Matching refs:p

66 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy)  in nfs4_decode_void()  argument
68 return xdr_argsize_check(rqstp, p); in nfs4_decode_void()
71 static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy) in nfs4_encode_void() argument
73 return xdr_ressize_check(rqstp, p); in nfs4_encode_void()
78 __be32 *p; in read_buf() local
80 p = xdr_inline_decode(xdr, nbytes); in read_buf()
81 if (unlikely(p == NULL)) in read_buf()
83 return p; in read_buf()
88 __be32 *p; in decode_string() local
90 p = read_buf(xdr, 4); in decode_string()
91 if (unlikely(p == NULL)) in decode_string()
93 *len = ntohl(*p); in decode_string()
96 p = read_buf(xdr, *len); in decode_string()
97 if (unlikely(p == NULL)) in decode_string()
99 *str = (const char *)p; in decode_string()
108 __be32 *p; in decode_fh() local
110 p = read_buf(xdr, 4); in decode_fh()
111 if (unlikely(p == NULL)) in decode_fh()
113 fh->size = ntohl(*p); in decode_fh()
116 p = read_buf(xdr, fh->size); in decode_fh()
117 if (unlikely(p == NULL)) in decode_fh()
119 memcpy(&fh->data[0], p, fh->size); in decode_fh()
126 __be32 *p; in decode_bitmap() local
129 p = read_buf(xdr, 4); in decode_bitmap()
130 if (unlikely(p == NULL)) in decode_bitmap()
132 attrlen = ntohl(*p); in decode_bitmap()
133 p = read_buf(xdr, attrlen << 2); in decode_bitmap()
134 if (unlikely(p == NULL)) in decode_bitmap()
137 bitmap[0] = ntohl(*p++); in decode_bitmap()
139 bitmap[1] = ntohl(*p); in decode_bitmap()
145 __be32 *p; in decode_stateid() local
147 p = read_buf(xdr, NFS4_STATEID_SIZE); in decode_stateid()
148 if (unlikely(p == NULL)) in decode_stateid()
150 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_stateid()
162 __be32 *p; in decode_compound_hdr_arg() local
174 p = read_buf(xdr, 12); in decode_compound_hdr_arg()
175 if (unlikely(p == NULL)) in decode_compound_hdr_arg()
177 hdr->minorversion = ntohl(*p++); in decode_compound_hdr_arg()
180 hdr->cb_ident = ntohl(*p++); /* ignored by v4.1 and v4.2 */ in decode_compound_hdr_arg()
187 hdr->nops = ntohl(*p); in decode_compound_hdr_arg()
195 __be32 *p; in decode_op_hdr() local
196 p = read_buf(xdr, 4); in decode_op_hdr()
197 if (unlikely(p == NULL)) in decode_op_hdr()
199 *op = ntohl(*p); in decode_op_hdr()
218 __be32 *p; in decode_recall_args() local
224 p = read_buf(xdr, 4); in decode_recall_args()
225 if (unlikely(p == NULL)) { in decode_recall_args()
229 args->truncate = ntohl(*p); in decode_recall_args()
247 __be32 *p; in decode_layoutrecall_args() local
251 p = read_buf(xdr, 4 * sizeof(uint32_t)); in decode_layoutrecall_args()
252 if (unlikely(p == NULL)) { in decode_layoutrecall_args()
257 args->cbl_layout_type = ntohl(*p++); in decode_layoutrecall_args()
261 iomode = ntohl(*p++); in decode_layoutrecall_args()
262 args->cbl_layoutchanged = ntohl(*p++); in decode_layoutrecall_args()
263 args->cbl_recall_type = ntohl(*p++); 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_range.offset); in decode_layoutrecall_args()
277 p = xdr_decode_hyper(p, &args->cbl_range.length); in decode_layoutrecall_args()
282 p = read_buf(xdr, 2 * sizeof(uint64_t)); in decode_layoutrecall_args()
283 if (unlikely(p == NULL)) { in decode_layoutrecall_args()
287 p = xdr_decode_hyper(p, &args->cbl_fsid.major); in decode_layoutrecall_args()
288 p = xdr_decode_hyper(p, &args->cbl_fsid.minor); in decode_layoutrecall_args()
307 __be32 *p; in decode_devicenotify_args() local
314 p = read_buf(xdr, sizeof(uint32_t)); in decode_devicenotify_args()
315 if (unlikely(p == NULL)) { in decode_devicenotify_args()
319 n = ntohl(*p++); in decode_devicenotify_args()
337 p = read_buf(xdr, (4 * sizeof(uint32_t)) + NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
338 if (unlikely(p == NULL)) { in decode_devicenotify_args()
343 tmp = ntohl(*p++); /* bitmap size */ in decode_devicenotify_args()
348 dev->cbd_notify_type = ntohl(*p++); in decode_devicenotify_args()
355 tmp = ntohl(*p++); /* opaque size */ in decode_devicenotify_args()
363 dev->cbd_layout_type = ntohl(*p++); in decode_devicenotify_args()
364 memcpy(dev->cbd_dev_id.data, p, NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
365 p += XDR_QUADLEN(NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
368 p = read_buf(xdr, sizeof(uint32_t)); in decode_devicenotify_args()
369 if (unlikely(p == NULL)) { in decode_devicenotify_args()
373 dev->cbd_immediate = ntohl(*p++); in decode_devicenotify_args()
396 __be32 *p; in decode_sessionid() local
398 p = read_buf(xdr, NFS4_MAX_SESSIONID_LEN); in decode_sessionid()
399 if (unlikely(p == NULL)) in decode_sessionid()
402 memcpy(sid->data, p, NFS4_MAX_SESSIONID_LEN); in decode_sessionid()
409 __be32 *p; in decode_rc_list() local
418 p = read_buf(xdr, sizeof(uint32_t)); in decode_rc_list()
419 if (unlikely(p == NULL)) in decode_rc_list()
422 rc_list->rcl_nrefcalls = ntohl(*p++); in decode_rc_list()
424 p = read_buf(xdr, in decode_rc_list()
426 if (unlikely(p == NULL)) in decode_rc_list()
434 rc_list->rcl_refcalls[i].rc_sequenceid = ntohl(*p++); in decode_rc_list()
435 rc_list->rcl_refcalls[i].rc_slotid = ntohl(*p++); in decode_rc_list()
448 __be32 *p; in decode_cb_sequence_args() local
457 p = read_buf(xdr, 5 * sizeof(uint32_t)); in decode_cb_sequence_args()
458 if (unlikely(p == NULL)) in decode_cb_sequence_args()
462 args->csa_sequenceid = ntohl(*p++); in decode_cb_sequence_args()
463 args->csa_slotid = ntohl(*p++); in decode_cb_sequence_args()
464 args->csa_highestslotid = ntohl(*p++); in decode_cb_sequence_args()
465 args->csa_cachethis = ntohl(*p++); in decode_cb_sequence_args()
466 args->csa_nrclists = ntohl(*p++); in decode_cb_sequence_args()
511 __be32 *p, status; in decode_recallany_args() local
513 p = read_buf(xdr, 4); in decode_recallany_args()
514 if (unlikely(p == NULL)) in decode_recallany_args()
516 args->craa_objs_to_keep = ntohl(*p++); in decode_recallany_args()
529 __be32 *p; in decode_recallslot_args() local
531 p = read_buf(xdr, 4); in decode_recallslot_args()
532 if (unlikely(p == NULL)) in decode_recallslot_args()
534 args->crsa_target_highest_slotid = ntohl(*p++); in decode_recallslot_args()
540 __be32 *p; in decode_lockowner() local
543 p = read_buf(xdr, 12); in decode_lockowner()
544 if (unlikely(p == NULL)) in decode_lockowner()
547 p = xdr_decode_hyper(p, &args->cbnl_owner.clientid); in decode_lockowner()
548 len = be32_to_cpu(*p); in decode_lockowner()
550 p = read_buf(xdr, len); in decode_lockowner()
551 if (unlikely(p == NULL)) in decode_lockowner()
556 p += 2; /* skip "lock id:" */ in decode_lockowner()
557 args->cbnl_owner.s_dev = be32_to_cpu(*p++); in decode_lockowner()
558 xdr_decode_hyper(p, &args->cbnl_owner.id); in decode_lockowner()
585 __be32 *p; in encode_string() local
587 p = xdr_reserve_space(xdr, 4 + len); in encode_string()
588 if (unlikely(p == NULL)) in encode_string()
590 xdr_encode_opaque(p, str, len); in encode_string()
599 __be32 *p; in encode_attr_bitmap() local
604 p = xdr_reserve_space(xdr, 16); in encode_attr_bitmap()
605 if (unlikely(p == NULL)) in encode_attr_bitmap()
607 *p++ = htonl(2); in encode_attr_bitmap()
608 *p++ = bm[0]; in encode_attr_bitmap()
609 *p++ = bm[1]; in encode_attr_bitmap()
611 p = xdr_reserve_space(xdr, 12); in encode_attr_bitmap()
612 if (unlikely(p == NULL)) in encode_attr_bitmap()
614 *p++ = htonl(1); in encode_attr_bitmap()
615 *p++ = bm[0]; in encode_attr_bitmap()
617 p = xdr_reserve_space(xdr, 8); in encode_attr_bitmap()
618 if (unlikely(p == NULL)) in encode_attr_bitmap()
620 *p++ = htonl(0); in encode_attr_bitmap()
622 *savep = p; in encode_attr_bitmap()
628 __be32 *p; in encode_attr_change() local
632 p = xdr_reserve_space(xdr, 8); in encode_attr_change()
633 if (unlikely(!p)) in encode_attr_change()
635 p = xdr_encode_hyper(p, change); in encode_attr_change()
641 __be32 *p; in encode_attr_size() local
645 p = xdr_reserve_space(xdr, 8); in encode_attr_size()
646 if (unlikely(!p)) in encode_attr_size()
648 p = xdr_encode_hyper(p, size); in encode_attr_size()
654 __be32 *p; in encode_attr_time() local
656 p = xdr_reserve_space(xdr, 12); in encode_attr_time()
657 if (unlikely(!p)) in encode_attr_time()
659 p = xdr_encode_hyper(p, time->tv_sec); in encode_attr_time()
660 *p = htonl(time->tv_nsec); in encode_attr_time()
696 __be32 *p; in encode_op_hdr() local
698 p = xdr_reserve_space(xdr, 8); in encode_op_hdr()
699 if (unlikely(p == NULL)) in encode_op_hdr()
701 *p++ = htonl(op); in encode_op_hdr()
702 *p = res; in encode_op_hdr()
726 *savep = htonl((unsigned int)((char *)xdr->p - (char *)(savep+1))); in encode_getattr_res()
737 __be32 *p; in encode_sessionid() local
739 p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN); in encode_sessionid()
740 if (unlikely(p == NULL)) in encode_sessionid()
743 memcpy(p, sid, NFS4_MAX_SESSIONID_LEN); in encode_sessionid()
751 __be32 *p; in encode_cb_sequence_res() local
761 p = xdr_reserve_space(xdr, 4 * sizeof(uint32_t)); in encode_cb_sequence_res()
762 if (unlikely(p == NULL)) in encode_cb_sequence_res()
765 *p++ = htonl(res->csr_sequenceid); in encode_cb_sequence_res()
766 *p++ = htonl(res->csr_slotid); in encode_cb_sequence_res()
767 *p++ = htonl(res->csr_highestslotid); in encode_cb_sequence_res()
768 *p++ = htonl(res->csr_target_highestslotid); in encode_cb_sequence_res()
924 maxlen = xdr_out->end - xdr_out->p; in process_op()
950 __be32 *p, status; in nfs4_callback_compound() local
962 p = (__be32*)((char *)rqstp->rq_res.head[0].iov_base + rqstp->rq_res.head[0].iov_len); in nfs4_callback_compound()
963 xdr_init_encode(&xdr_out, &rqstp->rq_res, p); in nfs4_callback_compound()