Lines Matching refs:nr_regions
44 unsigned long nr_regions; /* Number of regions making up the device */ member
79 sector_t nr_regions = ti->len; in alloc_region_table() local
98 if (sector_div(nr_regions, sctx->region_size)) in alloc_region_table()
99 nr_regions++; in alloc_region_table()
101 if (nr_regions >= ULONG_MAX) { in alloc_region_table()
105 sctx->nr_regions = nr_regions; in alloc_region_table()
107 nr_slots = nr_regions; in alloc_region_table()
197 for (region_nr = 0; region_nr < sctx->nr_regions; region_nr++) { in initialise_region_table()
413 unlikely(region_index + num_write >= sctx->nr_regions)) { in process_set_region_mappings()
415 region_index, num_write, sctx->nr_regions); in process_set_region_mappings()
449 if (unlikely(region_index >= sctx->nr_regions)) { in process_set_region_mappings()
450 DMWARN("invalid set_region_mappings region number: %lu >= %lu", region_index, sctx->nr_regions); in process_set_region_mappings()