Lines Matching refs:size_of_block

43 					  size_t size_of_block)  in array_block_prepare_for_write()  argument
49 size_of_block - sizeof(__le32), in array_block_prepare_for_write()
55 size_t size_of_block) in array_block_check() argument
68 size_of_block - sizeof(__le32), in array_block_check()
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()
152 static int alloc_ablock(struct dm_array_info *info, size_t size_of_block, in alloc_ablock() argument
349 static int insert_new_ablock(struct dm_array_info *info, size_t size_of_block, in insert_new_ablock() argument
358 r = alloc_ablock(info, size_of_block, max_entries, &block, &ab); in insert_new_ablock()
369 static int insert_full_ablocks(struct dm_array_info *info, size_t size_of_block, in insert_full_ablocks() argument
377 r = insert_new_ablock(info, size_of_block, max_entries, begin_block, max_entries, value, root); in insert_full_ablocks()
402 size_t size_of_block; member
523 return insert_new_ablock(resize->info, resize->size_of_block, in grow_add_tail_block()
543 r = insert_full_ablocks(resize->info, resize->size_of_block, in grow_needs_more_blocks()
677 resize.size_of_block = dm_bm_block_size(dm_tm_get_bm(info->btree_info.tm)); in array_resize()
679 resize.size_of_block); in array_resize()
737 unsigned int block_index, end_block, size_of_block, max_entries; in dm_array_new() local
743 size_of_block = dm_bm_block_size(dm_tm_get_bm(info->btree_info.tm)); in dm_array_new()
744 max_entries = calc_max_entries(info->value_type.size, size_of_block); in dm_array_new()
748 r = alloc_ablock(info, size_of_block, max_entries, &block, &ab); in dm_array_new()
784 size_t size_of_block; in dm_array_get_value() local
787 size_of_block = dm_bm_block_size(dm_tm_get_bm(info->btree_info.tm)); in dm_array_get_value()
788 max_entries = calc_max_entries(info->value_type.size, size_of_block); in dm_array_get_value()
812 size_t size_of_block; in array_set_value() local
818 size_of_block = dm_bm_block_size(dm_tm_get_bm(info->btree_info.tm)); in array_set_value()
819 max_entries = calc_max_entries(info->value_type.size, size_of_block); in array_set_value()