Lines Matching refs:dm_block_t
237 int sm_ll_extend(struct ll_disk *ll, dm_block_t extra_blocks) in sm_ll_extend()
240 dm_block_t i, nr_blocks, nr_indexes; in sm_ll_extend()
280 int sm_ll_lookup_bitmap(struct ll_disk *ll, dm_block_t b, uint32_t *result) in sm_ll_lookup_bitmap()
283 dm_block_t index = b; in sm_ll_lookup_bitmap()
309 static int sm_ll_lookup_big_ref_count(struct ll_disk *ll, dm_block_t b, in sm_ll_lookup_big_ref_count()
324 int sm_ll_lookup(struct ll_disk *ll, dm_block_t b, uint32_t *result) in sm_ll_lookup()
337 int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin, in sm_ll_find_free_block()
338 dm_block_t end, dm_block_t *result) in sm_ll_find_free_block()
342 dm_block_t i, index_begin = begin; in sm_ll_find_free_block()
343 dm_block_t index_end = dm_sector_div_up(end, ll->entries_per_block); in sm_ll_find_free_block()
386 *result = i * ll->entries_per_block + (dm_block_t) position; in sm_ll_find_free_block()
394 dm_block_t begin, dm_block_t end, dm_block_t *b) in sm_ll_find_common_free_block()
422 int sm_ll_insert(struct ll_disk *ll, dm_block_t b, in sm_ll_insert()
428 dm_block_t index = b; in sm_ll_insert()
551 static int __sm_ll_inc_overflow(struct ll_disk *ll, dm_block_t b, struct inc_context *ic) in __sm_ll_inc_overflow()
584 static int sm_ll_inc_overflow(struct ll_disk *ll, dm_block_t b, struct inc_context *ic) in sm_ll_inc_overflow()
647 static inline int sm_ll_inc_bitmap(struct ll_disk *ll, dm_block_t b, in sm_ll_inc_bitmap()
649 int32_t *nr_allocations, dm_block_t *new_b, in sm_ll_inc_bitmap()
716 static int __sm_ll_inc(struct ll_disk *ll, dm_block_t b, dm_block_t e, in __sm_ll_inc()
717 int32_t *nr_allocations, dm_block_t *new_b) in __sm_ll_inc()
722 dm_block_t index = b; in __sm_ll_inc()
735 bit_end = min(bit + (e - b), (dm_block_t) ll->entries_per_block); in __sm_ll_inc()
746 int sm_ll_inc(struct ll_disk *ll, dm_block_t b, dm_block_t e, in sm_ll_inc()
762 static int __sm_ll_del_overflow(struct ll_disk *ll, dm_block_t b, in __sm_ll_del_overflow()
770 static int __sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b, in __sm_ll_dec_overflow()
804 static int sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b, in sm_ll_dec_overflow()
840 static inline int sm_ll_dec_bitmap(struct ll_disk *ll, dm_block_t b, in sm_ll_dec_bitmap()
843 int32_t *nr_allocations, dm_block_t *new_b) in sm_ll_dec_bitmap()
899 static int __sm_ll_dec(struct ll_disk *ll, dm_block_t b, dm_block_t e, in __sm_ll_dec()
900 int32_t *nr_allocations, dm_block_t *new_b) in __sm_ll_dec()
905 dm_block_t index = b; in __sm_ll_dec()
918 bit_end = min(bit + (e - b), (dm_block_t) ll->entries_per_block); in __sm_ll_dec()
928 int sm_ll_dec(struct ll_disk *ll, dm_block_t b, dm_block_t e, in sm_ll_dec()
959 static int metadata_ll_load_ie(struct ll_disk *ll, dm_block_t index, in metadata_ll_load_ie()
966 static int metadata_ll_save_ie(struct ll_disk *ll, dm_block_t index, in metadata_ll_save_ie()
1006 static dm_block_t metadata_ll_max_entries(struct ll_disk *ll) in metadata_ll_max_entries()
1103 static inline unsigned int hash_index(dm_block_t index) in hash_index()
1108 static int disk_ll_load_ie(struct ll_disk *ll, dm_block_t index, in disk_ll_load_ie()
1139 static int disk_ll_save_ie(struct ll_disk *ll, dm_block_t index, in disk_ll_save_ie()
1186 static dm_block_t disk_ll_max_entries(struct ll_disk *ll) in disk_ll_max_entries()