Lines Matching full:begin
168 static int sm_find_free(void *addr, unsigned begin, unsigned end, in sm_find_free() argument
171 while (begin < end) { in sm_find_free()
172 if (!(begin & (ENTRIES_PER_WORD - 1)) && in sm_find_free()
173 dm_bitmap_word_used(addr, begin)) { in sm_find_free()
174 begin += ENTRIES_PER_WORD; in sm_find_free()
178 if (!sm_lookup_bitmap(addr, begin)) { in sm_find_free()
179 *result = begin; in sm_find_free()
183 begin++; in sm_find_free()
329 int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin, in sm_ll_find_free_block() argument
334 dm_block_t i, index_begin = begin; in sm_ll_find_free_block()
340 begin = do_div(index_begin, ll->entries_per_block); in sm_ll_find_free_block()
343 for (i = index_begin; i < index_end; i++, begin = 0) { in sm_ll_find_free_block()
363 max_t(unsigned, begin, le32_to_cpu(ie_disk.none_free_before)), in sm_ll_find_free_block()