Lines Matching refs:lgp
1621 struct nfsd4_layoutget *lgp)
1626 lgp->lg_signal = be32_to_cpup(p++);
1627 lgp->lg_layout_type = be32_to_cpup(p++);
1628 lgp->lg_seg.iomode = be32_to_cpup(p++);
1629 p = xdr_decode_hyper(p, &lgp->lg_seg.offset);
1630 p = xdr_decode_hyper(p, &lgp->lg_seg.length);
1631 p = xdr_decode_hyper(p, &lgp->lg_minlength);
1633 status = nfsd4_decode_stateid(argp, &lgp->lg_sid);
1638 lgp->lg_maxcount = be32_to_cpup(p++);
4450 struct nfsd4_layoutget *lgp)
4461 *p++ = cpu_to_be32(lgp->lg_sid.si_generation);
4462 p = xdr_encode_opaque_fixed(p, &lgp->lg_sid.si_opaque,
4466 p = xdr_encode_hyper(p, lgp->lg_seg.offset);
4467 p = xdr_encode_hyper(p, lgp->lg_seg.length);
4468 *p++ = cpu_to_be32(lgp->lg_seg.iomode);
4469 *p++ = cpu_to_be32(lgp->lg_layout_type);
4471 ops = nfsd4_layout_ops[lgp->lg_layout_type];
4472 return ops->encode_layoutget(xdr, lgp);