Home
last modified time | relevance | path

Searched refs:value_len (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.1.9/fs/9p/
Dxattr.c92 const void *value, size_t value_len, int flags) in v9fs_xattr_set() argument
100 ret = v9fs_fid_xattr_set(fid, name, value, value_len, flags); in v9fs_xattr_set()
106 const void *value, size_t value_len, int flags) in v9fs_fid_xattr_set() argument
108 struct kvec kvec = {.iov_base = (void *)value, .iov_len = value_len}; in v9fs_fid_xattr_set()
112 iov_iter_kvec(&from, WRITE, &kvec, 1, value_len); in v9fs_fid_xattr_set()
115 name, value_len, flags); in v9fs_fid_xattr_set()
125 retval = p9_client_xattrcreate(fid, name, value_len, flags); in v9fs_fid_xattr_set()
Dxattr.h22 const void *value, size_t value_len, int flags);
24 const void *value, size_t value_len, int flags);
/linux-6.1.9/drivers/firmware/google/
Dvpd_decode.c65 u32 value_len; in vpd_decode_string() local
85 &value_len) != VPD_OK) in vpd_decode_string()
89 return callback(key, key_len, value, value_len, in vpd_decode_string()
Dvpd_decode.h29 const u8 *value, u32 value_len,
Dvpd.c96 const u8 *value, u32 value_len, in vpd_section_attrib_add() argument
123 info->bin_attr.size = value_len; in vpd_section_attrib_add()
/linux-6.1.9/fs/ext4/
Dxattr.c909 struct buffer_head *block_bh, size_t value_len, in __ext4_xattr_set_credits() argument
948 blocks = (value_len + sb->s_blocksize - 1) >> sb->s_blocksize_bits; in __ext4_xattr_set_credits()
1467 size_t value_len, u32 hash) in ext4_xattr_inode_cache_find() argument
1484 ea_data = kvmalloc(value_len, GFP_KERNEL); in ext4_xattr_inode_cache_find()
1496 i_size_read(ea_inode) == value_len && in ext4_xattr_inode_cache_find()
1497 !ext4_xattr_inode_read(ea_inode, ea_data, value_len) && in ext4_xattr_inode_cache_find()
1499 value_len) && in ext4_xattr_inode_cache_find()
1500 !memcmp(value, ea_data, value_len)) { in ext4_xattr_inode_cache_find()
1519 const void *value, size_t value_len, in ext4_xattr_inode_lookup_create() argument
1526 hash = ext4_xattr_inode_hash(EXT4_SB(inode->i_sb), value, value_len); in ext4_xattr_inode_lookup_create()
[all …]
Dxattr.h114 size_t value_len; member
181 extern int ext4_xattr_set_credits(struct inode *inode, size_t value_len,
184 struct buffer_head *block_bh, size_t value_len,
Dxattr_security.c47 xattr->value_len, XATTR_CREATE); in ext4_initxattrs()
/linux-6.1.9/fs/btrfs/
Dprops.c61 const char *value, size_t value_len) in btrfs_validate_prop() argument
72 if (value_len == 0) in btrfs_validate_prop()
75 return handler->validate(inode, value, value_len); in btrfs_validate_prop()
101 const char *name, const char *value, size_t value_len, in btrfs_set_prop() argument
111 if (value_len == 0) { in btrfs_set_prop()
124 value_len, flags); in btrfs_set_prop()
127 ret = handler->apply(inode, value, value_len); in btrfs_set_prop()
Dprops.h14 const char *name, const char *value, size_t value_len,
17 const char *value, size_t value_len);
/linux-6.1.9/fs/ext2/
Dxattr.c408 const void *value, size_t value_len, int flags) in ext2_xattr_set() argument
431 name_index, name, value, (long)value_len); in ext2_xattr_set()
434 value_len = 0; in ext2_xattr_set()
438 if (name_len > 255 || value_len > sb->s_blocksize) in ext2_xattr_set()
514 if (free < EXT2_XATTR_LEN(name_len) + EXT2_XATTR_SIZE(value_len)) in ext2_xattr_set()
582 if (size == EXT2_XATTR_SIZE(value_len)) { in ext2_xattr_set()
585 here->e_value_size = cpu_to_le32(value_len); in ext2_xattr_set()
588 memcpy(val, value, value_len); in ext2_xattr_set()
621 here->e_value_size = cpu_to_le32(value_len); in ext2_xattr_set()
622 if (value_len) { in ext2_xattr_set()
[all …]
Dxattr_security.c40 xattr->value_len, 0); in ext2_initxattrs()
/linux-6.1.9/fs/btrfs/tests/
Dextent-buffer-tests.c25 u32 value_len = strlen(value); in test_btrfs_split_item() local
63 btrfs_setup_item_for_insert(root, path, &key, value_len); in test_btrfs_split_item()
65 value_len); in test_btrfs_split_item()
Dinode-tests.c23 u32 value_len = sizeof(struct btrfs_file_extent_item); in insert_extent() local
26 value_len += len; in insert_extent()
36 btrfs_setup_item_for_insert(root, &path, &key, value_len); in insert_extent()
55 u32 value_len = 0; in insert_inode_item_key() local
66 btrfs_setup_item_for_insert(root, &path, &key, value_len); in insert_inode_item_key()
/linux-6.1.9/fs/jffs2/
Dxattr.c92 c->xdatum_mem_usage -= (xd->name_len + 1 + xd->value_len); in unload_xattr_datum()
161 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); in do_verify_xattr_datum()
179 xd->value_len = je16_to_cpu(rx.value_len); in do_verify_xattr_datum()
215 length = xd->name_len + 1 + xd->value_len; in do_load_xattr_datum()
247 xd->hashkey = xattr_datum_hashkey(xd->xprefix, xd->xname, xd->xvalue, xd->value_len); in do_load_xattr_datum()
299 vecs[1].iov_len = xd->name_len + 1 + xd->value_len; in save_xattr_datum()
313 rx.value_len = cpu_to_je16(xd->value_len); in save_xattr_datum()
352 && xd->value_len==xsize in create_xattr_datum()
384 xd->value_len = xsize; in create_xattr_datum()
385 xd->data_crc = crc32(0, data, xd->name_len + 1 + xd->value_len); in create_xattr_datum()
[all …]
Dsecurity.c35 xattr->value_len, 0); in jffs2_initxattrs()
Dxattr.h41 uint32_t value_len; /* length of xvalue */ member
/linux-6.1.9/fs/jfs/
Dxattr.c656 const void *value, size_t value_len, int flags) in __jfs_setxattr() argument
710 new_size += sizeof (struct jfs_ea) + namelen + 1 + value_len; in __jfs_setxattr()
749 if (value_len >= USHRT_MAX) { in __jfs_setxattr()
757 ea->valuelen = (cpu_to_le16(value_len)); in __jfs_setxattr()
760 if (value_len) in __jfs_setxattr()
761 memcpy(&ea->name[namelen + 1], value, value_len); in __jfs_setxattr()
1021 xattr->value, xattr->value_len, 0); in jfs_initxattrs()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dhealth.c239 const void *value, u32 value_len) in mlx5e_health_rsc_fmsg_binary() argument
246 for (offset = 0; offset < value_len; offset += data_size) { in mlx5e_health_rsc_fmsg_binary()
247 data_size = value_len - offset; in mlx5e_health_rsc_fmsg_binary()
/linux-6.1.9/fs/xfs/
Dxfs_attr_item.c79 unsigned int value_len) in xfs_attri_log_nameval_alloc() argument
88 name_len + value_len); in xfs_attri_log_nameval_alloc()
95 if (value_len) { in xfs_attri_log_nameval_alloc()
97 nv->value.i_len = value_len; in xfs_attri_log_nameval_alloc()
98 memcpy(nv->value.i_addr, value, value_len); in xfs_attri_log_nameval_alloc()
/linux-6.1.9/scripts/dtc/
Dfdtput.c57 char **valuep, int *value_len) in encode_value() argument
113 *value_len = upto; in encode_value()
/linux-6.1.9/fs/ocfs2/
Dxattr.h27 size_t value_len; member
Dxattr.c218 static int namevalue_size(int name_len, uint64_t value_len) in namevalue_size() argument
220 if (value_len > OCFS2_XATTR_INLINE_SIZE) in namevalue_size()
223 return OCFS2_XATTR_SIZE(name_len) + OCFS2_XATTR_SIZE(value_len); in namevalue_size()
233 u64 value_len = le64_to_cpu(xe->xe_value_size); in namevalue_size_xe() local
235 BUG_ON((value_len > OCFS2_XATTR_INLINE_SIZE) && in namevalue_size_xe()
237 return namevalue_size(xe->xe_name_len, value_len); in namevalue_size_xe()
558 static int ocfs2_xattr_entry_real_size(int name_len, size_t value_len) in ocfs2_xattr_entry_real_size() argument
560 return namevalue_size(name_len, value_len) + in ocfs2_xattr_entry_real_size()
585 si->value_len); in ocfs2_calc_security_init()
603 if (si->value_len > OCFS2_XATTR_INLINE_SIZE) { in ocfs2_calc_security_init()
[all …]
/linux-6.1.9/fs/hfsplus/
Dxattr_security.c60 xattr->value, xattr->value_len, 0); in hfsplus_initxattrs()
/linux-6.1.9/include/linux/
Dxattr.h49 size_t value_len; member

12