Lines Matching refs:p

89 	__be32 *p;  in decode_fh()  local
91 p = xdr_inline_decode(xdr, 4); in decode_fh()
92 if (unlikely(p == NULL)) in decode_fh()
94 fh->size = ntohl(*p); in decode_fh()
97 p = xdr_inline_decode(xdr, fh->size); in decode_fh()
98 if (unlikely(p == NULL)) in decode_fh()
100 memcpy(&fh->data[0], p, fh->size); in decode_fh()
107 __be32 *p; in decode_bitmap() local
110 p = xdr_inline_decode(xdr, 4); in decode_bitmap()
111 if (unlikely(p == NULL)) in decode_bitmap()
113 attrlen = ntohl(*p); in decode_bitmap()
114 p = xdr_inline_decode(xdr, attrlen << 2); in decode_bitmap()
115 if (unlikely(p == NULL)) in decode_bitmap()
118 bitmap[0] = ntohl(*p++); in decode_bitmap()
120 bitmap[1] = ntohl(*p); in decode_bitmap()
126 __be32 *p; in decode_stateid() local
128 p = xdr_inline_decode(xdr, NFS4_STATEID_SIZE); in decode_stateid()
129 if (unlikely(p == NULL)) in decode_stateid()
131 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_stateid()
143 __be32 *p; in decode_compound_hdr_arg() local
149 p = xdr_inline_decode(xdr, 12); in decode_compound_hdr_arg()
150 if (unlikely(p == NULL)) in decode_compound_hdr_arg()
152 hdr->minorversion = ntohl(*p++); in decode_compound_hdr_arg()
155 hdr->cb_ident = ntohl(*p++); /* ignored by v4.1 and v4.2 */ in decode_compound_hdr_arg()
162 hdr->nops = ntohl(*p); in decode_compound_hdr_arg()
168 __be32 *p; in decode_op_hdr() local
169 p = xdr_inline_decode(xdr, 4); in decode_op_hdr()
170 if (unlikely(p == NULL)) in decode_op_hdr()
172 *op = ntohl(*p); in decode_op_hdr()
192 __be32 *p; in decode_recall_args() local
198 p = xdr_inline_decode(xdr, 4); in decode_recall_args()
199 if (unlikely(p == NULL)) in decode_recall_args()
201 args->truncate = ntohl(*p); in decode_recall_args()
216 __be32 *p; in decode_layoutrecall_args() local
220 p = xdr_inline_decode(xdr, 4 * sizeof(uint32_t)); in decode_layoutrecall_args()
221 if (unlikely(p == NULL)) in decode_layoutrecall_args()
224 args->cbl_layout_type = ntohl(*p++); in decode_layoutrecall_args()
228 iomode = ntohl(*p++); in decode_layoutrecall_args()
229 args->cbl_layoutchanged = ntohl(*p++); in decode_layoutrecall_args()
230 args->cbl_recall_type = ntohl(*p++); in decode_layoutrecall_args()
238 p = xdr_inline_decode(xdr, 2 * sizeof(uint64_t)); in decode_layoutrecall_args()
239 if (unlikely(p == NULL)) in decode_layoutrecall_args()
241 p = xdr_decode_hyper(p, &args->cbl_range.offset); in decode_layoutrecall_args()
242 p = xdr_decode_hyper(p, &args->cbl_range.length); in decode_layoutrecall_args()
245 p = xdr_inline_decode(xdr, 2 * sizeof(uint64_t)); in decode_layoutrecall_args()
246 if (unlikely(p == NULL)) in decode_layoutrecall_args()
248 p = xdr_decode_hyper(p, &args->cbl_fsid.major); in decode_layoutrecall_args()
249 p = xdr_decode_hyper(p, &args->cbl_fsid.minor); in decode_layoutrecall_args()
262 __be32 *p; in decode_devicenotify_args() local
266 p = xdr_inline_decode(xdr, sizeof(uint32_t)); in decode_devicenotify_args()
267 if (unlikely(p == NULL)) { in decode_devicenotify_args()
271 n = ntohl(*p++); in decode_devicenotify_args()
285 p = xdr_inline_decode(xdr, (4 * sizeof(uint32_t)) + in decode_devicenotify_args()
287 if (unlikely(p == NULL)) { in decode_devicenotify_args()
292 tmp = ntohl(*p++); /* bitmap size */ in decode_devicenotify_args()
297 dev->cbd_notify_type = ntohl(*p++); in decode_devicenotify_args()
304 tmp = ntohl(*p++); /* opaque size */ in decode_devicenotify_args()
312 dev->cbd_layout_type = ntohl(*p++); in decode_devicenotify_args()
313 memcpy(dev->cbd_dev_id.data, p, NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
314 p += XDR_QUADLEN(NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
317 p = xdr_inline_decode(xdr, sizeof(uint32_t)); in decode_devicenotify_args()
318 if (unlikely(p == NULL)) { in decode_devicenotify_args()
322 dev->cbd_immediate = ntohl(*p++); in decode_devicenotify_args()
347 __be32 *p; in decode_sessionid() local
349 p = xdr_inline_decode(xdr, NFS4_MAX_SESSIONID_LEN); in decode_sessionid()
350 if (unlikely(p == NULL)) in decode_sessionid()
353 memcpy(sid->data, p, NFS4_MAX_SESSIONID_LEN); in decode_sessionid()
360 __be32 *p; in decode_rc_list() local
369 p = xdr_inline_decode(xdr, sizeof(uint32_t)); in decode_rc_list()
370 if (unlikely(p == NULL)) in decode_rc_list()
373 rc_list->rcl_nrefcalls = ntohl(*p++); in decode_rc_list()
377 p = xdr_inline_decode(xdr, in decode_rc_list()
379 if (unlikely(p == NULL)) in decode_rc_list()
387 rc_list->rcl_refcalls[i].rc_sequenceid = ntohl(*p++); in decode_rc_list()
388 rc_list->rcl_refcalls[i].rc_slotid = ntohl(*p++); in decode_rc_list()
402 __be32 *p; in decode_cb_sequence_args() local
410 p = xdr_inline_decode(xdr, 5 * sizeof(uint32_t)); in decode_cb_sequence_args()
411 if (unlikely(p == NULL)) in decode_cb_sequence_args()
415 args->csa_sequenceid = ntohl(*p++); in decode_cb_sequence_args()
416 args->csa_slotid = ntohl(*p++); in decode_cb_sequence_args()
417 args->csa_highestslotid = ntohl(*p++); in decode_cb_sequence_args()
418 args->csa_cachethis = ntohl(*p++); in decode_cb_sequence_args()
419 args->csa_nrclists = ntohl(*p++); in decode_cb_sequence_args()
451 __be32 *p, status; in decode_recallany_args() local
453 p = xdr_inline_decode(xdr, 4); in decode_recallany_args()
454 if (unlikely(p == NULL)) in decode_recallany_args()
456 args->craa_objs_to_keep = ntohl(*p++); in decode_recallany_args()
470 __be32 *p; in decode_recallslot_args() local
472 p = xdr_inline_decode(xdr, 4); in decode_recallslot_args()
473 if (unlikely(p == NULL)) in decode_recallslot_args()
475 args->crsa_target_highest_slotid = ntohl(*p++); in decode_recallslot_args()
481 __be32 *p; in decode_lockowner() local
484 p = xdr_inline_decode(xdr, 12); in decode_lockowner()
485 if (unlikely(p == NULL)) in decode_lockowner()
488 p = xdr_decode_hyper(p, &args->cbnl_owner.clientid); in decode_lockowner()
489 len = be32_to_cpu(*p); in decode_lockowner()
491 p = xdr_inline_decode(xdr, len); in decode_lockowner()
492 if (unlikely(p == NULL)) in decode_lockowner()
497 p += 2; /* skip "lock id:" */ in decode_lockowner()
498 args->cbnl_owner.s_dev = be32_to_cpu(*p++); in decode_lockowner()
499 xdr_decode_hyper(p, &args->cbnl_owner.id); in decode_lockowner()
526 __be32 *p; in decode_write_response() local
529 p = xdr_inline_decode(xdr, 4); in decode_write_response()
530 if (unlikely(!p)) in decode_write_response()
532 p++; in decode_write_response()
535 p = xdr_inline_decode(xdr, 8 + 4); in decode_write_response()
536 if (unlikely(!p)) in decode_write_response()
538 p = xdr_decode_hyper(p, &args->wr_count); in decode_write_response()
539 args->wr_writeverf.committed = be32_to_cpup(p); in decode_write_response()
540 p = xdr_inline_decode(xdr, NFS4_VERIFIER_SIZE); in decode_write_response()
541 if (likely(p)) { in decode_write_response()
542 memcpy(&args->wr_writeverf.verifier.data[0], p, in decode_write_response()
555 __be32 *p; in decode_offload_args() local
569 p = xdr_inline_decode(xdr, 4); in decode_offload_args()
570 if (unlikely(!p)) in decode_offload_args()
572 args->error = ntohl(*p++); in decode_offload_args()
578 p = xdr_inline_decode(xdr, 8); in decode_offload_args()
579 if (unlikely(!p)) in decode_offload_args()
581 p = xdr_decode_hyper(p, &args->wr_count); in decode_offload_args()
604 __be32 *p; in encode_attr_change() local
608 p = xdr_reserve_space(xdr, 8); in encode_attr_change()
609 if (unlikely(!p)) in encode_attr_change()
611 p = xdr_encode_hyper(p, change); in encode_attr_change()
617 __be32 *p; in encode_attr_size() local
621 p = xdr_reserve_space(xdr, 8); in encode_attr_size()
622 if (unlikely(!p)) in encode_attr_size()
624 p = xdr_encode_hyper(p, size); in encode_attr_size()
630 __be32 *p; in encode_attr_time() local
632 p = xdr_reserve_space(xdr, 12); in encode_attr_time()
633 if (unlikely(!p)) in encode_attr_time()
635 p = xdr_encode_hyper(p, time->tv_sec); in encode_attr_time()
636 *p = htonl(time->tv_nsec); in encode_attr_time()
672 __be32 *p; in encode_op_hdr() local
674 p = xdr_reserve_space(xdr, 8); in encode_op_hdr()
675 if (unlikely(p == NULL)) in encode_op_hdr()
677 *p++ = htonl(op); in encode_op_hdr()
678 *p = res; in encode_op_hdr()
708 *savep = htonl((unsigned int)((char *)xdr->p - (char *)(savep+1))); in encode_getattr_res()
718 __be32 *p; in encode_sessionid() local
720 p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN); in encode_sessionid()
721 if (unlikely(p == NULL)) in encode_sessionid()
724 memcpy(p, sid, NFS4_MAX_SESSIONID_LEN); in encode_sessionid()
733 __be32 *p; in encode_cb_sequence_res() local
743 p = xdr_reserve_space(xdr, 4 * sizeof(uint32_t)); in encode_cb_sequence_res()
744 if (unlikely(p == NULL)) in encode_cb_sequence_res()
747 *p++ = htonl(res->csr_sequenceid); in encode_cb_sequence_res()
748 *p++ = htonl(res->csr_slotid); in encode_cb_sequence_res()
749 *p++ = htonl(res->csr_highestslotid); in encode_cb_sequence_res()
750 *p++ = htonl(res->csr_target_highestslotid); in encode_cb_sequence_res()
901 maxlen = xdr_out->end - xdr_out->p; in process_op()