Lines Matching refs:from_cblock
689 return test_bit(from_cblock(b), cache->dirty_bitset); in is_dirty()
694 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) { in set_dirty()
706 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) in force_set_dirty()
713 if (test_and_clear_bit(from_cblock(cblock), cache->dirty_bitset)) { in force_clear_dirty()
815 sector_t block = from_cblock(cblock); in remap_to_cache()
1196 c_region.sector = from_cblock(mg->op->cblock) * cache->sectors_per_block; in copy()
2436 dm_block_t nr_blocks = from_cblock(size); in set_cache_size()
2581 cache->dirty_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create()
2586 clear_bitset(cache->dirty_bitset, from_cblock(cache->cache_size)); in cache_create()
2780 r = dm_cache_set_dirty_bits(cache->cmd, from_cblock(cache->cache_size), cache->dirty_bitset); in write_dirty_bitset()
2891 set_bit(from_cblock(cblock), cache->dirty_bitset); in load_mapping()
2894 clear_bit(from_cblock(cblock), cache->dirty_bitset); in load_mapping()
2996 if (from_cblock(new_size) > from_cblock(cache->cache_size)) { in can_resize()
3007 while (from_cblock(new_size) < from_cblock(cache->cache_size)) { in can_resize()
3008 new_size = to_cblock(from_cblock(new_size) + 1); in can_resize()
3012 (unsigned long long) from_cblock(new_size)); in can_resize()
3196 (unsigned long long) from_cblock(residency), in cache_status()
3197 (unsigned long long) from_cblock(cache->cache_size), in cache_status()
3296 result->end = to_cblock(from_cblock(result->begin) + 1u); in parse_cblock_range()
3306 uint64_t b = from_cblock(range->begin); in validate_cblock_range()
3307 uint64_t e = from_cblock(range->end); in validate_cblock_range()
3308 uint64_t n = from_cblock(cache->cache_size); in validate_cblock_range()
3333 return to_cblock(from_cblock(b) + 1); in cblock_succ()