Searched refs:to_cblock (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | dm-cache-block-types.h | 35 static inline dm_cblock_t to_cblock(uint32_t b) in to_cblock() function
|
H A D | dm-cache-metadata.c | 599 cmd->cache_blocks = to_cblock(le32_to_cpu(disk_super->cache_blocks)); in read_superblock_fields() 931 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_combined_dirty() 977 begin = to_cblock(from_cblock(begin) + 1); in blocks_are_clean_separate_dirty() 1364 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v1() 1368 (unsigned long long) from_cblock(to_cblock(cb))); in __load_mapping_v1() 1406 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v2() 1410 (unsigned long long) from_cblock(to_cblock(cb))); in __load_mapping_v2() 1590 r = __dirty(cmd, to_cblock(i), test_bit(i, bits)); in __set_dirty_bits_v1() 1708 value = policy_get_hint(policy, to_cblock(index)); in get_hint()
|
H A D | dm-cache-target.c | 2436 set_cache_size(cache, to_cblock(cache_size)); in cache_create() 2439 set_cache_size(cache, to_cblock(ca->cache_sectors >> cache->sectors_per_block_shift)); in cache_create() 2903 return to_cblock(size); in get_cache_dev_size() 2918 new_size = to_cblock(find_next_bit(cache->dirty_bitset, in can_resize() 3213 result->begin = to_cblock(b); in parse_cblock_range() 3214 result->end = to_cblock(e); in parse_cblock_range() 3226 result->begin = to_cblock(b); in parse_cblock_range() 3227 result->end = to_cblock(from_cblock(result->begin) + 1u); in parse_cblock_range() 3264 return to_cblock(from_cblock(b) + 1); in cblock_succ()
|
H A D | dm-cache-policy-smq.c | 997 return to_cblock(get_index(&mq->cache_alloc, e)); in infer_cblock() 1621 r = to_cblock(mq->cache_alloc.nr_allocated); in smq_residency()
|