• Home
  • Raw
  • Download

Lines Matching refs:p

69 		func, xdr->end - xdr->p);  in print_overflow_msg()
72 static __be32 *xdr_encode_empty_array(__be32 *p) in xdr_encode_empty_array() argument
74 *p++ = xdr_zero; in xdr_encode_empty_array()
75 return p; in xdr_encode_empty_array()
113 __be32 *p; in encode_nfs_cb_opnum4() local
115 p = xdr_reserve_space(xdr, 4); in encode_nfs_cb_opnum4()
116 *p = cpu_to_be32(op); in encode_nfs_cb_opnum4()
127 __be32 *p; in encode_nfs_fh4() local
130 p = xdr_reserve_space(xdr, 4 + length); in encode_nfs_fh4()
131 xdr_encode_opaque(p, &fh->fh_base, length); in encode_nfs_fh4()
144 __be32 *p; in encode_stateid4() local
146 p = xdr_reserve_space(xdr, NFS4_STATEID_SIZE); in encode_stateid4()
147 *p++ = cpu_to_be32(sid->si_generation); in encode_stateid4()
148 xdr_encode_opaque_fixed(p, &sid->si_opaque, NFS4_STATEID_OTHER_SIZE); in encode_stateid4()
159 __be32 *p; in encode_sessionid4() local
161 p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN); in encode_sessionid4()
162 xdr_encode_opaque_fixed(p, session->se_sessionid.data, in encode_sessionid4()
229 __be32 *p; in decode_cb_op_status() local
232 p = xdr_inline_decode(xdr, 4 + 4); in decode_cb_op_status()
233 if (unlikely(p == NULL)) in decode_cb_op_status()
235 op = be32_to_cpup(p++); in decode_cb_op_status()
238 *status = nfs_cb_stat_to_errno(be32_to_cpup(p)); in decode_cb_op_status()
262 __be32 * p; in encode_cb_compound4args() local
264 p = xdr_reserve_space(xdr, 4 + 4 + 4 + 4); in encode_cb_compound4args()
265 p = xdr_encode_empty_array(p); /* empty tag */ in encode_cb_compound4args()
266 *p++ = cpu_to_be32(hdr->minorversion); in encode_cb_compound4args()
267 *p++ = cpu_to_be32(hdr->ident); in encode_cb_compound4args()
269 hdr->nops_p = p; in encode_cb_compound4args()
270 *p = cpu_to_be32(hdr->nops); /* argarray element count */ in encode_cb_compound4args()
295 __be32 *p; in decode_cb_compound4res() local
297 p = xdr_inline_decode(xdr, 4 + 4); in decode_cb_compound4res()
298 if (unlikely(p == NULL)) in decode_cb_compound4res()
300 hdr->status = be32_to_cpup(p++); in decode_cb_compound4res()
302 length = be32_to_cpup(p++); in decode_cb_compound4res()
303 p = xdr_inline_decode(xdr, length + 4); in decode_cb_compound4res()
304 if (unlikely(p == NULL)) in decode_cb_compound4res()
306 p += XDR_QUADLEN(length); in decode_cb_compound4res()
307 hdr->nops = be32_to_cpup(p); in decode_cb_compound4res()
327 __be32 *p; in encode_cb_recall4args() local
332 p = xdr_reserve_space(xdr, 4); in encode_cb_recall4args()
333 *p++ = xdr_zero; /* truncate */ in encode_cb_recall4args()
357 __be32 *p; in encode_cb_sequence4args() local
365 p = xdr_reserve_space(xdr, 4 + 4 + 4 + 4 + 4); in encode_cb_sequence4args()
366 *p++ = cpu_to_be32(session->se_cb_seq_nr); /* csa_sequenceid */ in encode_cb_sequence4args()
367 *p++ = xdr_zero; /* csa_slotid */ in encode_cb_sequence4args()
368 *p++ = xdr_zero; /* csa_highest_slotid */ in encode_cb_sequence4args()
369 *p++ = xdr_zero; /* csa_cachethis */ in encode_cb_sequence4args()
370 xdr_encode_empty_array(p); /* csa_referring_call_lists */ in encode_cb_sequence4args()
401 __be32 *p; in decode_cb_sequence4resok() local
408 p = xdr_inline_decode(xdr, NFS4_MAX_SESSIONID_LEN + 4 + 4 + 4 + 4); in decode_cb_sequence4resok()
409 if (unlikely(p == NULL)) in decode_cb_sequence4resok()
412 if (memcmp(p, session->se_sessionid.data, NFS4_MAX_SESSIONID_LEN)) { in decode_cb_sequence4resok()
416 p += XDR_QUADLEN(NFS4_MAX_SESSIONID_LEN); in decode_cb_sequence4resok()
418 dummy = be32_to_cpup(p++); in decode_cb_sequence4resok()
424 dummy = be32_to_cpup(p++); in decode_cb_sequence4resok()
566 __be32 *p; in encode_cb_layout4args() local
570 p = xdr_reserve_space(xdr, 5 * 4); in encode_cb_layout4args()
571 *p++ = cpu_to_be32(OP_CB_LAYOUTRECALL); in encode_cb_layout4args()
572 *p++ = cpu_to_be32(ls->ls_layout_type); in encode_cb_layout4args()
573 *p++ = cpu_to_be32(IOMODE_ANY); in encode_cb_layout4args()
574 *p++ = cpu_to_be32(1); in encode_cb_layout4args()
575 *p = cpu_to_be32(RETURN_FILE); in encode_cb_layout4args()
579 p = xdr_reserve_space(xdr, 2 * 8); in encode_cb_layout4args()
580 p = xdr_encode_hyper(p, 0); in encode_cb_layout4args()
581 xdr_encode_hyper(p, NFS4_MAX_UINT64); in encode_cb_layout4args()
629 __be32 *p; in encode_stateowner() local
631 p = xdr_reserve_space(xdr, 8 + 4 + so->so_owner.len); in encode_stateowner()
632 p = xdr_encode_opaque_fixed(p, &so->so_client->cl_clientid, 8); in encode_stateowner()
633 xdr_encode_opaque(p, so->so_owner.data, so->so_owner.len); in encode_stateowner()
649 __be32 *p; in nfs4_xdr_enc_cb_notify_lock() local
656 p = xdr_reserve_space(xdr, 4); in nfs4_xdr_enc_cb_notify_lock()
657 *p = cpu_to_be32(OP_CB_NOTIFY_LOCK); in nfs4_xdr_enc_cb_notify_lock()