Lines Matching refs:p
24 __be32 *p; in nfsd4_ff_encode_layoutget() local
47 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_ff_encode_layoutget()
48 if (!p) in nfsd4_ff_encode_layoutget()
51 *p++ = cpu_to_be32(len); in nfsd4_ff_encode_layoutget()
52 p = xdr_encode_hyper(p, 0); /* stripe unit of 1 */ in nfsd4_ff_encode_layoutget()
54 *p++ = cpu_to_be32(1); /* single mirror */ in nfsd4_ff_encode_layoutget()
55 *p++ = cpu_to_be32(1); /* single data server */ in nfsd4_ff_encode_layoutget()
57 p = xdr_encode_opaque_fixed(p, &fl->deviceid, in nfsd4_ff_encode_layoutget()
60 *p++ = cpu_to_be32(1); /* efficiency */ in nfsd4_ff_encode_layoutget()
62 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget()
63 p = xdr_encode_opaque_fixed(p, &fl->stateid.si_opaque, in nfsd4_ff_encode_layoutget()
66 *p++ = cpu_to_be32(1); /* single file handle */ in nfsd4_ff_encode_layoutget()
67 p = xdr_encode_opaque(p, fl->fh.data, fl->fh.size); in nfsd4_ff_encode_layoutget()
69 p = xdr_encode_opaque(p, uid.buf, uid.len); in nfsd4_ff_encode_layoutget()
70 p = xdr_encode_opaque(p, gid.buf, gid.len); in nfsd4_ff_encode_layoutget()
72 *p++ = cpu_to_be32(fl->flags); in nfsd4_ff_encode_layoutget()
73 *p++ = cpu_to_be32(0); /* No stats collect hint */ in nfsd4_ff_encode_layoutget()
86 __be32 *p; in nfsd4_ff_encode_getdeviceinfo() local
103 p = xdr_reserve_space(xdr, len + sizeof(__be32)); in nfsd4_ff_encode_getdeviceinfo()
104 if (!p) in nfsd4_ff_encode_getdeviceinfo()
111 *p++ = cpu_to_be32(len); in nfsd4_ff_encode_getdeviceinfo()
112 *p++ = cpu_to_be32(1); /* 1 netaddr */ in nfsd4_ff_encode_getdeviceinfo()
113 p = xdr_encode_opaque(p, da->netaddr.netid, da->netaddr.netid_len); in nfsd4_ff_encode_getdeviceinfo()
114 p = xdr_encode_opaque(p, da->netaddr.addr, da->netaddr.addr_len); in nfsd4_ff_encode_getdeviceinfo()
116 *p++ = cpu_to_be32(1); /* 1 versions */ in nfsd4_ff_encode_getdeviceinfo()
118 *p++ = cpu_to_be32(da->version); in nfsd4_ff_encode_getdeviceinfo()
119 *p++ = cpu_to_be32(da->minor_version); in nfsd4_ff_encode_getdeviceinfo()
120 *p++ = cpu_to_be32(da->rsize); in nfsd4_ff_encode_getdeviceinfo()
121 *p++ = cpu_to_be32(da->wsize); in nfsd4_ff_encode_getdeviceinfo()
122 *p++ = cpu_to_be32(da->tightly_coupled); in nfsd4_ff_encode_getdeviceinfo()