Lines Matching refs:lrp
606 struct nfsd4_layoutreturn *lrp) in nfsd4_decode_layoutreturn4() argument
610 if (xdr_stream_decode_u32(argp->xdr, &lrp->lr_return_type) < 0) in nfsd4_decode_layoutreturn4()
612 switch (lrp->lr_return_type) { in nfsd4_decode_layoutreturn4()
614 if (xdr_stream_decode_u64(argp->xdr, &lrp->lr_seg.offset) < 0) in nfsd4_decode_layoutreturn4()
616 if (xdr_stream_decode_u64(argp->xdr, &lrp->lr_seg.length) < 0) in nfsd4_decode_layoutreturn4()
618 status = nfsd4_decode_stateid4(argp, &lrp->lr_sid); in nfsd4_decode_layoutreturn4()
621 if (xdr_stream_decode_u32(argp->xdr, &lrp->lrf_body_len) < 0) in nfsd4_decode_layoutreturn4()
623 if (lrp->lrf_body_len > 0) { in nfsd4_decode_layoutreturn4()
624 lrp->lrf_body = xdr_inline_decode(argp->xdr, lrp->lrf_body_len); in nfsd4_decode_layoutreturn4()
625 if (!lrp->lrf_body) in nfsd4_decode_layoutreturn4()
631 lrp->lr_seg.offset = 0; in nfsd4_decode_layoutreturn4()
632 lrp->lr_seg.length = NFS4_MAX_UINT64; in nfsd4_decode_layoutreturn4()
1820 struct nfsd4_layoutreturn *lrp = &u->layoutreturn; in nfsd4_decode_layoutreturn() local
1821 memset(lrp, 0, sizeof(*lrp)); in nfsd4_decode_layoutreturn()
1822 if (xdr_stream_decode_bool(argp->xdr, &lrp->lr_reclaim) < 0) in nfsd4_decode_layoutreturn()
1824 if (xdr_stream_decode_u32(argp->xdr, &lrp->lr_layout_type) < 0) in nfsd4_decode_layoutreturn()
1826 if (xdr_stream_decode_u32(argp->xdr, &lrp->lr_seg.iomode) < 0) in nfsd4_decode_layoutreturn()
1828 return nfsd4_decode_layoutreturn4(argp, lrp); in nfsd4_decode_layoutreturn()
4773 struct nfsd4_layoutreturn *lrp = &u->layoutreturn; in nfsd4_encode_layoutreturn() local
4780 *p++ = cpu_to_be32(lrp->lrs_present); in nfsd4_encode_layoutreturn()
4781 if (lrp->lrs_present) in nfsd4_encode_layoutreturn()
4782 return nfsd4_encode_stateid(xdr, &lrp->lr_sid); in nfsd4_encode_layoutreturn()