| /fs/nfsd/ |
| A D | nfs4xdr_gen.c | 152 return xdrgen_encode_hyper(xdr, value); in xdrgen_encode_int64_t() 158 return xdrgen_encode_unsigned_int(xdr, value); in xdrgen_encode_uint32_t() 166 for (u32 i = 0; i < value.count; i++) in xdrgen_encode_bitmap4() 167 if (!xdrgen_encode_uint32_t(xdr, value.element[i])) in xdrgen_encode_bitmap4() 175 if (!xdrgen_encode_int64_t(xdr, value->seconds)) in xdrgen_encode_nfstime4() 177 if (!xdrgen_encode_uint32_t(xdr, value->nseconds)) in xdrgen_encode_nfstime4() 185 return xdrgen_encode_bool(xdr, value); in xdrgen_encode_fattr4_offline() 207 return xdr_stream_encode_u32(xdr, value) == XDR_UNIT; in xdrgen_encode_open_args_share_access4() 237 return xdrgen_encode_open_arguments4(xdr, value); in xdrgen_encode_fattr4_open_arguments() 243 return xdrgen_encode_nfstime4(xdr, value); in xdrgen_encode_fattr4_time_deleg_access() [all …]
|
| /fs/ext2/ |
| A D | acl.c | 26 if (!value) in ext2_acl_from_disk() 33 value = (char *)value + sizeof(ext2_acl_header); in ext2_acl_from_disk() 54 value = (char *)value + in ext2_acl_from_disk() 59 value = (char *)value + sizeof(ext2_acl_entry); in ext2_acl_from_disk() 67 value = (char *)value + sizeof(ext2_acl_entry); in ext2_acl_from_disk() 79 if (value != end) in ext2_acl_from_disk() 147 char *value = NULL; in ext2_get_acl() local 167 if (!value) in ext2_get_acl() 177 kfree(value); in ext2_get_acl() 186 void *value = NULL; in __ext2_set_acl() local [all …]
|
| /fs/ext4/ |
| A D | acl.c | 24 if (!value) in ext4_acl_from_disk() 31 value = (char *)value + sizeof(ext4_acl_header); in ext4_acl_from_disk() 53 value = (char *)value + in ext4_acl_from_disk() 58 value = (char *)value + sizeof(ext4_acl_entry); in ext4_acl_from_disk() 66 value = (char *)value + sizeof(ext4_acl_entry); in ext4_acl_from_disk() 78 if (value != end) in ext4_acl_from_disk() 148 char *value = NULL; in ext4_get_acl() local 168 if (!value) in ext4_get_acl() 178 kfree(value); in ext4_get_acl() 193 void *value = NULL; in __ext4_set_acl() local [all …]
|
| /fs/jffs2/ |
| A D | acl.c | 64 if (!value) in jffs2_acl_from_medium() 86 entry = value; in jffs2_acl_from_medium() 101 if (value > end) in jffs2_acl_from_medium() 109 if (value > end) in jffs2_acl_from_medium() 120 if (value != end) in jffs2_acl_from_medium() 179 char *value = NULL; in jffs2_get_acl() local 198 if (!value) in jffs2_get_acl() 209 kfree(value); in jffs2_get_acl() 215 char *value = NULL; in __jffs2_set_acl() local 221 if (IS_ERR(value)) in __jffs2_set_acl() [all …]
|
| A D | compr_rtime.c | 47 unsigned char value; in jffs2_rtime_compress() local 49 value = data_in[pos]; in jffs2_rtime_compress() 53 backpos = positions[value]; in jffs2_rtime_compress() 54 positions[value]=pos; in jffs2_rtime_compress() 87 unsigned char value; in jffs2_rtime_decompress() local 91 value = data_in[pos++]; in jffs2_rtime_decompress() 92 cpage_out[outpos++] = value; /* first the verbatim copied byte */ in jffs2_rtime_decompress() 94 backoffs = positions[value]; in jffs2_rtime_decompress() 96 positions[value]=outpos; in jffs2_rtime_decompress()
|
| /fs/smb/server/ |
| A D | ndr.c | 42 n->offset += sizeof(value); in ndr_write_int16() 57 n->offset += sizeof(value); in ndr_write_int32() 72 n->offset += sizeof(value); in ndr_write_int64() 86 memcpy(ndr_get_field(n), value, sz); in ndr_write_bytes() 95 sz = strlen(value) + 1; in ndr_write_string() 104 memcpy(ndr_get_field(n), value, sz); in ndr_write_string() 118 if (value) in ndr_read_string() 131 if (value) in ndr_read_bytes() 142 if (value) in ndr_read_int16() 153 if (value) in ndr_read_int32() [all …]
|
| A D | asn1.c | 163 const void *value, size_t vlen) in ksmbd_gssapi_this_mech() argument 167 oid = look_up_OID(value, vlen); in ksmbd_gssapi_this_mech() 171 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_gssapi_this_mech() 180 unsigned char tag, const void *value, in ksmbd_neg_token_init_mech_type() argument 187 oid = look_up_OID(value, vlen); in ksmbd_neg_token_init_mech_type() 199 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_neg_token_init_mech_type() 212 unsigned char tag, const void *value, in ksmbd_neg_token_alloc() argument 220 conn->mechToken = kmemdup_nul(value, vlen, KSMBD_DEFAULT_GFP); in ksmbd_neg_token_alloc() 230 unsigned char tag, const void *value, in ksmbd_neg_token_init_mech_token() argument 233 return ksmbd_neg_token_alloc(context, hdrlen, tag, value, vlen); in ksmbd_neg_token_init_mech_token() [all …]
|
| /fs/btrfs/ |
| A D | props.c | 68 const char *value, size_t value_len) in btrfs_validate_prop() argument 259 const char *value, in inode_prop_iterator() argument 286 const char *value, size_t len) in prop_compression_validate() argument 291 if (!value) in prop_compression_validate() 328 if (!strncmp("lzo", value, 3)) { in prop_compression_apply() 403 const char *value; in btrfs_inode_inherit_props() local 412 value = h->extract(parent); in btrfs_inode_inherit_props() 413 if (!value) in btrfs_inode_inherit_props() 420 ret = h->validate(inode, value, strlen(value)); in btrfs_inode_inherit_props() 441 strlen(value), 0); in btrfs_inode_inherit_props() [all …]
|
| A D | acl.c | 22 char *value = NULL; in btrfs_get_acl() local 41 value = kzalloc(size, GFP_KERNEL); in btrfs_get_acl() 42 if (!value) in btrfs_get_acl() 44 size = btrfs_getxattr(inode, name, value, size); in btrfs_get_acl() 47 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl() 52 kfree(value); in btrfs_get_acl() 62 char *value = NULL; in __btrfs_set_acl() local 86 value = kmalloc(size, GFP_KERNEL); in __btrfs_set_acl() 88 if (!value) { in __btrfs_set_acl() 101 ret = btrfs_setxattr_trans(inode, name, value, size, 0); in __btrfs_set_acl() [all …]
|
| /fs/fuse/ |
| A D | xattr.c | 35 args.in_args[0].value = &inarg; in fuse_setxattr() 37 args.in_args[1].value = name; in fuse_setxattr() 39 args.in_args[2].value = value; in fuse_setxattr() 69 args.in_args[0].value = &inarg; in fuse_getxattr() 71 args.in_args[1].value = name; in fuse_getxattr() 77 args.out_args[0].value = value; in fuse_getxattr() 80 args.out_args[0].value = &outarg; in fuse_getxattr() 133 args.in_args[0].value = &inarg; in fuse_listxattr() 139 args.out_args[0].value = list; in fuse_listxattr() 170 args.in_args[1].value = name; in fuse_removexattr() [all …]
|
| A D | acl.c | 19 void *value = NULL; in __fuse_get_acl() local 38 value = kmalloc(PAGE_SIZE, GFP_KERNEL); in __fuse_get_acl() 39 if (!value) in __fuse_get_acl() 41 size = fuse_getxattr(inode, name, value, PAGE_SIZE); in __fuse_get_acl() 43 acl = posix_acl_from_xattr(fc->user_ns, value, size); in __fuse_get_acl() 52 kfree(value); in __fuse_get_acl() 126 void *value; in fuse_set_acl() local 131 value = kmalloc(size, GFP_KERNEL); in fuse_set_acl() 132 if (!value) in fuse_set_acl() 137 kfree(value); in fuse_set_acl() [all …]
|
| /fs/orangefs/ |
| A D | acl.c | 17 char *key = NULL, *value = NULL; in orangefs_get_acl() local 40 value = kmalloc(ORANGEFS_MAX_XATTR_VALUELEN, GFP_KERNEL); in orangefs_get_acl() 41 if (!value) in orangefs_get_acl() 49 ret = orangefs_inode_getxattr(inode, key, value, in orangefs_get_acl() 53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl() 63 kfree(value); in orangefs_get_acl() 70 void *value = NULL; in __orangefs_set_acl() local 94 value = kmalloc(size, GFP_KERNEL); in __orangefs_set_acl() 95 if (!value) in __orangefs_set_acl() 105 __func__, name, value, size, acl); in __orangefs_set_acl() [all …]
|
| /fs/ntfs3/ |
| A D | xattr.c | 602 void *value; in ntfs_set_acl_ex() local 641 value = NULL; in ntfs_set_acl_ex() 646 if (!value) in ntfs_set_acl_ex() 665 kfree(value); in ntfs_set_acl_ex() 972 __le32 value; in ntfs_save_wsl_perm() local 1017 __le32 value[3]; in ntfs_get_wsl_perm() local 1020 sizeof(value[0]), &sz) == sizeof(value[0]) && in ntfs_get_wsl_perm() 1022 sizeof(value[1]), &sz) == sizeof(value[1]) && in ntfs_get_wsl_perm() 1024 sizeof(value[2]), &sz) == sizeof(value[2])) { in ntfs_get_wsl_perm() 1030 &value[0], sizeof(value), in ntfs_get_wsl_perm() [all …]
|
| /fs/ |
| A D | xattr.c | 330 if (value != orig_value) in vfs_setxattr() 331 kfree(value); in vfs_setxattr() 344 if (!value || !size) { in xattr_getsecurity() 358 memcpy(value, buffer, len); in xattr_getsecurity() 399 if (!value) in vfs_getxattr_alloc() 405 *xattr_value = value; in vfs_getxattr_alloc() 685 .cvalue = value, in path_setxattrat() 834 .value = value, in path_getxattrat() 898 value, size); in SYSCALL_DEFINE4() 1243 memcpy(new_xattr->value, value, size); in simple_xattr_alloc() [all …]
|
| A D | bpf_fs_kfuncs.c | 136 void *value; in bpf_get_dentry_xattr() local 140 value = __bpf_dynptr_data_rw(value_ptr, value_len); in bpf_get_dentry_xattr() 141 if (!value) in bpf_get_dentry_xattr() 147 return __vfs_getxattr(dentry, inode, name__str, value, value_len); in bpf_get_dentry_xattr() 208 const void *value; in bpf_set_dentry_xattr_locked() local 213 value = __bpf_dynptr_data(value_ptr, value_len); in bpf_set_dentry_xattr_locked() 214 if (!value) in bpf_set_dentry_xattr_locked() 222 value, value_len, flags); in bpf_set_dentry_xattr_locked() 344 void *value; in bpf_cgroup_read_xattr() local 351 value = __bpf_dynptr_data_rw(value_ptr, value_len); in bpf_cgroup_read_xattr() [all …]
|
| /fs/smb/client/ |
| A D | xattr.c | 48 const void *value, size_t size) in cifs_attrib_set() argument 51 __u32 *pattrib = (__u32 *)value; in cifs_attrib_set() 140 value, size); in cifs_xattr_set() 147 full_path, value, size); in cifs_xattr_set() 172 if (!value) in cifs_xattr_set() 178 memcpy(pacl, value, size); in cifs_xattr_set() 245 pattribute = (__u32 *)value; in cifs_attrib_get() 252 void *value, size_t size) in cifs_creation_time_get() argument 267 pcreatetime = (__u64 *)value; in cifs_creation_time_get() 362 if (value) { in cifs_xattr_get() [all …]
|
| /fs/jfs/ |
| A D | acl.c | 22 char *value = NULL; in jfs_get_acl() local 41 value = kmalloc(size, GFP_KERNEL); in jfs_get_acl() 42 if (!value) in jfs_get_acl() 44 size = __jfs_getxattr(inode, ea_name, value, size); in jfs_get_acl() 53 acl = posix_acl_from_xattr(&init_user_ns, value, size); in jfs_get_acl() 55 kfree(value); in jfs_get_acl() 65 char *value = NULL; in __jfs_set_acl() local 80 value = kmalloc(size, GFP_KERNEL); in __jfs_set_acl() 81 if (!value) in __jfs_set_acl() 87 rc = __jfs_setxattr(tid, inode, ea_name, value, size, 0); in __jfs_set_acl() [all …]
|
| /fs/hfs/ |
| A D | attr.c | 23 const void *value, size_t size, int flags) in __hfs_setxattr() argument 47 memcpy(&file->UsrWds.fdType, value, 4); in __hfs_setxattr() 54 memcpy(&file->UsrWds.fdCreator, value, 4); in __hfs_setxattr() 69 void *value, size_t size) in __hfs_getxattr() argument 95 memcpy(value, &file->UsrWds.fdType, 4); in __hfs_getxattr() 103 memcpy(value, &file->UsrWds.fdCreator, 4); in __hfs_getxattr() 118 const char *name, void *value, size_t size) in hfs_xattr_get() argument 120 return __hfs_getxattr(inode, handler->flags, value, size); in hfs_xattr_get() 126 const char *name, const void *value, size_t size, in hfs_xattr_set() argument 129 if (!value) in hfs_xattr_set() [all …]
|
| /fs/ceph/ |
| A D | acl.c | 39 char *value = NULL; in ceph_get_acl() local 59 value = kzalloc(size, GFP_NOFS); in ceph_get_acl() 60 if (!value) in ceph_get_acl() 62 size = __ceph_getxattr(inode, name, value, size); in ceph_get_acl() 67 kfree(value); in ceph_get_acl() 68 value = NULL; in ceph_get_acl() 82 kfree(value); in ceph_get_acl() 95 char *value = NULL; in ceph_set_acl() local 130 value = kmalloc(size, GFP_NOFS); in ceph_set_acl() 131 if (!value) { in ceph_set_acl() [all …]
|
| /fs/9p/ |
| A D | acl.c | 23 void *value = NULL; in v9fs_fid_get_acl() local 32 value = kzalloc(size, GFP_NOFS); in v9fs_fid_get_acl() 33 if (!value) in v9fs_fid_get_acl() 36 size = v9fs_fid_xattr_get(fid, name, value, size); in v9fs_fid_get_acl() 43 kfree(value); in v9fs_fid_get_acl() 159 void *value = NULL; in v9fs_iop_set_acl() local 171 value = kzalloc(size, GFP_NOFS); in v9fs_iop_set_acl() 172 if (!value) { in v9fs_iop_set_acl() 219 kfree(value); in v9fs_iop_set_acl() 220 value = NULL; in v9fs_iop_set_acl() [all …]
|
| /fs/ocfs2/ |
| A D | acl.c | 38 if (!value) in ocfs2_acl_from_xattr() 50 (struct ocfs2_acl_entry *)value; in ocfs2_acl_from_xattr() 117 char *value = NULL; in ocfs2_get_acl_nolock() local 135 if (!value) in ocfs2_get_acl_nolock() 138 "", value, retval); in ocfs2_get_acl_nolock() 148 kfree(value); in ocfs2_get_acl_nolock() 223 void *value = NULL; in ocfs2_set_acl() local 245 if (IS_ERR(value)) in ocfs2_set_acl() 246 return (int)PTR_ERR(value); in ocfs2_set_acl() 251 "", value, size, 0, in ocfs2_set_acl() [all …]
|
| /fs/ufs/ |
| A D | util.h | 52 struct ufs_super_block_third *usb3, s32 value) in ufs_set_fs_state() argument 57 usb1->fs_u0.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state() 62 usb3->fs_un2.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state() 68 usb3->fs_un2.fs_44.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state() 144 de->d_u.d_namlen = cpu_to_fs16(sb, value); in ufs_set_de_namlen() 205 inode->ui_u3.ui_44.ui_uid = cpu_to_fs32(sb, value); in ufs_set_inode_uid() 210 if (value > 0xFFFF) in ufs_set_inode_uid() 211 value = 0xFFFF; in ufs_set_inode_uid() 239 inode->ui_u3.ui_44.ui_gid = cpu_to_fs32(sb, value); in ufs_set_inode_gid() 244 if (value > 0xFFFF) in ufs_set_inode_gid() [all …]
|
| /fs/kernfs/ |
| A D | inode.c | 298 void *value, size_t size) in kernfs_xattr_get() argument 308 const void *value, size_t size, int flags) in kernfs_xattr_set() argument 327 const char *suffix, void *value, size_t size) in kernfs_vfs_xattr_get() argument 332 return kernfs_xattr_get(kn, name, value, size); in kernfs_vfs_xattr_get() 338 const char *suffix, const void *value, in kernfs_vfs_xattr_set() argument 350 const void *value, size_t size, int flags) in kernfs_vfs_user_xattr_add() argument 390 const void *value, size_t size, int flags) in kernfs_vfs_user_xattr_rm() argument 413 const char *suffix, const void *value, in kernfs_vfs_user_xattr_set() argument 427 if (value) in kernfs_vfs_user_xattr_set() 429 value, size, flags); in kernfs_vfs_user_xattr_set() [all …]
|
| /fs/f2fs/ |
| A D | acl.c | 52 const char *end = value + size; in f2fs_acl_from_disk() 172 void *value = NULL; in __f2fs_get_acl() local 182 if (!value) in __f2fs_get_acl() 184 retval = f2fs_getxattr(inode, name_index, "", value, in __f2fs_get_acl() 189 acl = f2fs_acl_from_disk(value, retval); in __f2fs_get_acl() 194 kfree(value); in __f2fs_get_acl() 233 void *value = NULL; in __f2fs_set_acl() local 260 value = f2fs_acl_to_disk(F2FS_I_SB(inode), acl, &size); in __f2fs_set_acl() 261 if (IS_ERR(value)) { in __f2fs_set_acl() 263 return PTR_ERR(value); in __f2fs_set_acl() [all …]
|
| /fs/xfs/libxfs/ |
| A D | xfs_parent.c | 75 const void *value, in xfs_parent_valuecheck() argument 78 const struct xfs_parent_rec *rec = value; in xfs_parent_valuecheck() 88 if (value == NULL) in xfs_parent_valuecheck() 126 const void *value, in xfs_parent_hashattr() argument 129 const struct xfs_parent_rec *rec = value; in xfs_parent_hashattr() 137 if (!value) { in xfs_parent_hashattr() 138 ASSERT(value != NULL); in xfs_parent_hashattr() 167 args->value = rec; in xfs_parent_da_args_init() 274 const void *value, in xfs_parent_from_attr() argument 279 const struct xfs_parent_rec *rec = value; in xfs_parent_from_attr() [all …]
|