Lines Matching refs:lgp
1557 struct nfsd4_layoutget *lgp) in nfsd4_decode_layoutget() argument
1562 lgp->lg_signal = be32_to_cpup(p++); in nfsd4_decode_layoutget()
1563 lgp->lg_layout_type = be32_to_cpup(p++); in nfsd4_decode_layoutget()
1564 lgp->lg_seg.iomode = be32_to_cpup(p++); in nfsd4_decode_layoutget()
1565 p = xdr_decode_hyper(p, &lgp->lg_seg.offset); in nfsd4_decode_layoutget()
1566 p = xdr_decode_hyper(p, &lgp->lg_seg.length); in nfsd4_decode_layoutget()
1567 p = xdr_decode_hyper(p, &lgp->lg_minlength); in nfsd4_decode_layoutget()
1569 status = nfsd4_decode_stateid(argp, &lgp->lg_sid); in nfsd4_decode_layoutget()
1574 lgp->lg_maxcount = be32_to_cpup(p++); in nfsd4_decode_layoutget()
4111 struct nfsd4_layoutget *lgp) in nfsd4_encode_layoutget() argument
4115 nfsd4_layout_ops[lgp->lg_layout_type]; in nfsd4_encode_layoutget()
4128 *p++ = cpu_to_be32(lgp->lg_sid.si_generation); in nfsd4_encode_layoutget()
4129 p = xdr_encode_opaque_fixed(p, &lgp->lg_sid.si_opaque, in nfsd4_encode_layoutget()
4133 p = xdr_encode_hyper(p, lgp->lg_seg.offset); in nfsd4_encode_layoutget()
4134 p = xdr_encode_hyper(p, lgp->lg_seg.length); in nfsd4_encode_layoutget()
4135 *p++ = cpu_to_be32(lgp->lg_seg.iomode); in nfsd4_encode_layoutget()
4136 *p++ = cpu_to_be32(lgp->lg_layout_type); in nfsd4_encode_layoutget()
4138 nfserr = ops->encode_layoutget(xdr, lgp); in nfsd4_encode_layoutget()
4140 kfree(lgp->lg_content); in nfsd4_encode_layoutget()