• Home
  • Raw
  • Download

Lines Matching refs:bitmap

980 		const __u32 *bitmap, size_t len)  in xdr_encode_bitmap4()  argument
985 while (len > 0 && bitmap[len-1] == 0) in xdr_encode_bitmap4()
987 ret = xdr_stream_encode_uint32_array(xdr, bitmap, len); in xdr_encode_bitmap4()
993 static size_t mask_bitmap4(const __u32 *bitmap, const __u32 *mask, in mask_bitmap4() argument
999 while (len > 0 && (bitmap[len-1] == 0 || mask[len-1] == 0)) in mask_bitmap4()
1002 tmp = bitmap[i] & mask[i]; in mask_bitmap4()
1243 const __u32 *bitmap, const __u32 *mask, size_t len, in encode_getattr() argument
1252 len = mask_bitmap4(bitmap, mask, masked_bitmap, len); in encode_getattr()
1253 bitmap = masked_bitmap; in encode_getattr()
1255 xdr_encode_bitmap4(xdr, bitmap, len); in encode_getattr()
3233 decode_bitmap4(struct xdr_stream *xdr, uint32_t *bitmap, size_t sz) in decode_bitmap4() argument
3237 ret = xdr_stream_decode_uint32_array(xdr, bitmap, sz); in decode_bitmap4()
3245 static int decode_attr_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_attr_bitmap() argument
3248 ret = decode_bitmap4(xdr, bitmap, 3); in decode_attr_bitmap()
3264 static int decode_attr_supported(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *bitmask) in decode_attr_supported() argument
3266 if (likely(bitmap[0] & FATTR4_WORD0_SUPPORTED_ATTRS)) { in decode_attr_supported()
3271 bitmap[0] &= ~FATTR4_WORD0_SUPPORTED_ATTRS; in decode_attr_supported()
3279 static int decode_attr_type(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *type) in decode_attr_type() argument
3285 if (unlikely(bitmap[0] & (FATTR4_WORD0_TYPE - 1U))) in decode_attr_type()
3287 if (likely(bitmap[0] & FATTR4_WORD0_TYPE)) { in decode_attr_type()
3296 bitmap[0] &= ~FATTR4_WORD0_TYPE; in decode_attr_type()
3304 uint32_t *bitmap, uint32_t *type) in decode_attr_fh_expire_type() argument
3309 if (unlikely(bitmap[0] & (FATTR4_WORD0_FH_EXPIRE_TYPE - 1U))) in decode_attr_fh_expire_type()
3311 if (likely(bitmap[0] & FATTR4_WORD0_FH_EXPIRE_TYPE)) { in decode_attr_fh_expire_type()
3316 bitmap[0] &= ~FATTR4_WORD0_FH_EXPIRE_TYPE; in decode_attr_fh_expire_type()
3322 static int decode_attr_change(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *change) in decode_attr_change() argument
3328 if (unlikely(bitmap[0] & (FATTR4_WORD0_CHANGE - 1U))) in decode_attr_change()
3330 if (likely(bitmap[0] & FATTR4_WORD0_CHANGE)) { in decode_attr_change()
3335 bitmap[0] &= ~FATTR4_WORD0_CHANGE; in decode_attr_change()
3343 static int decode_attr_size(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *size) in decode_attr_size() argument
3349 if (unlikely(bitmap[0] & (FATTR4_WORD0_SIZE - 1U))) in decode_attr_size()
3351 if (likely(bitmap[0] & FATTR4_WORD0_SIZE)) { in decode_attr_size()
3356 bitmap[0] &= ~FATTR4_WORD0_SIZE; in decode_attr_size()
3363 static int decode_attr_link_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_link_support() argument
3368 if (unlikely(bitmap[0] & (FATTR4_WORD0_LINK_SUPPORT - 1U))) in decode_attr_link_support()
3370 if (likely(bitmap[0] & FATTR4_WORD0_LINK_SUPPORT)) { in decode_attr_link_support()
3375 bitmap[0] &= ~FATTR4_WORD0_LINK_SUPPORT; in decode_attr_link_support()
3381 static int decode_attr_symlink_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_symlink_support() argument
3386 if (unlikely(bitmap[0] & (FATTR4_WORD0_SYMLINK_SUPPORT - 1U))) in decode_attr_symlink_support()
3388 if (likely(bitmap[0] & FATTR4_WORD0_SYMLINK_SUPPORT)) { in decode_attr_symlink_support()
3393 bitmap[0] &= ~FATTR4_WORD0_SYMLINK_SUPPORT; in decode_attr_symlink_support()
3399 static int decode_attr_fsid(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fsid *fsid) in decode_attr_fsid() argument
3406 if (unlikely(bitmap[0] & (FATTR4_WORD0_FSID - 1U))) in decode_attr_fsid()
3408 if (likely(bitmap[0] & FATTR4_WORD0_FSID)) { in decode_attr_fsid()
3414 bitmap[0] &= ~FATTR4_WORD0_FSID; in decode_attr_fsid()
3423 static int decode_attr_lease_time(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_lease_time() argument
3428 if (unlikely(bitmap[0] & (FATTR4_WORD0_LEASE_TIME - 1U))) in decode_attr_lease_time()
3430 if (likely(bitmap[0] & FATTR4_WORD0_LEASE_TIME)) { in decode_attr_lease_time()
3435 bitmap[0] &= ~FATTR4_WORD0_LEASE_TIME; in decode_attr_lease_time()
3441 static int decode_attr_error(struct xdr_stream *xdr, uint32_t *bitmap, int32_t *res) in decode_attr_error() argument
3445 if (unlikely(bitmap[0] & (FATTR4_WORD0_RDATTR_ERROR - 1U))) in decode_attr_error()
3447 if (likely(bitmap[0] & FATTR4_WORD0_RDATTR_ERROR)) { in decode_attr_error()
3451 bitmap[0] &= ~FATTR4_WORD0_RDATTR_ERROR; in decode_attr_error()
3458 uint32_t *bitmap, uint32_t *bitmask) in decode_attr_exclcreat_supported() argument
3460 if (likely(bitmap[2] & FATTR4_WORD2_SUPPATTR_EXCLCREAT)) { in decode_attr_exclcreat_supported()
3465 bitmap[2] &= ~FATTR4_WORD2_SUPPATTR_EXCLCREAT; in decode_attr_exclcreat_supported()
3473 static int decode_attr_filehandle(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fh *fh) in decode_attr_filehandle() argument
3481 if (unlikely(bitmap[0] & (FATTR4_WORD0_FILEHANDLE - 1U))) in decode_attr_filehandle()
3483 if (likely(bitmap[0] & FATTR4_WORD0_FILEHANDLE)) { in decode_attr_filehandle()
3497 bitmap[0] &= ~FATTR4_WORD0_FILEHANDLE; in decode_attr_filehandle()
3502 static int decode_attr_aclsupport(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_aclsupport() argument
3507 if (unlikely(bitmap[0] & (FATTR4_WORD0_ACLSUPPORT - 1U))) in decode_attr_aclsupport()
3509 if (likely(bitmap[0] & FATTR4_WORD0_ACLSUPPORT)) { in decode_attr_aclsupport()
3514 bitmap[0] &= ~FATTR4_WORD0_ACLSUPPORT; in decode_attr_aclsupport()
3520 static int decode_attr_fileid(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *fileid) in decode_attr_fileid() argument
3526 if (unlikely(bitmap[0] & (FATTR4_WORD0_FILEID - 1U))) in decode_attr_fileid()
3528 if (likely(bitmap[0] & FATTR4_WORD0_FILEID)) { in decode_attr_fileid()
3533 bitmap[0] &= ~FATTR4_WORD0_FILEID; in decode_attr_fileid()
3540 static int decode_attr_mounted_on_fileid(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *fileid) in decode_attr_mounted_on_fileid() argument
3546 if (unlikely(bitmap[1] & (FATTR4_WORD1_MOUNTED_ON_FILEID - 1U))) in decode_attr_mounted_on_fileid()
3548 if (likely(bitmap[1] & FATTR4_WORD1_MOUNTED_ON_FILEID)) { in decode_attr_mounted_on_fileid()
3553 bitmap[1] &= ~FATTR4_WORD1_MOUNTED_ON_FILEID; in decode_attr_mounted_on_fileid()
3560 static int decode_attr_files_avail(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) in decode_attr_files_avail() argument
3566 if (unlikely(bitmap[0] & (FATTR4_WORD0_FILES_AVAIL - 1U))) in decode_attr_files_avail()
3568 if (likely(bitmap[0] & FATTR4_WORD0_FILES_AVAIL)) { in decode_attr_files_avail()
3573 bitmap[0] &= ~FATTR4_WORD0_FILES_AVAIL; in decode_attr_files_avail()
3579 static int decode_attr_files_free(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) in decode_attr_files_free() argument
3585 if (unlikely(bitmap[0] & (FATTR4_WORD0_FILES_FREE - 1U))) in decode_attr_files_free()
3587 if (likely(bitmap[0] & FATTR4_WORD0_FILES_FREE)) { in decode_attr_files_free()
3592 bitmap[0] &= ~FATTR4_WORD0_FILES_FREE; in decode_attr_files_free()
3598 static int decode_attr_files_total(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) in decode_attr_files_total() argument
3604 if (unlikely(bitmap[0] & (FATTR4_WORD0_FILES_TOTAL - 1U))) in decode_attr_files_total()
3606 if (likely(bitmap[0] & FATTR4_WORD0_FILES_TOTAL)) { in decode_attr_files_total()
3611 bitmap[0] &= ~FATTR4_WORD0_FILES_TOTAL; in decode_attr_files_total()
3659 static int decode_attr_fs_locations(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs4_fs_locati… in decode_attr_fs_locations() argument
3665 if (unlikely(bitmap[0] & (FATTR4_WORD0_FS_LOCATIONS -1U))) in decode_attr_fs_locations()
3668 if (unlikely(!(bitmap[0] & FATTR4_WORD0_FS_LOCATIONS))) in decode_attr_fs_locations()
3670 bitmap[0] &= ~FATTR4_WORD0_FS_LOCATIONS; in decode_attr_fs_locations()
3735 static int decode_attr_maxfilesize(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) in decode_attr_maxfilesize() argument
3741 if (unlikely(bitmap[0] & (FATTR4_WORD0_MAXFILESIZE - 1U))) in decode_attr_maxfilesize()
3743 if (likely(bitmap[0] & FATTR4_WORD0_MAXFILESIZE)) { in decode_attr_maxfilesize()
3748 bitmap[0] &= ~FATTR4_WORD0_MAXFILESIZE; in decode_attr_maxfilesize()
3754 static int decode_attr_maxlink(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *maxlink) in decode_attr_maxlink() argument
3760 if (unlikely(bitmap[0] & (FATTR4_WORD0_MAXLINK - 1U))) in decode_attr_maxlink()
3762 if (likely(bitmap[0] & FATTR4_WORD0_MAXLINK)) { in decode_attr_maxlink()
3767 bitmap[0] &= ~FATTR4_WORD0_MAXLINK; in decode_attr_maxlink()
3773 static int decode_attr_maxname(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *maxname) in decode_attr_maxname() argument
3779 if (unlikely(bitmap[0] & (FATTR4_WORD0_MAXNAME - 1U))) in decode_attr_maxname()
3781 if (likely(bitmap[0] & FATTR4_WORD0_MAXNAME)) { in decode_attr_maxname()
3786 bitmap[0] &= ~FATTR4_WORD0_MAXNAME; in decode_attr_maxname()
3792 static int decode_attr_maxread(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_maxread() argument
3798 if (unlikely(bitmap[0] & (FATTR4_WORD0_MAXREAD - 1U))) in decode_attr_maxread()
3800 if (likely(bitmap[0] & FATTR4_WORD0_MAXREAD)) { in decode_attr_maxread()
3809 bitmap[0] &= ~FATTR4_WORD0_MAXREAD; in decode_attr_maxread()
3815 static int decode_attr_maxwrite(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) in decode_attr_maxwrite() argument
3821 if (unlikely(bitmap[0] & (FATTR4_WORD0_MAXWRITE - 1U))) in decode_attr_maxwrite()
3823 if (likely(bitmap[0] & FATTR4_WORD0_MAXWRITE)) { in decode_attr_maxwrite()
3832 bitmap[0] &= ~FATTR4_WORD0_MAXWRITE; in decode_attr_maxwrite()
3838 static int decode_attr_mode(struct xdr_stream *xdr, uint32_t *bitmap, umode_t *mode) in decode_attr_mode() argument
3845 if (unlikely(bitmap[1] & (FATTR4_WORD1_MODE - 1U))) in decode_attr_mode()
3847 if (likely(bitmap[1] & FATTR4_WORD1_MODE)) { in decode_attr_mode()
3853 bitmap[1] &= ~FATTR4_WORD1_MODE; in decode_attr_mode()
3860 static int decode_attr_nlink(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *nlink) in decode_attr_nlink() argument
3866 if (unlikely(bitmap[1] & (FATTR4_WORD1_NUMLINKS - 1U))) in decode_attr_nlink()
3868 if (likely(bitmap[1] & FATTR4_WORD1_NUMLINKS)) { in decode_attr_nlink()
3873 bitmap[1] &= ~FATTR4_WORD1_NUMLINKS; in decode_attr_nlink()
3893 static int decode_attr_owner(struct xdr_stream *xdr, uint32_t *bitmap, in decode_attr_owner() argument
3901 if (unlikely(bitmap[1] & (FATTR4_WORD1_OWNER - 1U))) in decode_attr_owner()
3903 if (!(bitmap[1] & FATTR4_WORD1_OWNER)) in decode_attr_owner()
3905 bitmap[1] &= ~FATTR4_WORD1_OWNER; in decode_attr_owner()
3927 static int decode_attr_group(struct xdr_stream *xdr, uint32_t *bitmap, in decode_attr_group() argument
3935 if (unlikely(bitmap[1] & (FATTR4_WORD1_OWNER_GROUP - 1U))) in decode_attr_group()
3937 if (!(bitmap[1] & FATTR4_WORD1_OWNER_GROUP)) in decode_attr_group()
3939 bitmap[1] &= ~FATTR4_WORD1_OWNER_GROUP; in decode_attr_group()
3961 static int decode_attr_rdev(struct xdr_stream *xdr, uint32_t *bitmap, dev_t *rdev) in decode_attr_rdev() argument
3968 if (unlikely(bitmap[1] & (FATTR4_WORD1_RAWDEV - 1U))) in decode_attr_rdev()
3970 if (likely(bitmap[1] & FATTR4_WORD1_RAWDEV)) { in decode_attr_rdev()
3981 bitmap[1] &= ~ FATTR4_WORD1_RAWDEV; in decode_attr_rdev()
3988 static int decode_attr_space_avail(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) in decode_attr_space_avail() argument
3994 if (unlikely(bitmap[1] & (FATTR4_WORD1_SPACE_AVAIL - 1U))) in decode_attr_space_avail()
3996 if (likely(bitmap[1] & FATTR4_WORD1_SPACE_AVAIL)) { in decode_attr_space_avail()
4001 bitmap[1] &= ~FATTR4_WORD1_SPACE_AVAIL; in decode_attr_space_avail()
4007 static int decode_attr_space_free(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) in decode_attr_space_free() argument
4013 if (unlikely(bitmap[1] & (FATTR4_WORD1_SPACE_FREE - 1U))) in decode_attr_space_free()
4015 if (likely(bitmap[1] & FATTR4_WORD1_SPACE_FREE)) { in decode_attr_space_free()
4020 bitmap[1] &= ~FATTR4_WORD1_SPACE_FREE; in decode_attr_space_free()
4026 static int decode_attr_space_total(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) in decode_attr_space_total() argument
4032 if (unlikely(bitmap[1] & (FATTR4_WORD1_SPACE_TOTAL - 1U))) in decode_attr_space_total()
4034 if (likely(bitmap[1] & FATTR4_WORD1_SPACE_TOTAL)) { in decode_attr_space_total()
4039 bitmap[1] &= ~FATTR4_WORD1_SPACE_TOTAL; in decode_attr_space_total()
4045 static int decode_attr_space_used(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *used) in decode_attr_space_used() argument
4051 if (unlikely(bitmap[1] & (FATTR4_WORD1_SPACE_USED - 1U))) in decode_attr_space_used()
4053 if (likely(bitmap[1] & FATTR4_WORD1_SPACE_USED)) { in decode_attr_space_used()
4058 bitmap[1] &= ~FATTR4_WORD1_SPACE_USED; in decode_attr_space_used()
4088 static int decode_attr_time_access(struct xdr_stream *xdr, uint32_t *bitmap, struct timespec64 *tim… in decode_attr_time_access() argument
4094 if (unlikely(bitmap[1] & (FATTR4_WORD1_TIME_ACCESS - 1U))) in decode_attr_time_access()
4096 if (likely(bitmap[1] & FATTR4_WORD1_TIME_ACCESS)) { in decode_attr_time_access()
4100 bitmap[1] &= ~FATTR4_WORD1_TIME_ACCESS; in decode_attr_time_access()
4106 static int decode_attr_time_metadata(struct xdr_stream *xdr, uint32_t *bitmap, struct timespec64 *t… in decode_attr_time_metadata() argument
4112 if (unlikely(bitmap[1] & (FATTR4_WORD1_TIME_METADATA - 1U))) in decode_attr_time_metadata()
4114 if (likely(bitmap[1] & FATTR4_WORD1_TIME_METADATA)) { in decode_attr_time_metadata()
4118 bitmap[1] &= ~FATTR4_WORD1_TIME_METADATA; in decode_attr_time_metadata()
4124 static int decode_attr_time_delta(struct xdr_stream *xdr, uint32_t *bitmap, in decode_attr_time_delta() argument
4131 if (unlikely(bitmap[1] & (FATTR4_WORD1_TIME_DELTA - 1U))) in decode_attr_time_delta()
4133 if (likely(bitmap[1] & FATTR4_WORD1_TIME_DELTA)) { in decode_attr_time_delta()
4135 bitmap[1] &= ~FATTR4_WORD1_TIME_DELTA; in decode_attr_time_delta()
4142 static int decode_attr_security_label(struct xdr_stream *xdr, uint32_t *bitmap, in decode_attr_security_label() argument
4151 if (unlikely(bitmap[2] & (FATTR4_WORD2_SECURITY_LABEL - 1U))) in decode_attr_security_label()
4153 if (likely(bitmap[2] & FATTR4_WORD2_SECURITY_LABEL)) { in decode_attr_security_label()
4169 bitmap[2] &= ~FATTR4_WORD2_SECURITY_LABEL; in decode_attr_security_label()
4191 static int decode_attr_time_modify(struct xdr_stream *xdr, uint32_t *bitmap, struct timespec64 *tim… in decode_attr_time_modify() argument
4197 if (unlikely(bitmap[1] & (FATTR4_WORD1_TIME_MODIFY - 1U))) in decode_attr_time_modify()
4199 if (likely(bitmap[1] & FATTR4_WORD1_TIME_MODIFY)) { in decode_attr_time_modify()
4203 bitmap[1] &= ~FATTR4_WORD1_TIME_MODIFY; in decode_attr_time_modify()
4209 static int decode_attr_xattrsupport(struct xdr_stream *xdr, uint32_t *bitmap, in decode_attr_xattrsupport() argument
4215 if (unlikely(bitmap[2] & (FATTR4_WORD2_XATTR_SUPPORT - 1U))) in decode_attr_xattrsupport()
4217 if (likely(bitmap[2] & FATTR4_WORD2_XATTR_SUPPORT)) { in decode_attr_xattrsupport()
4222 bitmap[2] &= ~FATTR4_WORD2_XATTR_SUPPORT; in decode_attr_xattrsupport()
4376 uint32_t attrlen, bitmap[3] = {0}; in decode_server_caps() local
4381 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_server_caps()
4385 if ((status = decode_attr_supported(xdr, bitmap, res->attr_bitmask)) != 0) in decode_server_caps()
4387 if ((status = decode_attr_fh_expire_type(xdr, bitmap, in decode_server_caps()
4390 if ((status = decode_attr_link_support(xdr, bitmap, &res->has_links)) != 0) in decode_server_caps()
4392 if ((status = decode_attr_symlink_support(xdr, bitmap, &res->has_symlinks)) != 0) in decode_server_caps()
4394 if ((status = decode_attr_aclsupport(xdr, bitmap, &res->acl_bitmask)) != 0) in decode_server_caps()
4396 if ((status = decode_attr_exclcreat_supported(xdr, bitmap, in decode_server_caps()
4408 uint32_t attrlen, bitmap[3] = {0}; in decode_statfs() local
4413 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_statfs()
4418 if ((status = decode_attr_files_avail(xdr, bitmap, &fsstat->afiles)) != 0) in decode_statfs()
4420 if ((status = decode_attr_files_free(xdr, bitmap, &fsstat->ffiles)) != 0) in decode_statfs()
4422 if ((status = decode_attr_files_total(xdr, bitmap, &fsstat->tfiles)) != 0) in decode_statfs()
4426 if (unlikely(bitmap[0])) in decode_statfs()
4429 if ((status = decode_attr_space_avail(xdr, bitmap, &fsstat->abytes)) != 0) in decode_statfs()
4431 if ((status = decode_attr_space_free(xdr, bitmap, &fsstat->fbytes)) != 0) in decode_statfs()
4433 if ((status = decode_attr_space_total(xdr, bitmap, &fsstat->tbytes)) != 0) in decode_statfs()
4445 uint32_t attrlen, bitmap[3] = {0}; in decode_pathconf() local
4450 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_pathconf()
4455 if ((status = decode_attr_maxlink(xdr, bitmap, &pathconf->max_link)) != 0) in decode_pathconf()
4457 if ((status = decode_attr_maxname(xdr, bitmap, &pathconf->max_namelen)) != 0) in decode_pathconf()
4467 uint32_t *bitmap, in decode_threshold_hint() argument
4474 if (likely(bitmap[0] & hint_bit)) { in decode_threshold_hint()
4488 uint32_t bitmap[3] = {0,}, attrlen; in decode_first_threshold_item4() local
4498 status = decode_attr_bitmap(xdr, bitmap); in decode_first_threshold_item4()
4507 status = decode_threshold_hint(xdr, bitmap, &res->rd_sz, THRESHOLD_RD); in decode_first_threshold_item4()
4510 status = decode_threshold_hint(xdr, bitmap, &res->wr_sz, THRESHOLD_WR); in decode_first_threshold_item4()
4513 status = decode_threshold_hint(xdr, bitmap, &res->rd_io_sz, in decode_first_threshold_item4()
4517 status = decode_threshold_hint(xdr, bitmap, &res->wr_io_sz, in decode_first_threshold_item4()
4523 res->bm = bitmap[0]; in decode_first_threshold_item4()
4537 uint32_t *bitmap, in decode_attr_mdsthreshold() argument
4544 if (unlikely(bitmap[2] & (FATTR4_WORD2_MDSTHRESHOLD - 1U))) in decode_attr_mdsthreshold()
4546 if (bitmap[2] & FATTR4_WORD2_MDSTHRESHOLD) { in decode_attr_mdsthreshold()
4562 bitmap[2] &= ~FATTR4_WORD2_MDSTHRESHOLD; in decode_attr_mdsthreshold()
4567 static int decode_getfattr_attrs(struct xdr_stream *xdr, uint32_t *bitmap, in decode_getfattr_attrs() argument
4577 status = decode_attr_type(xdr, bitmap, &type); in decode_getfattr_attrs()
4586 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); in decode_getfattr_attrs()
4591 status = decode_attr_size(xdr, bitmap, &fattr->size); in decode_getfattr_attrs()
4596 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); in decode_getfattr_attrs()
4602 status = decode_attr_error(xdr, bitmap, &err); in decode_getfattr_attrs()
4606 status = decode_attr_filehandle(xdr, bitmap, fh); in decode_getfattr_attrs()
4610 status = decode_attr_fileid(xdr, bitmap, &fattr->fileid); in decode_getfattr_attrs()
4615 status = decode_attr_fs_locations(xdr, bitmap, fs_loc); in decode_getfattr_attrs()
4621 if (unlikely(bitmap[0])) in decode_getfattr_attrs()
4624 status = decode_attr_mode(xdr, bitmap, &fmode); in decode_getfattr_attrs()
4632 status = decode_attr_nlink(xdr, bitmap, &fattr->nlink); in decode_getfattr_attrs()
4637 status = decode_attr_owner(xdr, bitmap, server, &fattr->uid, fattr->owner_name); in decode_getfattr_attrs()
4642 status = decode_attr_group(xdr, bitmap, server, &fattr->gid, fattr->group_name); in decode_getfattr_attrs()
4647 status = decode_attr_rdev(xdr, bitmap, &fattr->rdev); in decode_getfattr_attrs()
4652 status = decode_attr_space_used(xdr, bitmap, &fattr->du.nfs3.used); in decode_getfattr_attrs()
4657 status = decode_attr_time_access(xdr, bitmap, &fattr->atime); in decode_getfattr_attrs()
4662 status = decode_attr_time_metadata(xdr, bitmap, &fattr->ctime); in decode_getfattr_attrs()
4667 status = decode_attr_time_modify(xdr, bitmap, &fattr->mtime); in decode_getfattr_attrs()
4672 status = decode_attr_mounted_on_fileid(xdr, bitmap, &fattr->mounted_on_fileid); in decode_getfattr_attrs()
4678 if (unlikely(bitmap[1])) in decode_getfattr_attrs()
4681 status = decode_attr_mdsthreshold(xdr, bitmap, fattr->mdsthreshold); in decode_getfattr_attrs()
4686 status = decode_attr_security_label(xdr, bitmap, label); in decode_getfattr_attrs()
4703 bitmap[3] = {0}; in decode_getfattr_generic() local
4710 status = decode_attr_bitmap(xdr, bitmap); in decode_getfattr_generic()
4718 status = decode_getfattr_attrs(xdr, bitmap, fattr, fh, fs_loc, in decode_getfattr_generic()
4780 static int decode_attr_pnfstype(struct xdr_stream *xdr, uint32_t *bitmap, in decode_attr_pnfstype() argument
4785 dprintk("%s: bitmap is %x\n", __func__, bitmap[1]); in decode_attr_pnfstype()
4786 if (unlikely(bitmap[1] & (FATTR4_WORD1_FS_LAYOUT_TYPES - 1U))) in decode_attr_pnfstype()
4788 if (bitmap[1] & FATTR4_WORD1_FS_LAYOUT_TYPES) { in decode_attr_pnfstype()
4790 bitmap[1] &= ~FATTR4_WORD1_FS_LAYOUT_TYPES; in decode_attr_pnfstype()
4798 static int decode_attr_layout_blksize(struct xdr_stream *xdr, uint32_t *bitmap, in decode_attr_layout_blksize() argument
4803 dprintk("%s: bitmap is %x\n", __func__, bitmap[2]); in decode_attr_layout_blksize()
4805 if (bitmap[2] & FATTR4_WORD2_LAYOUT_BLKSIZE) { in decode_attr_layout_blksize()
4810 bitmap[2] &= ~FATTR4_WORD2_LAYOUT_BLKSIZE; in decode_attr_layout_blksize()
4818 static int decode_attr_clone_blksize(struct xdr_stream *xdr, uint32_t *bitmap, in decode_attr_clone_blksize() argument
4823 dprintk("%s: bitmap is %x\n", __func__, bitmap[2]); in decode_attr_clone_blksize()
4825 if (bitmap[2] & FATTR4_WORD2_CLONE_BLKSIZE) { in decode_attr_clone_blksize()
4830 bitmap[2] &= ~FATTR4_WORD2_CLONE_BLKSIZE; in decode_attr_clone_blksize()
4838 uint32_t attrlen, bitmap[3]; in decode_fsinfo() local
4843 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_fsinfo()
4850 if ((status = decode_attr_lease_time(xdr, bitmap, &fsinfo->lease_time)) != 0) in decode_fsinfo()
4852 if ((status = decode_attr_maxfilesize(xdr, bitmap, &fsinfo->maxfilesize)) != 0) in decode_fsinfo()
4854 if ((status = decode_attr_maxread(xdr, bitmap, &fsinfo->rtmax)) != 0) in decode_fsinfo()
4857 if ((status = decode_attr_maxwrite(xdr, bitmap, &fsinfo->wtmax)) != 0) in decode_fsinfo()
4862 if (unlikely(bitmap[0])) in decode_fsinfo()
4865 status = decode_attr_time_delta(xdr, bitmap, &fsinfo->time_delta); in decode_fsinfo()
4868 status = decode_attr_pnfstype(xdr, bitmap, fsinfo); in decode_fsinfo()
4873 if (unlikely(bitmap[1])) in decode_fsinfo()
4876 status = decode_attr_layout_blksize(xdr, bitmap, &fsinfo->blksize); in decode_fsinfo()
4879 status = decode_attr_clone_blksize(xdr, bitmap, &fsinfo->clone_blksize); in decode_fsinfo()
4883 status = decode_attr_xattrsupport(xdr, bitmap, in decode_fsinfo()
5310 bitmap[3] = {0}; in decode_getacl() local
5319 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_getacl()
5324 if (unlikely(bitmap[0] & (FATTR4_WORD0_ACL - 1U))) in decode_getacl()
5326 if (likely(bitmap[0] & FATTR4_WORD0_ACL)) { in decode_getacl()
7389 uint32_t bitmap[3] = {0}; in nfs4_decode_dirent() local
7424 if (decode_attr_bitmap(xdr, bitmap) < 0) in nfs4_decode_dirent()
7430 if (decode_getfattr_attrs(xdr, bitmap, entry->fattr, entry->fh, in nfs4_decode_dirent()