Lines Matching refs:from_cblock

577 	return test_bit(from_cblock(b), cache->dirty_bitset);  in is_dirty()
582 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) { in set_dirty()
590 if (test_and_clear_bit(from_cblock(cblock), cache->dirty_bitset)) { in clear_dirty()
773 sector_t block = from_cblock(cblock); in remap_to_cache()
1260 sector_t cblock = from_cblock(mg->cblock); in issue_copy()
2110 uint64_t begin = from_cblock(req->cblocks->begin); in process_invalidation_request()
2111 uint64_t end = from_cblock(req->cblocks->end); in process_invalidation_request()
2744 dm_block_t nr_blocks = from_cblock(size); in set_cache_size()
2878 cache->dirty_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create()
2883 clear_bitset(cache->dirty_bitset, from_cblock(cache->cache_size)); in cache_create()
3180 for (i = 0; i < from_cblock(cache->cache_size); i++) { in write_dirty_bitset()
3394 if (from_cblock(new_size) > from_cblock(cache->cache_size)) in can_resize()
3400 while (from_cblock(new_size) < from_cblock(cache->cache_size)) { in can_resize()
3401 new_size = to_cblock(from_cblock(new_size) + 1); in can_resize()
3405 (unsigned long long) from_cblock(new_size)); in can_resize()
3555 (unsigned long long) from_cblock(residency), in cache_status()
3556 (unsigned long long) from_cblock(cache->cache_size), in cache_status()
3659 result->end = to_cblock(from_cblock(result->begin) + 1u); in parse_cblock_range()
3669 uint64_t b = from_cblock(range->begin); in validate_cblock_range()
3670 uint64_t e = from_cblock(range->end); in validate_cblock_range()
3671 uint64_t n = from_cblock(cache->cache_size); in validate_cblock_range()