Lines Matching refs:lrp
1629 struct nfsd4_layoutreturn *lrp) in nfsd4_decode_layoutreturn() argument
1634 lrp->lr_reclaim = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1635 lrp->lr_layout_type = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1636 lrp->lr_seg.iomode = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1637 lrp->lr_return_type = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1638 if (lrp->lr_return_type == RETURN_FILE) { in nfsd4_decode_layoutreturn()
1640 p = xdr_decode_hyper(p, &lrp->lr_seg.offset); in nfsd4_decode_layoutreturn()
1641 p = xdr_decode_hyper(p, &lrp->lr_seg.length); in nfsd4_decode_layoutreturn()
1643 status = nfsd4_decode_stateid(argp, &lrp->lr_sid); in nfsd4_decode_layoutreturn()
1648 lrp->lrf_body_len = be32_to_cpup(p++); in nfsd4_decode_layoutreturn()
1649 if (lrp->lrf_body_len > 0) { in nfsd4_decode_layoutreturn()
1650 READ_BUF(lrp->lrf_body_len); in nfsd4_decode_layoutreturn()
1651 READMEM(lrp->lrf_body, lrp->lrf_body_len); in nfsd4_decode_layoutreturn()
1654 lrp->lr_seg.offset = 0; in nfsd4_decode_layoutreturn()
1655 lrp->lr_seg.length = NFS4_MAX_UINT64; in nfsd4_decode_layoutreturn()
4181 struct nfsd4_layoutreturn *lrp) in nfsd4_encode_layoutreturn() argument
4192 *p++ = cpu_to_be32(lrp->lrs_present); in nfsd4_encode_layoutreturn()
4193 if (lrp->lrs_present) in nfsd4_encode_layoutreturn()
4194 return nfsd4_encode_stateid(xdr, &lrp->lr_sid); in nfsd4_encode_layoutreturn()