Lines Matching defs:rh
106 struct dm_region_hash *rh; /* FIXME: can we get rid of this ? */ member
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()
150 sector_t dm_rh_get_region_size(struct dm_region_hash *rh) in dm_rh_get_region_size()
173 struct dm_region_hash *rh; in dm_region_hash_create() local
240 void dm_region_hash_destroy(struct dm_region_hash *rh) in dm_region_hash_destroy()
263 struct dm_dirty_log *dm_rh_dirty_log(struct dm_region_hash *rh) in dm_rh_dirty_log()
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()
286 static void __rh_insert(struct dm_region_hash *rh, struct dm_region *reg) in __rh_insert()
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()
369 struct dm_region_hash *rh = reg->rh; in complete_resync_work() local
398 void dm_rh_mark_nosync(struct dm_region_hash *rh, struct bio *bio) in dm_rh_mark_nosync()
443 void dm_rh_update_states(struct dm_region_hash *rh, int errors_handled) in dm_rh_update_states()
506 static void rh_inc(struct dm_region_hash *rh, region_t region) in rh_inc()
529 void dm_rh_inc_pending(struct dm_region_hash *rh, struct bio_list *bios) in dm_rh_inc_pending()
541 void dm_rh_dec(struct dm_region_hash *rh, region_t region) in dm_rh_dec()
590 static int __rh_recovery_prepare(struct dm_region_hash *rh) in __rh_recovery_prepare()
625 void dm_rh_recovery_prepare(struct dm_region_hash *rh) in dm_rh_recovery_prepare()
648 struct dm_region *dm_rh_recovery_start(struct dm_region_hash *rh) in dm_rh_recovery_start()
666 struct dm_region_hash *rh = reg->rh; in dm_rh_recovery_end() local
681 int dm_rh_recovery_in_flight(struct dm_region_hash *rh) in dm_rh_recovery_in_flight()
687 int dm_rh_flush(struct dm_region_hash *rh) in dm_rh_flush()
693 void dm_rh_delay(struct dm_region_hash *rh, struct bio *bio) in dm_rh_delay()
704 void dm_rh_stop_recovery(struct dm_region_hash *rh) in dm_rh_stop_recovery()
714 void dm_rh_start_recovery(struct dm_region_hash *rh) in dm_rh_start_recovery()