Lines Matching refs:nr_regions
44 unsigned long nr_regions; /* Number of regions making up the device */ member
80 sector_t nr_regions = ti->len; in alloc_region_table() local
99 if (sector_div(nr_regions, sctx->region_size)) in alloc_region_table()
100 nr_regions++; in alloc_region_table()
102 if (nr_regions >= ULONG_MAX) { in alloc_region_table()
106 sctx->nr_regions = nr_regions; in alloc_region_table()
108 nr_slots = nr_regions; in alloc_region_table()
198 for (region_nr = 0; region_nr < sctx->nr_regions; region_nr++) { in initialise_region_table()
414 unlikely(region_index + num_write >= sctx->nr_regions)) { in process_set_region_mappings()
416 region_index, num_write, sctx->nr_regions); in process_set_region_mappings()
450 if (unlikely(region_index >= sctx->nr_regions)) { in process_set_region_mappings()
451 DMWARN("invalid set_region_mappings region number: %lu >= %lu", region_index, sctx->nr_regions); in process_set_region_mappings()