Lines Matching refs:entries_per_block
224 ll->entries_per_block = (ll->block_size - sizeof(struct disk_bitmap_header)) * in sm_ll_init()
241 old_blocks = dm_sector_div_up(ll->nr_blocks, ll->entries_per_block); in sm_ll_extend()
242 blocks = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend()
244 nr_indexes = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend()
266 idx.nr_free = cpu_to_le32(ll->entries_per_block); in sm_ll_extend()
284 b = do_div(index, ll->entries_per_block); in sm_ll_lookup_bitmap()
335 dm_block_t index_end = dm_sector_div_up(end, ll->entries_per_block); in sm_ll_find_free_block()
340 begin = do_div(index_begin, ll->entries_per_block); in sm_ll_find_free_block()
341 end = do_div(end, ll->entries_per_block); in sm_ll_find_free_block()
360 bit_end = (i == index_end - 1) ? end : ll->entries_per_block; in sm_ll_find_free_block()
376 *result = i * ll->entries_per_block + (dm_block_t) position; in sm_ll_find_free_block()
422 bit = do_div(index, ll->entries_per_block); in sm_ll_mutate()