Home
last modified time | relevance | path

Searched refs:value_size (Results 1 – 7 of 7) sorted by relevance

/drivers/md/persistent-data/
Ddm-btree-remove.c59 uint32_t value_size = le32_to_cpu(n->header.value_size); in node_shift() local
70 (nr_entries - shift) * value_size); in node_shift()
78 nr_entries * value_size); in node_shift()
85 uint32_t value_size = le32_to_cpu(left->header.value_size); in node_copy() local
86 BUG_ON(value_size != le32_to_cpu(right->header.value_size)); in node_copy()
96 shift * value_size); in node_copy()
104 shift * value_size); in node_copy()
115 uint32_t value_size = le32_to_cpu(n->header.value_size); in delete_at() local
125 nr_to_copy * value_size); in delete_at()
Ddm-btree-internal.h35 __le32 value_size; member
114 uint32_t value_size = le32_to_cpu(n->header.value_size); in value_ptr() local
115 return value_base(n) + (value_size * index); in value_ptr()
Ddm-btree.c80 static int insert_at(size_t value_size, struct btree_node *node, unsigned index, in insert_at() argument
97 array_insert(value_base(node), value_size, nr_entries, index, value); in insert_at()
109 static uint32_t calc_max_entries(size_t value_size, size_t block_size) in calc_max_entries() argument
112 size_t elt_size = sizeof(uint64_t) + value_size; /* key + value */ in calc_max_entries()
141 n->header.value_size = cpu_to_le32(info->value_type.size); in dm_btree_empty()
304 uint64_t *result_key, void *v, size_t value_size) in btree_lookup_raw() argument
327 memcpy(v, value_ptr(ro_node(s), i), value_size); in btree_lookup_raw()
434 rn->header.value_size = ln->header.value_size; in btree_split_sibling()
524 ln->header.value_size = pn->header.value_size; in btree_split_beneath()
529 rn->header.value_size = pn->header.value_size; in btree_split_beneath()
[all …]
Ddm-btree-spine.c43 size_t value_size; in node_check() local
62 value_size = le32_to_cpu(h->value_size); in node_check()
65 (sizeof(__le64) + value_size) * le32_to_cpu(h->max_entries) > block_size) { in node_check()
Ddm-array.c27 __le32 value_size; member
144 static uint32_t calc_max_entries(size_t value_size, size_t size_of_block) in calc_max_entries() argument
146 return (size_of_block - sizeof(struct array_block)) / value_size; in calc_max_entries()
165 (*ab)->value_size = cpu_to_le32(info->value_type.size); in alloc_ablock()
/drivers/hv/
Dhv_kvp.c363 message->body.kvp_set.data.value_size = in kvp_send_key()
366 in_msg->body.kvp_set.data.value_size, in kvp_send_key()
378 message->body.kvp_set.data.value_size = in kvp_send_key()
389 message->body.kvp_set.data.value_size = in kvp_send_key()
539 kvp_data->value_size = 2*(valuelen + 1); /* utf16 encoding */ in kvp_respond_to_host()
/drivers/gpu/drm/radeon/
Dradeon_kms.c183 uint32_t *value, value_tmp, *value_ptr, value_size; in radeon_info_ioctl() local
190 value_size = sizeof(uint32_t); in radeon_info_ioctl()
366 value_size = sizeof(uint64_t); in radeon_info_ioctl()
415 value_size = sizeof(uint32_t)*32; in radeon_info_ioctl()
421 if (DRM_COPY_TO_USER(value_ptr, (char*)value, value_size)) { in radeon_info_ioctl()