Home
last modified time | relevance | path

Searched refs:origin_size (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/drivers/md/
Ddm-cache-policy.c113 sector_t origin_size, in dm_cache_policy_create() argument
125 p = type->create(cache_size, origin_size, cache_block_size); in dm_cache_policy_create()
Ddm-cache-policy-smq.c1698 static bool too_many_hotspot_blocks(sector_t origin_size, in too_many_hotspot_blocks() argument
1702 return (hotspot_block_size * nr_hotspot_blocks) > origin_size; in too_many_hotspot_blocks()
1705 static void calc_hotspot_params(sector_t origin_size, in calc_hotspot_params() argument
1715 too_many_hotspot_blocks(origin_size, *hotspot_block_size, *nr_hotspot_blocks)) in calc_hotspot_params()
1720 sector_t origin_size, in __smq_create() argument
1737 calc_hotspot_params(origin_size, cache_block_size, from_cblock(cache_size), in __smq_create()
1830 sector_t origin_size, in smq_create() argument
1833 return __smq_create(cache_size, origin_size, cache_block_size, false, true); in smq_create()
1837 sector_t origin_size, in mq_create() argument
1840 return __smq_create(cache_size, origin_size, cache_block_size, true, true); in mq_create()
[all …]
Ddm-cache-policy.h177 sector_t origin_size,
Ddm-cache-policy-internal.h143 sector_t origin_size, sector_t block_size);
Ddm-thin.c342 sector_t origin_size; member
1424 if (virt_block_end <= tc->origin_size) in schedule_external_copy()
1429 else if (virt_block_begin < tc->origin_size) in schedule_external_copy()
1432 tc->origin_size - virt_block_begin); in schedule_external_copy()
1968 if (bio_end_sector(bio) <= tc->origin_size) in process_cell()
1971 else if (bio->bi_iter.bi_sector < tc->origin_size) { in process_cell()
1973 bio->bi_iter.bi_size = (tc->origin_size - bio->bi_iter.bi_sector) << SECTOR_SHIFT; in process_cell()
4372 tc->origin_size = get_dev_size(tc->origin_dev->bdev); in thin_preresume()
Ddm-cache-target.c2388 sector_t origin_size) in too_many_discard_blocks() argument
2390 (void) sector_div(origin_size, discard_block_size); in too_many_discard_blocks()
2392 return origin_size > MAX_DISCARD_BLOCKS; in too_many_discard_blocks()
2396 sector_t origin_size) in calculate_discard_block_size() argument
2400 if (origin_size) in calculate_discard_block_size()
2401 while (too_many_discard_blocks(discard_block_size, origin_size)) in calculate_discard_block_size()
/Linux-v5.10/drivers/staging/media/atomisp/pci/
Datomisp_fops.c1168 u32 origin_size, new_size; in atomisp_mmap() local
1211 origin_size = raw_virt_addr->data_bytes; in atomisp_mmap()
1222 raw_virt_addr->data_bytes = origin_size; in atomisp_mmap()
1226 raw_virt_addr->data_bytes = origin_size; in atomisp_mmap()