Lines Matching refs:from_cblock

615 	return test_bit(from_cblock(b), cache->dirty_bitset);  in is_dirty()
620 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) { in set_dirty()
632 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) in force_set_dirty()
639 if (test_and_clear_bit(from_cblock(cblock), cache->dirty_bitset)) { in force_clear_dirty()
733 sector_t block = from_cblock(cblock); in remap_to_cache()
1110 c_region.sector = from_cblock(mg->op->cblock) * cache->sectors_per_block; in copy()
2374 dm_block_t nr_blocks = from_cblock(size); in set_cache_size()
2503 cache->dirty_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create()
2508 clear_bitset(cache->dirty_bitset, from_cblock(cache->cache_size)); in cache_create()
2522 cache->invalid_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create()
2527 clear_bitset(cache->invalid_bitset, from_cblock(cache->cache_size)); in cache_create()
2709 r = dm_cache_set_dirty_bits(cache->cmd, from_cblock(cache->cache_size), cache->dirty_bitset); in write_dirty_bitset()
2819 set_bit(from_cblock(cblock), cache->dirty_bitset); in load_mapping()
2822 clear_bit(from_cblock(cblock), cache->dirty_bitset); in load_mapping()
2835 cache_device_name(cache), from_cblock(cblock)); in load_filtered_mapping()
2838 set_bit(from_cblock(cblock), cache->invalid_bitset); in load_filtered_mapping()
2959 if (from_cblock(new_size) > from_cblock(cache->cache_size)) { in can_resize()
2970 from_cblock(cache->cache_size), in can_resize()
2971 from_cblock(new_size))); in can_resize()
2975 (unsigned long long) from_cblock(new_size)); in can_resize()
3001 uint32_t nr_blocks = from_cblock(cache->cache_size); in truncate_oblocks()
3046 clear_bitset(cache->invalid_bitset, from_cblock(cache->cache_size)); in cache_preresume()
3189 (unsigned long long) from_cblock(residency), in cache_status()
3190 (unsigned long long) from_cblock(cache->cache_size), in cache_status()
3309 result->end = to_cblock(from_cblock(result->begin) + 1u); in parse_cblock_range()
3319 uint64_t b = from_cblock(range->begin); in validate_cblock_range()
3320 uint64_t e = from_cblock(range->end); in validate_cblock_range()
3321 uint64_t n = from_cblock(cache->cache_size); in validate_cblock_range()
3346 return to_cblock(from_cblock(b) + 1); in cblock_succ()