Lines Matching refs:zones
92 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct nullb_zone),
94 if (!dev->zones)
101 pr_info("changed the number of conventional zones to %u",
105 /* Max active zones has to be < nbr of seq zones in order to be enforceable */
111 /* Max open zones has to be <= max active zones */
114 pr_info("changed the maximum number of open zones to %u\n",
124 zone = &dev->zones[i];
138 zone = &dev->zones[i];
179 kvfree(dev->zones);
180 dev->zones = NULL;
201 zone = &dev->zones[first_zone];
234 struct nullb_zone *zone = &dev->zones[null_zone_no(dev, sector)];
287 zone = &dev->zones[zno];
332 * with the addition of max active zones support (added in the ZNS standard).
368 struct nullb_zone *zone = &dev->zones[zno];
610 zone = &dev->zones[i];
624 zone = &dev->zones[zone_no];
681 zone = &dev->zones[null_zone_no(dev, sector)];
705 * If the read-only condition is requested again to zones already in
707 * if the offline condition is requested for offline zones. Otherwise,
708 * set the specified zone condition to the zones. Finish the zones
743 if (!dev->zones) {
758 if (dev->zones[zone_no].type == BLK_ZONE_TYPE_CONVENTIONAL) {
759 pr_err("Can not change condition of conventional zones\n");
763 null_set_zone_cond(dev, &dev->zones[zone_no], cond);