Lines Matching refs:dm_block_t
236 int sm_ll_extend(struct ll_disk *ll, dm_block_t extra_blocks) in sm_ll_extend()
239 dm_block_t i, nr_blocks, nr_indexes; in sm_ll_extend()
279 int sm_ll_lookup_bitmap(struct ll_disk *ll, dm_block_t b, uint32_t *result) in sm_ll_lookup_bitmap()
282 dm_block_t index = b; in sm_ll_lookup_bitmap()
308 static int sm_ll_lookup_big_ref_count(struct ll_disk *ll, dm_block_t b, in sm_ll_lookup_big_ref_count()
323 int sm_ll_lookup(struct ll_disk *ll, dm_block_t b, uint32_t *result) in sm_ll_lookup()
336 int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin, in sm_ll_find_free_block()
337 dm_block_t end, dm_block_t *result) in sm_ll_find_free_block()
341 dm_block_t i, index_begin = begin; in sm_ll_find_free_block()
342 dm_block_t index_end = dm_sector_div_up(end, ll->entries_per_block); in sm_ll_find_free_block()
385 *result = i * ll->entries_per_block + (dm_block_t) position; in sm_ll_find_free_block()
393 dm_block_t begin, dm_block_t end, dm_block_t *b) in sm_ll_find_common_free_block()
421 int sm_ll_insert(struct ll_disk *ll, dm_block_t b, in sm_ll_insert()
427 dm_block_t index = b; in sm_ll_insert()
550 static int __sm_ll_inc_overflow(struct ll_disk *ll, dm_block_t b, struct inc_context *ic) in __sm_ll_inc_overflow()
583 static int sm_ll_inc_overflow(struct ll_disk *ll, dm_block_t b, struct inc_context *ic) in sm_ll_inc_overflow()
645 static inline int sm_ll_inc_bitmap(struct ll_disk *ll, dm_block_t b, in sm_ll_inc_bitmap()
647 int32_t *nr_allocations, dm_block_t *new_b, in sm_ll_inc_bitmap()
714 static int __sm_ll_inc(struct ll_disk *ll, dm_block_t b, dm_block_t e, in __sm_ll_inc()
715 int32_t *nr_allocations, dm_block_t *new_b) in __sm_ll_inc()
720 dm_block_t index = b; in __sm_ll_inc()
733 bit_end = min(bit + (e - b), (dm_block_t) ll->entries_per_block); in __sm_ll_inc()
744 int sm_ll_inc(struct ll_disk *ll, dm_block_t b, dm_block_t e, in sm_ll_inc()
759 static int __sm_ll_del_overflow(struct ll_disk *ll, dm_block_t b, in __sm_ll_del_overflow()
767 static int __sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b, in __sm_ll_dec_overflow()
802 static int sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b, in sm_ll_dec_overflow()
838 static inline int sm_ll_dec_bitmap(struct ll_disk *ll, dm_block_t b, in sm_ll_dec_bitmap()
841 int32_t *nr_allocations, dm_block_t *new_b) in sm_ll_dec_bitmap()
897 static int __sm_ll_dec(struct ll_disk *ll, dm_block_t b, dm_block_t e, in __sm_ll_dec()
898 int32_t *nr_allocations, dm_block_t *new_b) in __sm_ll_dec()
903 dm_block_t index = b; in __sm_ll_dec()
916 bit_end = min(bit + (e - b), (dm_block_t) ll->entries_per_block); in __sm_ll_dec()
926 int sm_ll_dec(struct ll_disk *ll, dm_block_t b, dm_block_t e, in sm_ll_dec()
956 static int metadata_ll_load_ie(struct ll_disk *ll, dm_block_t index, in metadata_ll_load_ie()
963 static int metadata_ll_save_ie(struct ll_disk *ll, dm_block_t index, in metadata_ll_save_ie()
1003 static dm_block_t metadata_ll_max_entries(struct ll_disk *ll) in metadata_ll_max_entries()
1100 static inline unsigned hash_index(dm_block_t index) in hash_index()
1105 static int disk_ll_load_ie(struct ll_disk *ll, dm_block_t index, in disk_ll_load_ie()
1136 static int disk_ll_save_ie(struct ll_disk *ll, dm_block_t index, in disk_ll_save_ie()
1181 static dm_block_t disk_ll_max_entries(struct ll_disk *ll) in disk_ll_max_entries()