Lines Matching refs:region_t
107 region_t key;
120 static region_t dm_rh_sector_to_region(struct dm_region_hash *rh, sector_t sector) in dm_rh_sector_to_region()
125 sector_t dm_rh_region_to_sector(struct dm_region_hash *rh, region_t region) in dm_rh_region_to_sector()
131 region_t dm_rh_bio_to_region(struct dm_region_hash *rh, struct bio *bio) in dm_rh_bio_to_region()
144 region_t dm_rh_get_region_key(struct dm_region *reg) in dm_rh_get_region_key()
171 region_t nr_regions) in dm_region_hash_create()
269 static unsigned int rh_hash(struct dm_region_hash *rh, region_t region) in rh_hash()
274 static struct dm_region *__rh_lookup(struct dm_region_hash *rh, region_t region) in __rh_lookup()
291 static struct dm_region *__rh_alloc(struct dm_region_hash *rh, region_t region) in __rh_alloc()
327 static struct dm_region *__rh_find(struct dm_region_hash *rh, region_t region) in __rh_find()
341 int dm_rh_get_state(struct dm_region_hash *rh, region_t region, int may_block) in dm_rh_get_state()
403 region_t region = dm_rh_bio_to_region(rh, bio); in dm_rh_mark_nosync()
506 static void rh_inc(struct dm_region_hash *rh, region_t region) in rh_inc()
541 void dm_rh_dec(struct dm_region_hash *rh, region_t region) in dm_rh_dec()
593 region_t region; in __rh_recovery_prepare()