Lines Matching refs:p
330 __be32 *p; in encode_copy_commit() local
333 p = reserve_space(xdr, 12); in encode_copy_commit()
334 p = xdr_encode_hyper(p, args->dst_pos); in encode_copy_commit()
335 *p = cpu_to_be32(args->count); in encode_copy_commit()
388 __be32 *p; in encode_layoutstats() local
391 p = reserve_space(xdr, 8 + 8); in encode_layoutstats()
392 p = xdr_encode_hyper(p, devinfo->offset); in encode_layoutstats()
393 p = xdr_encode_hyper(p, devinfo->length); in encode_layoutstats()
395 p = reserve_space(xdr, 4*8 + NFS4_DEVICEID4_SIZE + 4); in encode_layoutstats()
396 p = xdr_encode_hyper(p, devinfo->read_count); in encode_layoutstats()
397 p = xdr_encode_hyper(p, devinfo->read_bytes); in encode_layoutstats()
398 p = xdr_encode_hyper(p, devinfo->write_count); in encode_layoutstats()
399 p = xdr_encode_hyper(p, devinfo->write_bytes); in encode_layoutstats()
400 p = xdr_encode_opaque_fixed(p, devinfo->dev_id.data, in encode_layoutstats()
403 *p++ = cpu_to_be32(devinfo->layout_type); in encode_layoutstats()
415 __be32 *p; in encode_clone() local
420 p = reserve_space(xdr, 3*8); in encode_clone()
421 p = xdr_encode_hyper(p, args->src_offset); in encode_clone()
422 p = xdr_encode_hyper(p, args->dst_offset); in encode_clone()
423 xdr_encode_hyper(p, args->count); in encode_clone()
429 __be32 *p; in encode_device_error() local
431 p = reserve_space(xdr, NFS4_DEVICEID4_SIZE + 2*4); in encode_device_error()
432 p = xdr_encode_opaque_fixed(p, error->dev_id.data, in encode_device_error()
434 *p++ = cpu_to_be32(error->status); in encode_device_error()
435 *p = cpu_to_be32(error->opnum); in encode_device_error()
442 __be32 *p; in encode_layouterror() local
445 p = reserve_space(xdr, 8 + 8); in encode_layouterror()
446 p = xdr_encode_hyper(p, args->offset); in encode_layouterror()
447 p = xdr_encode_hyper(p, args->length); in encode_layouterror()
449 p = reserve_space(xdr, 4); in encode_layouterror()
450 *p = cpu_to_be32(1); in encode_layouterror()
458 __be32 *p; in encode_setxattr() local
464 p = reserve_space(xdr, 4); in encode_setxattr()
465 *p = cpu_to_be32(arg->xattr_flags); in encode_setxattr()
467 p = reserve_space(xdr, 4); in encode_setxattr()
468 *p = cpu_to_be32(arg->xattr_len); in encode_setxattr()
491 __be32 *p; in encode_listxattrs() local
495 p = reserve_space(xdr, 12); in encode_listxattrs()
496 if (unlikely(!p)) in encode_listxattrs()
499 p = xdr_encode_hyper(p, arg->cookie); in encode_listxattrs()
505 *p = cpu_to_be32(arg->count + 8 + 4); in encode_listxattrs()
808 __be32 *p; in decode_write_response() local
811 p = xdr_inline_decode(xdr, 4); in decode_write_response()
812 if (unlikely(!p)) in decode_write_response()
814 count = be32_to_cpup(p); in decode_write_response()
823 p = xdr_inline_decode(xdr, 8 + 4); in decode_write_response()
824 if (unlikely(!p)) in decode_write_response()
826 p = xdr_decode_hyper(p, &res->count); in decode_write_response()
827 res->verifier.committed = be32_to_cpup(p); in decode_write_response()
836 __be32 *p; in decode_nl4_server() local
840 p = xdr_inline_decode(xdr, 4); in decode_nl4_server()
841 if (unlikely(!p)) in decode_nl4_server()
843 ns->nl4_type = be32_to_cpup(p); in decode_nl4_server()
885 __be32 *p; in decode_copy_requirements() local
887 p = xdr_inline_decode(xdr, 4 + 4); in decode_copy_requirements()
888 if (unlikely(!p)) in decode_copy_requirements()
891 res->consecutive = be32_to_cpup(p++); in decode_copy_requirements()
892 res->synchronous = be32_to_cpup(p++); in decode_copy_requirements()
925 __be32 *p; in decode_copy_notify() local
932 p = xdr_inline_decode(xdr, 12); in decode_copy_notify()
933 if (unlikely(!p)) in decode_copy_notify()
935 p = xdr_decode_hyper(p, &res->cnr_lease_time.seconds); in decode_copy_notify()
936 res->cnr_lease_time.nseconds = be32_to_cpup(p); in decode_copy_notify()
943 p = xdr_inline_decode(xdr, 4); in decode_copy_notify()
944 if (unlikely(!p)) in decode_copy_notify()
947 count = be32_to_cpup(p); in decode_copy_notify()
986 __be32 *p; in decode_read_plus_segment() local
988 p = xdr_inline_decode(xdr, 4); in decode_read_plus_segment()
989 if (!p) in decode_read_plus_segment()
991 seg->type = be32_to_cpup(p++); in decode_read_plus_segment()
993 p = xdr_inline_decode(xdr, seg->type == NFS4_CONTENT_DATA ? 12 : 16); in decode_read_plus_segment()
994 if (!p) in decode_read_plus_segment()
996 p = xdr_decode_hyper(p, &seg->offset); in decode_read_plus_segment()
1000 uint32_t len = be32_to_cpup(p); in decode_read_plus_segment()
1008 xdr_decode_hyper(p, &seg->hole.length); in decode_read_plus_segment()
1051 __be32 *p; in decode_read_plus() local
1057 p = xdr_inline_decode(xdr, 4 + 4); in decode_read_plus()
1058 if (unlikely(!p)) in decode_read_plus()
1062 res->eof = be32_to_cpup(p++); in decode_read_plus()
1063 segments = be32_to_cpup(p++); in decode_read_plus()
1090 __be32 *p; in decode_seek() local
1096 p = xdr_inline_decode(xdr, 4 + 8); in decode_seek()
1097 if (unlikely(!p)) in decode_seek()
1100 res->sr_eof = be32_to_cpup(p++); in decode_seek()
1101 p = xdr_decode_hyper(p, &res->sr_offset); in decode_seek()
1138 __be32 *p; in decode_getxattr() local
1145 p = xdr_inline_decode(xdr, 4); in decode_getxattr()
1146 if (unlikely(!p)) in decode_getxattr()
1149 len = be32_to_cpup(p); in decode_getxattr()
1188 __be32 *p; in decode_listxattrs() local
1212 p = xdr_inline_decode(xdr, 8); in decode_listxattrs()
1213 if (unlikely(!p)) in decode_listxattrs()
1216 xdr_decode_hyper(p, &res->cookie); in decode_listxattrs()
1218 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
1219 if (unlikely(!p)) in decode_listxattrs()
1225 count = be32_to_cpup(p); in decode_listxattrs()
1237 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
1238 if (unlikely(!p)) in decode_listxattrs()
1241 len = be32_to_cpup(p); in decode_listxattrs()
1247 p = xdr_inline_decode(xdr, len); in decode_listxattrs()
1248 if (unlikely(!p)) in decode_listxattrs()
1259 memcpy(buf + XATTR_USER_PREFIX_LEN, p, len); in decode_listxattrs()
1268 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
1269 if (unlikely(!p)) in decode_listxattrs()
1272 res->eof = be32_to_cpup(p); in decode_listxattrs()