Lines Matching refs:nr_zones
86 dev->nr_zones = round_up(dev_capacity_sects, dev->zone_size_sects) in null_init_zoned_dev()
89 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct nullb_zone), in null_init_zoned_dev()
96 if (dev->zone_nr_conv >= dev->nr_zones) { in null_init_zoned_dev()
97 dev->zone_nr_conv = dev->nr_zones - 1; in null_init_zoned_dev()
103 if (dev->zone_max_active >= dev->nr_zones - dev->zone_nr_conv) { in null_init_zoned_dev()
112 dev->nr_zones); in null_init_zoned_dev()
113 } else if (dev->zone_max_open >= dev->nr_zones - dev->zone_nr_conv) { in null_init_zoned_dev()
134 for (i = dev->zone_nr_conv; i < dev->nr_zones; i++) { in null_init_zoned_dev()
170 q->nr_zones = blkdev_nr_zones(nullb->disk); in null_register_zoned_dev()
187 unsigned int nr_zones, report_zones_cb cb, void *data) in null_report_zones() argument
197 if (first_zone >= dev->nr_zones) in null_report_zones()
200 nr_zones = min(nr_zones, dev->nr_zones - first_zone); in null_report_zones()
201 trace_nullb_report_zones(nullb, nr_zones); in null_report_zones()
205 for (i = 0; i < nr_zones; i++, zone++) { in null_report_zones()
226 return nr_zones; in null_report_zones()
286 if (zno >= dev->nr_zones) in null_close_imp_open_zone()
289 for (i = dev->zone_nr_conv; i < dev->nr_zones; i++) { in null_close_imp_open_zone()
292 if (zno >= dev->nr_zones) in null_close_imp_open_zone()
610 for (i = dev->zone_nr_conv; i < dev->nr_zones; i++) { in null_zone_mgmt()