Lines Matching refs:size_of_block
42 size_t size_of_block) in array_block_prepare_for_write() argument
48 size_of_block - sizeof(__le32), in array_block_prepare_for_write()
54 size_t size_of_block) in array_block_check() argument
67 size_of_block - sizeof(__le32), in array_block_check()
142 static uint32_t calc_max_entries(size_t value_size, size_t size_of_block) in calc_max_entries() argument
144 return (size_of_block - sizeof(struct array_block)) / value_size; in calc_max_entries()
150 static int alloc_ablock(struct dm_array_info *info, size_t size_of_block, in alloc_ablock() argument
347 static int insert_new_ablock(struct dm_array_info *info, size_t size_of_block, in insert_new_ablock() argument
356 r = alloc_ablock(info, size_of_block, max_entries, &block, &ab); in insert_new_ablock()
367 static int insert_full_ablocks(struct dm_array_info *info, size_t size_of_block, in insert_full_ablocks() argument
375 r = insert_new_ablock(info, size_of_block, max_entries, begin_block, max_entries, value, root); in insert_full_ablocks()
400 size_t size_of_block; member
520 return insert_new_ablock(resize->info, resize->size_of_block, in grow_add_tail_block()
540 r = insert_full_ablocks(resize->info, resize->size_of_block, in grow_needs_more_blocks()
673 resize.size_of_block = dm_bm_block_size(dm_tm_get_bm(info->btree_info.tm)); in array_resize()
675 resize.size_of_block); in array_resize()
731 unsigned block_index, end_block, size_of_block, max_entries; in dm_array_new() local
737 size_of_block = dm_bm_block_size(dm_tm_get_bm(info->btree_info.tm)); in dm_array_new()
738 max_entries = calc_max_entries(info->value_type.size, size_of_block); in dm_array_new()
742 r = alloc_ablock(info, size_of_block, max_entries, &block, &ab); in dm_array_new()
778 size_t size_of_block; in dm_array_get_value() local
781 size_of_block = dm_bm_block_size(dm_tm_get_bm(info->btree_info.tm)); in dm_array_get_value()
782 max_entries = calc_max_entries(info->value_type.size, size_of_block); in dm_array_get_value()
806 size_t size_of_block; in array_set_value() local
812 size_of_block = dm_bm_block_size(dm_tm_get_bm(info->btree_info.tm)); in array_set_value()
813 max_entries = calc_max_entries(info->value_type.size, size_of_block); in array_set_value()