Lines Matching refs:p

64 static __be32 *xdr_encode_empty_array(__be32 *p)  in xdr_encode_empty_array()  argument
66 *p++ = xdr_zero; in xdr_encode_empty_array()
67 return p; in xdr_encode_empty_array()
117 __be32 *p; in encode_nfs_cb_opnum4() local
119 p = xdr_reserve_space(xdr, 4); in encode_nfs_cb_opnum4()
120 *p = cpu_to_be32(op); in encode_nfs_cb_opnum4()
131 __be32 *p; in encode_nfs_fh4() local
134 p = xdr_reserve_space(xdr, 4 + length); in encode_nfs_fh4()
135 xdr_encode_opaque(p, &fh->fh_raw, length); in encode_nfs_fh4()
148 __be32 *p; in encode_stateid4() local
150 p = xdr_reserve_space(xdr, NFS4_STATEID_SIZE); in encode_stateid4()
151 *p++ = cpu_to_be32(sid->si_generation); in encode_stateid4()
152 xdr_encode_opaque_fixed(p, &sid->si_opaque, NFS4_STATEID_OTHER_SIZE); in encode_stateid4()
163 __be32 *p; in encode_sessionid4() local
165 p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN); in encode_sessionid4()
166 xdr_encode_opaque_fixed(p, session->se_sessionid.data, in encode_sessionid4()
233 __be32 *p; in decode_cb_op_status() local
236 p = xdr_inline_decode(xdr, 4 + 4); in decode_cb_op_status()
237 if (unlikely(p == NULL)) in decode_cb_op_status()
239 op = be32_to_cpup(p++); in decode_cb_op_status()
242 *status = nfs_cb_stat_to_errno(be32_to_cpup(p)); in decode_cb_op_status()
265 __be32 * p; in encode_cb_compound4args() local
267 p = xdr_reserve_space(xdr, 4 + 4 + 4 + 4); in encode_cb_compound4args()
268 p = xdr_encode_empty_array(p); /* empty tag */ in encode_cb_compound4args()
269 *p++ = cpu_to_be32(hdr->minorversion); in encode_cb_compound4args()
270 *p++ = cpu_to_be32(hdr->ident); in encode_cb_compound4args()
272 hdr->nops_p = p; in encode_cb_compound4args()
273 *p = cpu_to_be32(hdr->nops); /* argarray element count */ in encode_cb_compound4args()
298 __be32 *p; in decode_cb_compound4res() local
300 p = xdr_inline_decode(xdr, 4 + 4); in decode_cb_compound4res()
301 if (unlikely(p == NULL)) in decode_cb_compound4res()
303 hdr->status = be32_to_cpup(p++); in decode_cb_compound4res()
305 length = be32_to_cpup(p++); in decode_cb_compound4res()
306 p = xdr_inline_decode(xdr, length + 4); in decode_cb_compound4res()
307 if (unlikely(p == NULL)) in decode_cb_compound4res()
309 p += XDR_QUADLEN(length); in decode_cb_compound4res()
310 hdr->nops = be32_to_cpup(p); in decode_cb_compound4res()
329 __be32 *p; in encode_cb_recall4args() local
334 p = xdr_reserve_space(xdr, 4); in encode_cb_recall4args()
335 *p++ = xdr_zero; /* truncate */ in encode_cb_recall4args()
377 __be32 *p; in encode_cb_sequence4args() local
385 p = xdr_reserve_space(xdr, 4 + 4 + 4 + 4 + 4); in encode_cb_sequence4args()
386 *p++ = cpu_to_be32(session->se_cb_seq_nr); /* csa_sequenceid */ in encode_cb_sequence4args()
387 *p++ = xdr_zero; /* csa_slotid */ in encode_cb_sequence4args()
388 *p++ = xdr_zero; /* csa_highest_slotid */ in encode_cb_sequence4args()
389 *p++ = xdr_zero; /* csa_cachethis */ in encode_cb_sequence4args()
390 xdr_encode_empty_array(p); /* csa_referring_call_lists */ in encode_cb_sequence4args()
421 __be32 *p; in decode_cb_sequence4resok() local
428 p = xdr_inline_decode(xdr, NFS4_MAX_SESSIONID_LEN + 4 + 4 + 4 + 4); in decode_cb_sequence4resok()
429 if (unlikely(p == NULL)) in decode_cb_sequence4resok()
432 if (memcmp(p, session->se_sessionid.data, NFS4_MAX_SESSIONID_LEN)) { in decode_cb_sequence4resok()
436 p += XDR_QUADLEN(NFS4_MAX_SESSIONID_LEN); in decode_cb_sequence4resok()
438 dummy = be32_to_cpup(p++); in decode_cb_sequence4resok()
444 dummy = be32_to_cpup(p++); in decode_cb_sequence4resok()
625 __be32 *p; in encode_cb_layout4args() local
629 p = xdr_reserve_space(xdr, 5 * 4); in encode_cb_layout4args()
630 *p++ = cpu_to_be32(OP_CB_LAYOUTRECALL); in encode_cb_layout4args()
631 *p++ = cpu_to_be32(ls->ls_layout_type); in encode_cb_layout4args()
632 *p++ = cpu_to_be32(IOMODE_ANY); in encode_cb_layout4args()
633 *p++ = cpu_to_be32(1); in encode_cb_layout4args()
634 *p = cpu_to_be32(RETURN_FILE); in encode_cb_layout4args()
638 p = xdr_reserve_space(xdr, 2 * 8); in encode_cb_layout4args()
639 p = xdr_encode_hyper(p, 0); in encode_cb_layout4args()
640 xdr_encode_hyper(p, NFS4_MAX_UINT64); in encode_cb_layout4args()
687 __be32 *p; in encode_stateowner() local
689 p = xdr_reserve_space(xdr, 8 + 4 + so->so_owner.len); in encode_stateowner()
690 p = xdr_encode_opaque_fixed(p, &so->so_client->cl_clientid, 8); in encode_stateowner()
691 xdr_encode_opaque(p, so->so_owner.data, so->so_owner.len); in encode_stateowner()
707 __be32 *p; in nfs4_xdr_enc_cb_notify_lock() local
714 p = xdr_reserve_space(xdr, 4); in nfs4_xdr_enc_cb_notify_lock()
715 *p = cpu_to_be32(OP_CB_NOTIFY_LOCK); in nfs4_xdr_enc_cb_notify_lock()
764 __be32 *p; in encode_offload_info4() local
766 p = xdr_reserve_space(xdr, 4); in encode_offload_info4()
767 *p = cbo->co_nfserr; in encode_offload_info4()
770 p = xdr_reserve_space(xdr, 4 + 8 + 4 + NFS4_VERIFIER_SIZE); in encode_offload_info4()
771 p = xdr_encode_empty_array(p); in encode_offload_info4()
772 p = xdr_encode_hyper(p, cbo->co_res.wr_bytes_written); in encode_offload_info4()
773 *p++ = cpu_to_be32(cbo->co_res.wr_stable_how); in encode_offload_info4()
774 p = xdr_encode_opaque_fixed(p, cbo->co_res.wr_verifier.data, in encode_offload_info4()
778 p = xdr_reserve_space(xdr, 8); in encode_offload_info4()
780 p = xdr_encode_hyper(p, 0); in encode_offload_info4()
788 __be32 *p; in encode_cb_offload4args() local
790 p = xdr_reserve_space(xdr, 4); in encode_cb_offload4args()
791 *p = cpu_to_be32(OP_CB_OFFLOAD); in encode_cb_offload4args()