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()
303 static int sm_ll_lookup_big_ref_count(struct ll_disk *ll, dm_block_t b, in sm_ll_lookup_big_ref_count()
318 int sm_ll_lookup(struct ll_disk *ll, dm_block_t b, uint32_t *result) in sm_ll_lookup()
331 int sm_ll_find_free_block(struct ll_disk *ll, dm_block_t begin, in sm_ll_find_free_block()
332 dm_block_t end, dm_block_t *result) in sm_ll_find_free_block()
336 dm_block_t i, index_begin = begin; in sm_ll_find_free_block()
337 dm_block_t index_end = dm_sector_div_up(end, ll->entries_per_block); in sm_ll_find_free_block()
380 *result = i * ll->entries_per_block + (dm_block_t) position; in sm_ll_find_free_block()
388 dm_block_t begin, dm_block_t end, dm_block_t *b) in sm_ll_find_common_free_block()
416 int sm_ll_insert(struct ll_disk *ll, dm_block_t b, in sm_ll_insert()
422 dm_block_t index = b; in sm_ll_insert()
545 static int __sm_ll_inc_overflow(struct ll_disk *ll, dm_block_t b, struct inc_context *ic) in __sm_ll_inc_overflow()
578 static int sm_ll_inc_overflow(struct ll_disk *ll, dm_block_t b, struct inc_context *ic) in sm_ll_inc_overflow()
640 static inline int sm_ll_inc_bitmap(struct ll_disk *ll, dm_block_t b, in sm_ll_inc_bitmap()
642 int32_t *nr_allocations, dm_block_t *new_b, in sm_ll_inc_bitmap()
709 static int __sm_ll_inc(struct ll_disk *ll, dm_block_t b, dm_block_t e, in __sm_ll_inc()
710 int32_t *nr_allocations, dm_block_t *new_b) in __sm_ll_inc()
715 dm_block_t index = b; in __sm_ll_inc()
728 bit_end = min(bit + (e - b), (dm_block_t) ll->entries_per_block); in __sm_ll_inc()
739 int sm_ll_inc(struct ll_disk *ll, dm_block_t b, dm_block_t e, in sm_ll_inc()
754 static int __sm_ll_del_overflow(struct ll_disk *ll, dm_block_t b, in __sm_ll_del_overflow()
762 static int __sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b, in __sm_ll_dec_overflow()
797 static int sm_ll_dec_overflow(struct ll_disk *ll, dm_block_t b, in sm_ll_dec_overflow()
833 static inline int sm_ll_dec_bitmap(struct ll_disk *ll, dm_block_t b, in sm_ll_dec_bitmap()
836 int32_t *nr_allocations, dm_block_t *new_b) in sm_ll_dec_bitmap()
892 static int __sm_ll_dec(struct ll_disk *ll, dm_block_t b, dm_block_t e, in __sm_ll_dec()
893 int32_t *nr_allocations, dm_block_t *new_b) in __sm_ll_dec()
898 dm_block_t index = b; in __sm_ll_dec()
911 bit_end = min(bit + (e - b), (dm_block_t) ll->entries_per_block); in __sm_ll_dec()
921 int sm_ll_dec(struct ll_disk *ll, dm_block_t b, dm_block_t e, in sm_ll_dec()
951 static int metadata_ll_load_ie(struct ll_disk *ll, dm_block_t index, in metadata_ll_load_ie()
958 static int metadata_ll_save_ie(struct ll_disk *ll, dm_block_t index, in metadata_ll_save_ie()
998 static dm_block_t metadata_ll_max_entries(struct ll_disk *ll) in metadata_ll_max_entries()
1095 static inline unsigned hash_index(dm_block_t index) in hash_index()
1100 static int disk_ll_load_ie(struct ll_disk *ll, dm_block_t index, in disk_ll_load_ie()
1131 static int disk_ll_save_ie(struct ll_disk *ll, dm_block_t index, in disk_ll_save_ie()
1176 static dm_block_t disk_ll_max_entries(struct ll_disk *ll) in disk_ll_max_entries()