region_nr 641 drivers/md/dm-clone-metadata.c bool dm_clone_is_region_hydrated(struct dm_clone_metadata *cmd, unsigned long region_nr) region_nr 643 drivers/md/dm-clone-metadata.c return dm_clone_is_hydration_done(cmd) || test_bit(region_nr, cmd->region_map); region_nr 847 drivers/md/dm-clone-metadata.c int dm_clone_set_region_hydrated(struct dm_clone_metadata *cmd, unsigned long region_nr) region_nr 853 drivers/md/dm-clone-metadata.c if (unlikely(region_nr >= cmd->nr_regions)) { region_nr 855 drivers/md/dm-clone-metadata.c region_nr, cmd->nr_regions); region_nr 859 drivers/md/dm-clone-metadata.c word = region_nr / BITS_PER_LONG; region_nr 871 drivers/md/dm-clone-metadata.c __set_bit(region_nr, dmap->dirty_regions); region_nr 872 drivers/md/dm-clone-metadata.c __set_bit(region_nr, cmd->region_map); region_nr 886 drivers/md/dm-clone-metadata.c unsigned long word, region_nr; region_nr 903 drivers/md/dm-clone-metadata.c for (region_nr = start; region_nr < (start + nr_regions); region_nr++) { region_nr 904 drivers/md/dm-clone-metadata.c if (!test_bit(region_nr, cmd->region_map)) { region_nr 905 drivers/md/dm-clone-metadata.c word = region_nr / BITS_PER_LONG; region_nr 907 drivers/md/dm-clone-metadata.c __set_bit(region_nr, dmap->dirty_regions); region_nr 908 drivers/md/dm-clone-metadata.c __set_bit(region_nr, cmd->region_map); region_nr 37 drivers/md/dm-clone-metadata.h int dm_clone_set_region_hydrated(struct dm_clone_metadata *cmd, unsigned long region_nr); region_nr 148 drivers/md/dm-clone-metadata.h bool dm_clone_is_region_hydrated(struct dm_clone_metadata *cmd, unsigned long region_nr); region_nr 283 drivers/md/dm-clone-target.c static inline sector_t region_to_sector(struct clone *clone, unsigned long region_nr) region_nr 285 drivers/md/dm-clone-target.c return ((sector_t)region_nr << clone->region_shift); region_nr 538 drivers/md/dm-clone-target.c unsigned long region_nr; region_nr 604 drivers/md/dm-clone-target.c unsigned long region_nr) region_nr 606 drivers/md/dm-clone-target.c return &clone->ht[hash_long(region_nr, HASH_TABLE_BITS)]; region_nr 615 drivers/md/dm-clone-target.c unsigned long region_nr) region_nr 620 drivers/md/dm-clone-target.c if (hd->region_nr == region_nr) region_nr 651 drivers/md/dm-clone-target.c hd2 = __hash_find(bucket, hd->region_nr); region_nr 683 drivers/md/dm-clone-target.c static void hydration_init(struct dm_clone_region_hydration *hd, unsigned long region_nr) region_nr 685 drivers/md/dm-clone-target.c hd->region_nr = region_nr; region_nr 712 drivers/md/dm-clone-target.c r = dm_clone_set_region_hydrated(clone->cmd, hd->region_nr); region_nr 714 drivers/md/dm-clone-target.c bucket = get_hash_table_bucket(clone, hd->region_nr); region_nr 805 drivers/md/dm-clone-target.c region_start = hd->region_nr; region_nr 878 drivers/md/dm-clone-target.c unsigned long region_nr; region_nr 882 drivers/md/dm-clone-target.c region_nr = bio_to_region(clone, bio); region_nr 883 drivers/md/dm-clone-target.c bucket = get_hash_table_bucket(clone, region_nr); region_nr 887 drivers/md/dm-clone-target.c hd = __hash_find(bucket, region_nr); region_nr 895 drivers/md/dm-clone-target.c if (dm_clone_is_region_hydrated(clone->cmd, region_nr)) { region_nr 909 drivers/md/dm-clone-target.c hydration_init(hd, region_nr); region_nr 914 drivers/md/dm-clone-target.c if (dm_clone_is_region_hydrated(clone->cmd, region_nr)) { region_nr 989 drivers/md/dm-clone-target.c (batch->head->region_nr + batch->nr_batched_regions) == hd->region_nr) { region_nr 1328 drivers/md/dm-clone-target.c unsigned long region_nr; region_nr 1369 drivers/md/dm-clone-target.c region_nr = bio_to_region(clone, bio); region_nr 1370 drivers/md/dm-clone-target.c if (dm_clone_is_region_hydrated(clone->cmd, region_nr)) { region_nr 126 drivers/md/dm-switch.c static void switch_get_position(struct switch_ctx *sctx, unsigned long region_nr, region_nr 130 drivers/md/dm-switch.c *region_index = region_nr >> sctx->region_entries_per_slot_bits; region_nr 131 drivers/md/dm-switch.c *bit = region_nr & (sctx->region_entries_per_slot - 1); region_nr 133 drivers/md/dm-switch.c *region_index = region_nr / sctx->region_entries_per_slot; region_nr 134 drivers/md/dm-switch.c *bit = region_nr % sctx->region_entries_per_slot; region_nr 140 drivers/md/dm-switch.c static unsigned switch_region_table_read(struct switch_ctx *sctx, unsigned long region_nr) region_nr 145 drivers/md/dm-switch.c switch_get_position(sctx, region_nr, ®ion_index, &bit); region_nr 174 drivers/md/dm-switch.c static void switch_region_table_write(struct switch_ctx *sctx, unsigned long region_nr, region_nr 181 drivers/md/dm-switch.c switch_get_position(sctx, region_nr, ®ion_index, &bit); region_nr 195 drivers/md/dm-switch.c unsigned long region_nr; region_nr 197 drivers/md/dm-switch.c for (region_nr = 0; region_nr < sctx->nr_regions; region_nr++) { region_nr 198 drivers/md/dm-switch.c switch_region_table_write(sctx, region_nr, path_nr);