• Home
  • Raw
  • Download

Lines Matching refs:p

66 static int nfs4_decode_void(struct svc_rqst *rqstp, __be32 *p)  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) in nfs4_encode_void() argument
73 return xdr_ressize_check(rqstp, p); in nfs4_encode_void()
90 __be32 *p; in decode_fh() local
92 p = xdr_inline_decode(xdr, 4); in decode_fh()
93 if (unlikely(p == NULL)) in decode_fh()
95 fh->size = ntohl(*p); in decode_fh()
98 p = xdr_inline_decode(xdr, fh->size); in decode_fh()
99 if (unlikely(p == NULL)) in decode_fh()
101 memcpy(&fh->data[0], p, fh->size); in decode_fh()
108 __be32 *p; in decode_bitmap() local
111 p = xdr_inline_decode(xdr, 4); in decode_bitmap()
112 if (unlikely(p == NULL)) in decode_bitmap()
114 attrlen = ntohl(*p); in decode_bitmap()
115 p = xdr_inline_decode(xdr, attrlen << 2); in decode_bitmap()
116 if (unlikely(p == NULL)) in decode_bitmap()
119 bitmap[0] = ntohl(*p++); in decode_bitmap()
121 bitmap[1] = ntohl(*p); in decode_bitmap()
127 __be32 *p; in decode_stateid() local
129 p = xdr_inline_decode(xdr, NFS4_STATEID_SIZE); in decode_stateid()
130 if (unlikely(p == NULL)) in decode_stateid()
132 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_stateid()
144 __be32 *p; in decode_compound_hdr_arg() local
150 p = xdr_inline_decode(xdr, 12); in decode_compound_hdr_arg()
151 if (unlikely(p == NULL)) in decode_compound_hdr_arg()
153 hdr->minorversion = ntohl(*p++); in decode_compound_hdr_arg()
156 hdr->cb_ident = ntohl(*p++); /* ignored by v4.1 and v4.2 */ in decode_compound_hdr_arg()
163 hdr->nops = ntohl(*p); in decode_compound_hdr_arg()
169 __be32 *p; in decode_op_hdr() local
170 p = xdr_inline_decode(xdr, 4); in decode_op_hdr()
171 if (unlikely(p == NULL)) in decode_op_hdr()
173 *op = ntohl(*p); in decode_op_hdr()
193 __be32 *p; in decode_recall_args() local
199 p = xdr_inline_decode(xdr, 4); in decode_recall_args()
200 if (unlikely(p == NULL)) in decode_recall_args()
202 args->truncate = ntohl(*p); in decode_recall_args()
217 __be32 *p; in decode_layoutrecall_args() local
221 p = xdr_inline_decode(xdr, 4 * sizeof(uint32_t)); in decode_layoutrecall_args()
222 if (unlikely(p == NULL)) in decode_layoutrecall_args()
225 args->cbl_layout_type = ntohl(*p++); in decode_layoutrecall_args()
229 iomode = ntohl(*p++); in decode_layoutrecall_args()
230 args->cbl_layoutchanged = ntohl(*p++); in decode_layoutrecall_args()
231 args->cbl_recall_type = ntohl(*p++); in decode_layoutrecall_args()
239 p = xdr_inline_decode(xdr, 2 * sizeof(uint64_t)); in decode_layoutrecall_args()
240 if (unlikely(p == NULL)) in decode_layoutrecall_args()
242 p = xdr_decode_hyper(p, &args->cbl_range.offset); in decode_layoutrecall_args()
243 p = xdr_decode_hyper(p, &args->cbl_range.length); in decode_layoutrecall_args()
246 p = xdr_inline_decode(xdr, 2 * sizeof(uint64_t)); in decode_layoutrecall_args()
247 if (unlikely(p == NULL)) in decode_layoutrecall_args()
249 p = xdr_decode_hyper(p, &args->cbl_fsid.major); in decode_layoutrecall_args()
250 p = xdr_decode_hyper(p, &args->cbl_fsid.minor); in decode_layoutrecall_args()
263 __be32 *p; in decode_devicenotify_args() local
267 p = xdr_inline_decode(xdr, sizeof(uint32_t)); in decode_devicenotify_args()
268 if (unlikely(p == NULL)) { in decode_devicenotify_args()
272 n = ntohl(*p++); in decode_devicenotify_args()
286 p = xdr_inline_decode(xdr, (4 * sizeof(uint32_t)) + in decode_devicenotify_args()
288 if (unlikely(p == NULL)) { in decode_devicenotify_args()
293 tmp = ntohl(*p++); /* bitmap size */ in decode_devicenotify_args()
298 dev->cbd_notify_type = ntohl(*p++); in decode_devicenotify_args()
305 tmp = ntohl(*p++); /* opaque size */ in decode_devicenotify_args()
313 dev->cbd_layout_type = ntohl(*p++); in decode_devicenotify_args()
314 memcpy(dev->cbd_dev_id.data, p, NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
315 p += XDR_QUADLEN(NFS4_DEVICEID4_SIZE); in decode_devicenotify_args()
318 p = xdr_inline_decode(xdr, sizeof(uint32_t)); in decode_devicenotify_args()
319 if (unlikely(p == NULL)) { in decode_devicenotify_args()
323 dev->cbd_immediate = ntohl(*p++); in decode_devicenotify_args()
348 __be32 *p; in decode_sessionid() local
350 p = xdr_inline_decode(xdr, NFS4_MAX_SESSIONID_LEN); in decode_sessionid()
351 if (unlikely(p == NULL)) in decode_sessionid()
354 memcpy(sid->data, p, NFS4_MAX_SESSIONID_LEN); in decode_sessionid()
361 __be32 *p; in decode_rc_list() local
370 p = xdr_inline_decode(xdr, sizeof(uint32_t)); in decode_rc_list()
371 if (unlikely(p == NULL)) in decode_rc_list()
374 rc_list->rcl_nrefcalls = ntohl(*p++); in decode_rc_list()
376 p = xdr_inline_decode(xdr, in decode_rc_list()
378 if (unlikely(p == NULL)) in decode_rc_list()
386 rc_list->rcl_refcalls[i].rc_sequenceid = ntohl(*p++); in decode_rc_list()
387 rc_list->rcl_refcalls[i].rc_slotid = ntohl(*p++); in decode_rc_list()
401 __be32 *p; in decode_cb_sequence_args() local
409 p = xdr_inline_decode(xdr, 5 * sizeof(uint32_t)); in decode_cb_sequence_args()
410 if (unlikely(p == NULL)) in decode_cb_sequence_args()
414 args->csa_sequenceid = ntohl(*p++); in decode_cb_sequence_args()
415 args->csa_slotid = ntohl(*p++); in decode_cb_sequence_args()
416 args->csa_highestslotid = ntohl(*p++); in decode_cb_sequence_args()
417 args->csa_cachethis = ntohl(*p++); in decode_cb_sequence_args()
418 args->csa_nrclists = ntohl(*p++); in decode_cb_sequence_args()
450 __be32 *p, status; in decode_recallany_args() local
452 p = xdr_inline_decode(xdr, 4); in decode_recallany_args()
453 if (unlikely(p == NULL)) in decode_recallany_args()
455 args->craa_objs_to_keep = ntohl(*p++); in decode_recallany_args()
469 __be32 *p; in decode_recallslot_args() local
471 p = xdr_inline_decode(xdr, 4); in decode_recallslot_args()
472 if (unlikely(p == NULL)) in decode_recallslot_args()
474 args->crsa_target_highest_slotid = ntohl(*p++); in decode_recallslot_args()
480 __be32 *p; in decode_lockowner() local
483 p = xdr_inline_decode(xdr, 12); in decode_lockowner()
484 if (unlikely(p == NULL)) in decode_lockowner()
487 p = xdr_decode_hyper(p, &args->cbnl_owner.clientid); in decode_lockowner()
488 len = be32_to_cpu(*p); in decode_lockowner()
490 p = xdr_inline_decode(xdr, len); in decode_lockowner()
491 if (unlikely(p == NULL)) in decode_lockowner()
496 p += 2; /* skip "lock id:" */ in decode_lockowner()
497 args->cbnl_owner.s_dev = be32_to_cpu(*p++); in decode_lockowner()
498 xdr_decode_hyper(p, &args->cbnl_owner.id); in decode_lockowner()
525 __be32 *p; in decode_write_response() local
528 p = xdr_inline_decode(xdr, 4); in decode_write_response()
529 if (unlikely(!p)) in decode_write_response()
531 p++; in decode_write_response()
534 p = xdr_inline_decode(xdr, 8 + 4); in decode_write_response()
535 if (unlikely(!p)) in decode_write_response()
537 p = xdr_decode_hyper(p, &args->wr_count); in decode_write_response()
538 args->wr_writeverf.committed = be32_to_cpup(p); in decode_write_response()
539 p = xdr_inline_decode(xdr, NFS4_VERIFIER_SIZE); in decode_write_response()
540 if (likely(p)) { in decode_write_response()
541 memcpy(&args->wr_writeverf.verifier.data[0], p, in decode_write_response()
554 __be32 *p; in decode_offload_args() local
568 p = xdr_inline_decode(xdr, 4); in decode_offload_args()
569 if (unlikely(!p)) in decode_offload_args()
571 args->error = ntohl(*p++); in decode_offload_args()
577 p = xdr_inline_decode(xdr, 8); in decode_offload_args()
578 if (unlikely(!p)) in decode_offload_args()
580 p = xdr_decode_hyper(p, &args->wr_count); in decode_offload_args()
603 __be32 *p; in encode_attr_change() local
607 p = xdr_reserve_space(xdr, 8); in encode_attr_change()
608 if (unlikely(!p)) in encode_attr_change()
610 p = xdr_encode_hyper(p, change); in encode_attr_change()
616 __be32 *p; in encode_attr_size() local
620 p = xdr_reserve_space(xdr, 8); in encode_attr_size()
621 if (unlikely(!p)) in encode_attr_size()
623 p = xdr_encode_hyper(p, size); in encode_attr_size()
629 __be32 *p; in encode_attr_time() local
631 p = xdr_reserve_space(xdr, 12); in encode_attr_time()
632 if (unlikely(!p)) in encode_attr_time()
634 p = xdr_encode_hyper(p, time->tv_sec); in encode_attr_time()
635 *p = htonl(time->tv_nsec); in encode_attr_time()
671 __be32 *p; in encode_op_hdr() local
673 p = xdr_reserve_space(xdr, 8); in encode_op_hdr()
674 if (unlikely(p == NULL)) in encode_op_hdr()
676 *p++ = htonl(op); in encode_op_hdr()
677 *p = res; in encode_op_hdr()
707 *savep = htonl((unsigned int)((char *)xdr->p - (char *)(savep+1))); in encode_getattr_res()
717 __be32 *p; in encode_sessionid() local
719 p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN); in encode_sessionid()
720 if (unlikely(p == NULL)) in encode_sessionid()
723 memcpy(p, sid, NFS4_MAX_SESSIONID_LEN); in encode_sessionid()
732 __be32 *p; in encode_cb_sequence_res() local
742 p = xdr_reserve_space(xdr, 4 * sizeof(uint32_t)); in encode_cb_sequence_res()
743 if (unlikely(p == NULL)) in encode_cb_sequence_res()
746 *p++ = htonl(res->csr_sequenceid); in encode_cb_sequence_res()
747 *p++ = htonl(res->csr_slotid); in encode_cb_sequence_res()
748 *p++ = htonl(res->csr_highestslotid); in encode_cb_sequence_res()
749 *p++ = htonl(res->csr_target_highestslotid); in encode_cb_sequence_res()
901 maxlen = xdr_out->end - xdr_out->p; in process_op()
926 __be32 *p, status; in nfs4_callback_compound() local
937 p = (__be32*)((char *)rqstp->rq_res.head[0].iov_base + rqstp->rq_res.head[0].iov_len); in nfs4_callback_compound()
938 xdr_init_encode(&xdr_out, &rqstp->rq_res, p, NULL); in nfs4_callback_compound()