Lines Matching refs:p

23 	__be32 *p;  in nfsd4_block_encode_layoutget()  local
25 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_block_encode_layoutget()
26 if (!p) in nfsd4_block_encode_layoutget()
29 *p++ = cpu_to_be32(len); in nfsd4_block_encode_layoutget()
30 *p++ = cpu_to_be32(1); /* we always return a single extent */ in nfsd4_block_encode_layoutget()
32 p = xdr_encode_opaque_fixed(p, &b->vol_id, in nfsd4_block_encode_layoutget()
34 p = xdr_encode_hyper(p, b->foff); in nfsd4_block_encode_layoutget()
35 p = xdr_encode_hyper(p, b->len); in nfsd4_block_encode_layoutget()
36 p = xdr_encode_hyper(p, b->soff); in nfsd4_block_encode_layoutget()
37 *p++ = cpu_to_be32(b->es); in nfsd4_block_encode_layoutget()
44 __be32 *p; in nfsd4_block_encode_volume() local
50 p = xdr_reserve_space(xdr, len); in nfsd4_block_encode_volume()
51 if (!p) in nfsd4_block_encode_volume()
54 *p++ = cpu_to_be32(b->type); in nfsd4_block_encode_volume()
55 *p++ = cpu_to_be32(1); /* single signature */ in nfsd4_block_encode_volume()
56 p = xdr_encode_hyper(p, b->simple.offset); in nfsd4_block_encode_volume()
57 p = xdr_encode_opaque(p, b->simple.sig, b->simple.sig_len); in nfsd4_block_encode_volume()
61 p = xdr_reserve_space(xdr, len); in nfsd4_block_encode_volume()
62 if (!p) in nfsd4_block_encode_volume()
65 *p++ = cpu_to_be32(b->type); in nfsd4_block_encode_volume()
66 *p++ = cpu_to_be32(b->scsi.code_set); in nfsd4_block_encode_volume()
67 *p++ = cpu_to_be32(b->scsi.designator_type); in nfsd4_block_encode_volume()
68 p = xdr_encode_opaque(p, b->scsi.designator, b->scsi.designator_len); in nfsd4_block_encode_volume()
69 p = xdr_encode_hyper(p, b->scsi.pr_key); in nfsd4_block_encode_volume()
84 __be32 *p; in nfsd4_block_encode_getdeviceinfo() local
95 p = xdr_reserve_space(xdr, len + sizeof(__be32)); in nfsd4_block_encode_getdeviceinfo()
96 if (!p) in nfsd4_block_encode_getdeviceinfo()
110 *p++ = cpu_to_be32(len); in nfsd4_block_encode_getdeviceinfo()
111 *p++ = cpu_to_be32(dev->nr_volumes); in nfsd4_block_encode_getdeviceinfo()
116 nfsd4_block_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp, in nfsd4_block_decode_layoutupdate() argument
132 nr_iomaps = be32_to_cpup(p++); in nfsd4_block_decode_layoutupdate()
148 memcpy(&bex.vol_id, p, sizeof(struct nfsd4_deviceid)); in nfsd4_block_decode_layoutupdate()
149 p += XDR_QUADLEN(sizeof(struct nfsd4_deviceid)); in nfsd4_block_decode_layoutupdate()
151 p = xdr_decode_hyper(p, &bex.foff); in nfsd4_block_decode_layoutupdate()
157 p = xdr_decode_hyper(p, &bex.len); in nfsd4_block_decode_layoutupdate()
163 p = xdr_decode_hyper(p, &bex.soff); in nfsd4_block_decode_layoutupdate()
169 bex.es = be32_to_cpup(p++); in nfsd4_block_decode_layoutupdate()
188 nfsd4_scsi_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp, in nfsd4_scsi_decode_layoutupdate() argument
199 nr_iomaps = be32_to_cpup(p++); in nfsd4_scsi_decode_layoutupdate()
216 p = xdr_decode_hyper(p, &val); in nfsd4_scsi_decode_layoutupdate()
223 p = xdr_decode_hyper(p, &val); in nfsd4_scsi_decode_layoutupdate()