Lines Matching refs:hdr
252 struct nfs4_cb_compound_hdr *hdr) in encode_cb_compound4args() argument
258 *p++ = cpu_to_be32(hdr->minorversion); in encode_cb_compound4args()
259 *p++ = cpu_to_be32(hdr->ident); in encode_cb_compound4args()
261 hdr->nops_p = p; in encode_cb_compound4args()
262 *p = cpu_to_be32(hdr->nops); /* argarray element count */ in encode_cb_compound4args()
268 static void encode_cb_nops(struct nfs4_cb_compound_hdr *hdr) in encode_cb_nops() argument
270 BUG_ON(hdr->nops > NFS4_MAX_BACK_CHANNEL_OPS); in encode_cb_nops()
271 *hdr->nops_p = cpu_to_be32(hdr->nops); in encode_cb_nops()
284 struct nfs4_cb_compound_hdr *hdr) in decode_cb_compound4res() argument
292 hdr->status = be32_to_cpup(p++); in decode_cb_compound4res()
299 hdr->nops = be32_to_cpup(p); in decode_cb_compound4res()
316 struct nfs4_cb_compound_hdr *hdr) in encode_cb_recall4args() argument
328 hdr->nops++; in encode_cb_recall4args()
345 struct nfs4_cb_compound_hdr *hdr) in encode_cb_sequence4args() argument
350 if (hdr->minorversion == 0) in encode_cb_sequence4args()
363 hdr->nops++; in encode_cb_sequence4args()
474 struct nfs4_cb_compound_hdr hdr = { in nfs4_xdr_enc_cb_recall() local
479 encode_cb_compound4args(xdr, &hdr); in nfs4_xdr_enc_cb_recall()
480 encode_cb_sequence4args(xdr, cb, &hdr); in nfs4_xdr_enc_cb_recall()
481 encode_cb_recall4args(xdr, dp, &hdr); in nfs4_xdr_enc_cb_recall()
482 encode_cb_nops(&hdr); in nfs4_xdr_enc_cb_recall()
509 struct nfs4_cb_compound_hdr hdr; in nfs4_xdr_dec_cb_recall() local
512 status = decode_cb_compound4res(xdr, &hdr); in nfs4_xdr_dec_cb_recall()
552 struct nfs4_cb_compound_hdr *hdr) in encode_cb_layout4args() argument
556 BUG_ON(hdr->minorversion == 0); in encode_cb_layout4args()
573 hdr->nops++; in encode_cb_layout4args()
583 struct nfs4_cb_compound_hdr hdr = { in nfs4_xdr_enc_cb_layout() local
588 encode_cb_compound4args(xdr, &hdr); in nfs4_xdr_enc_cb_layout()
589 encode_cb_sequence4args(xdr, cb, &hdr); in nfs4_xdr_enc_cb_layout()
590 encode_cb_layout4args(xdr, ls, &hdr); in nfs4_xdr_enc_cb_layout()
591 encode_cb_nops(&hdr); in nfs4_xdr_enc_cb_layout()
599 struct nfs4_cb_compound_hdr hdr; in nfs4_xdr_dec_cb_layout() local
602 status = decode_cb_compound4res(xdr, &hdr); in nfs4_xdr_dec_cb_layout()
631 struct nfs4_cb_compound_hdr hdr = { in nfs4_xdr_enc_cb_notify_lock() local
638 BUG_ON(hdr.minorversion == 0); in nfs4_xdr_enc_cb_notify_lock()
640 encode_cb_compound4args(xdr, &hdr); in nfs4_xdr_enc_cb_notify_lock()
641 encode_cb_sequence4args(xdr, cb, &hdr); in nfs4_xdr_enc_cb_notify_lock()
647 hdr.nops++; in nfs4_xdr_enc_cb_notify_lock()
649 encode_cb_nops(&hdr); in nfs4_xdr_enc_cb_notify_lock()
657 struct nfs4_cb_compound_hdr hdr; in nfs4_xdr_dec_cb_notify_lock() local
660 status = decode_cb_compound4res(xdr, &hdr); in nfs4_xdr_dec_cb_notify_lock()
716 struct nfs4_cb_compound_hdr *hdr) in encode_cb_offload4args() argument
726 hdr->nops++; in encode_cb_offload4args()
736 struct nfs4_cb_compound_hdr hdr = { in nfs4_xdr_enc_cb_offload() local
741 encode_cb_compound4args(xdr, &hdr); in nfs4_xdr_enc_cb_offload()
742 encode_cb_sequence4args(xdr, cb, &hdr); in nfs4_xdr_enc_cb_offload()
743 encode_cb_offload4args(xdr, cp->nfserr, &cp->fh, cp, &hdr); in nfs4_xdr_enc_cb_offload()
744 encode_cb_nops(&hdr); in nfs4_xdr_enc_cb_offload()
752 struct nfs4_cb_compound_hdr hdr; in nfs4_xdr_dec_cb_offload() local
755 status = decode_cb_compound4res(xdr, &hdr); in nfs4_xdr_dec_cb_offload()