Lines Matching refs:lgp
1799 struct nfsd4_layoutget *lgp = &u->layoutget;
1802 memset(lgp, 0, sizeof(*lgp));
1803 if (xdr_stream_decode_u32(argp->xdr, &lgp->lg_signal) < 0)
1805 if (xdr_stream_decode_u32(argp->xdr, &lgp->lg_layout_type) < 0)
1807 if (xdr_stream_decode_u32(argp->xdr, &lgp->lg_seg.iomode) < 0)
1809 if (xdr_stream_decode_u64(argp->xdr, &lgp->lg_seg.offset) < 0)
1811 if (xdr_stream_decode_u64(argp->xdr, &lgp->lg_seg.length) < 0)
1813 if (xdr_stream_decode_u64(argp->xdr, &lgp->lg_minlength) < 0)
1815 status = nfsd4_decode_stateid4(argp, &lgp->lg_sid);
1818 if (xdr_stream_decode_u32(argp->xdr, &lgp->lg_maxcount) < 0)
4731 struct nfsd4_layoutget *lgp = &u->layoutget;
4741 *p++ = cpu_to_be32(lgp->lg_sid.si_generation);
4742 p = xdr_encode_opaque_fixed(p, &lgp->lg_sid.si_opaque,
4746 p = xdr_encode_hyper(p, lgp->lg_seg.offset);
4747 p = xdr_encode_hyper(p, lgp->lg_seg.length);
4748 *p++ = cpu_to_be32(lgp->lg_seg.iomode);
4749 *p++ = cpu_to_be32(lgp->lg_layout_type);
4751 ops = nfsd4_layout_ops[lgp->lg_layout_type];
4752 return ops->encode_layoutget(xdr, lgp);