nr_zones 17 block/blk-mq-debugfs-zoned.c for (i = 0; i < q->nr_zones; i++) nr_zones 123 block/blk-zoned.c struct blk_zone *zones, unsigned int *nr_zones) nr_zones 126 block/blk-zoned.c unsigned int z = 0, n, nrz = *nr_zones; nr_zones 141 block/blk-zoned.c WARN_ON(z > *nr_zones); nr_zones 142 block/blk-zoned.c *nr_zones = z; nr_zones 164 block/blk-zoned.c struct blk_zone *zones, unsigned int *nr_zones) nr_zones 181 block/blk-zoned.c if (!*nr_zones || sector >= bdev->bd_part->nr_sects) { nr_zones 182 block/blk-zoned.c *nr_zones = 0; nr_zones 186 block/blk-zoned.c nrz = min(*nr_zones, nr_zones 199 block/blk-zoned.c *nr_zones = i; nr_zones 339 block/blk-zoned.c if (!rep.nr_zones) nr_zones 342 block/blk-zoned.c rep.nr_zones = min(blkdev_nr_zones(bdev), rep.nr_zones); nr_zones 344 block/blk-zoned.c zones = kvmalloc_array(rep.nr_zones, sizeof(struct blk_zone), nr_zones 349 block/blk-zoned.c ret = blkdev_report_zones(bdev, rep.sector, zones, &rep.nr_zones); nr_zones 358 block/blk-zoned.c if (rep.nr_zones) { nr_zones 360 block/blk-zoned.c sizeof(struct blk_zone) * rep.nr_zones)) nr_zones 405 block/blk-zoned.c unsigned int nr_zones) nr_zones 407 block/blk-zoned.c return kcalloc_node(BITS_TO_LONGS(nr_zones), sizeof(unsigned long), nr_zones 415 block/blk-zoned.c static struct blk_zone *blk_alloc_zones(unsigned int *nr_zones) nr_zones 418 block/blk-zoned.c size_t nrz = min(*nr_zones, BLK_ZONED_REPORT_MAX_ZONES); nr_zones 427 block/blk-zoned.c *nr_zones = 0; nr_zones 431 block/blk-zoned.c *nr_zones = nrz; nr_zones 456 block/blk-zoned.c unsigned int nr_zones = __blkdev_nr_zones(q, get_capacity(disk)); nr_zones 469 block/blk-zoned.c q->nr_zones = nr_zones; nr_zones 479 block/blk-zoned.c if (!blk_queue_is_zoned(q) || !nr_zones) { nr_zones 480 block/blk-zoned.c nr_zones = 0; nr_zones 486 block/blk-zoned.c seq_zones_wlock = blk_alloc_zone_bitmap(q->node, nr_zones); nr_zones 489 block/blk-zoned.c seq_zones_bitmap = blk_alloc_zone_bitmap(q->node, nr_zones); nr_zones 494 block/blk-zoned.c rep_nr_zones = nr_zones; nr_zones 499 block/blk-zoned.c while (z < nr_zones) { nr_zones 500 block/blk-zoned.c nrz = min(nr_zones - z, rep_nr_zones); nr_zones 514 block/blk-zoned.c if (WARN_ON(z != nr_zones)) { nr_zones 526 block/blk-zoned.c q->nr_zones = nr_zones; nr_zones 47 drivers/block/null_blk.h unsigned int nr_zones; nr_zones 95 drivers/block/null_blk.h struct blk_zone *zones, unsigned int *nr_zones); nr_zones 108 drivers/block/null_blk.h unsigned int *nr_zones) nr_zones 29 drivers/block/null_blk_zoned.c dev->nr_zones = dev_size >> nr_zones 31 drivers/block/null_blk_zoned.c dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct blk_zone), nr_zones 36 drivers/block/null_blk_zoned.c if (dev->zone_nr_conv >= dev->nr_zones) { nr_zones 37 drivers/block/null_blk_zoned.c dev->zone_nr_conv = dev->nr_zones - 1; nr_zones 54 drivers/block/null_blk_zoned.c for (i = dev->zone_nr_conv; i < dev->nr_zones; i++) { nr_zones 74 drivers/block/null_blk_zoned.c struct blk_zone *zones, unsigned int *nr_zones) nr_zones 81 drivers/block/null_blk_zoned.c if (zno < dev->nr_zones) { nr_zones 82 drivers/block/null_blk_zoned.c nrz = min_t(unsigned int, *nr_zones, dev->nr_zones - zno); nr_zones 86 drivers/block/null_blk_zoned.c *nr_zones = nrz; nr_zones 134 drivers/block/null_blk_zoned.c for (i = 0; i < dev->nr_zones; i++) { nr_zones 464 drivers/md/dm-flakey.c struct blk_zone *zones, unsigned int *nr_zones) nr_zones 471 drivers/md/dm-flakey.c zones, nr_zones); nr_zones 475 drivers/md/dm-flakey.c if (*nr_zones) nr_zones 476 drivers/md/dm-flakey.c dm_remap_zone_report(ti, fc->start, zones, nr_zones); nr_zones 140 drivers/md/dm-linear.c struct blk_zone *zones, unsigned int *nr_zones) nr_zones 147 drivers/md/dm-linear.c zones, nr_zones); nr_zones 151 drivers/md/dm-linear.c if (*nr_zones) nr_zones 152 drivers/md/dm-linear.c dm_remap_zone_report(ti, lc->start, zones, nr_zones); nr_zones 1176 drivers/md/dm-zoned-metadata.c zmd->zones = kcalloc(dev->nr_zones, sizeof(struct dm_zone), GFP_KERNEL); nr_zones 1181 drivers/md/dm-zoned-metadata.c sizeof(struct dm_zone) * dev->nr_zones); nr_zones 1383 drivers/md/dm-zoned-metadata.c if (dzone_id >= dev->nr_zones) { nr_zones 1404 drivers/md/dm-zoned-metadata.c if (bzone_id >= dev->nr_zones) { nr_zones 1436 drivers/md/dm-zoned-metadata.c for (i = 0; i < dev->nr_zones; i++) { nr_zones 2480 drivers/md/dm-zoned-metadata.c dev->nr_zones, (u64)dev->zone_nr_sectors); nr_zones 2533 drivers/md/dm-zoned-metadata.c for (i = 0; i < dev->nr_zones; i++) { nr_zones 730 drivers/md/dm-zoned-target.c dev->nr_zones = blkdev_nr_zones(dev->bdev); nr_zones 58 drivers/md/dm-zoned.h unsigned int nr_zones; nr_zones 444 drivers/md/dm.c struct blk_zone *zones, unsigned int *nr_zones) nr_zones 482 drivers/md/dm.c ret = tgt->type->report_zones(tgt, sector, zones, nr_zones); nr_zones 1224 drivers/md/dm.c struct blk_zone *zones, unsigned int *nr_zones) nr_zones 1228 drivers/md/dm.c unsigned int nrz = *nr_zones; nr_zones 1256 drivers/md/dm.c *nr_zones = i; nr_zones 1258 drivers/md/dm.c *nr_zones = 0; nr_zones 562 drivers/powercap/powercap_sys.c control_type->nr_zones++; nr_zones 591 drivers/powercap/powercap_sys.c control_type->nr_zones--; nr_zones 644 drivers/powercap/powercap_sys.c if (control_type->nr_zones) { nr_zones 77 drivers/scsi/sd.h u32 nr_zones; nr_zones 216 drivers/scsi/sd.h struct blk_zone *zones, unsigned int *nr_zones); nr_zones 126 drivers/scsi/sd_zbc.c unsigned int nr_zones, size_t *buflen) nr_zones 141 drivers/scsi/sd_zbc.c nr_zones = min(nr_zones, SD_ZBC_REPORT_MAX_ZONES); nr_zones 142 drivers/scsi/sd_zbc.c bufsize = roundup((nr_zones + 1) * 64, 512); nr_zones 164 drivers/scsi/sd_zbc.c struct blk_zone *zones, unsigned int *nr_zones) nr_zones 167 drivers/scsi/sd_zbc.c unsigned int i, nrz = *nr_zones; nr_zones 192 drivers/scsi/sd_zbc.c *nr_zones = nrz; nr_zones 459 drivers/scsi/sd_zbc.c unsigned int nr_zones; nr_zones 489 drivers/scsi/sd_zbc.c nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks); nr_zones 502 drivers/scsi/sd_zbc.c sdkp->nr_zones = nr_zones; nr_zones 507 drivers/scsi/sd_zbc.c sdkp->nr_zones != nr_zones || nr_zones 508 drivers/scsi/sd_zbc.c disk->queue->nr_zones != nr_zones) { nr_zones 513 drivers/scsi/sd_zbc.c sdkp->nr_zones = nr_zones; nr_zones 532 drivers/scsi/sd_zbc.c sdkp->nr_zones - 1, nr_zones 537 drivers/scsi/sd_zbc.c sdkp->nr_zones, nr_zones 2871 fs/f2fs/super.c unsigned int i, nr_zones; nr_zones 2910 fs/f2fs/super.c nr_zones = F2FS_REPORT_NR_ZONES; nr_zones 2911 fs/f2fs/super.c err = blkdev_report_zones(bdev, sector, zones, &nr_zones); nr_zones 2914 fs/f2fs/super.c if (!nr_zones) { nr_zones 2919 fs/f2fs/super.c for (i = 0; i < nr_zones; i++) { nr_zones 362 include/linux/blkdev.h unsigned int *nr_zones); nr_zones 522 include/linux/blkdev.h unsigned int nr_zones; nr_zones 714 include/linux/blkdev.h return blk_queue_is_zoned(q) ? q->nr_zones : 0; nr_zones 1712 include/linux/blkdev.h struct blk_zone *zones, unsigned int *nr_zones); nr_zones 98 include/linux/device-mapper.h unsigned int *nr_zones); nr_zones 426 include/linux/device-mapper.h struct blk_zone *zones, unsigned int *nr_zones); nr_zones 701 include/linux/mmzone.h int nr_zones; nr_zones 68 include/linux/powercap.h int nr_zones; nr_zones 117 include/uapi/linux/blkzoned.h __u32 nr_zones; nr_zones 433 kernel/crash_core.c VMCOREINFO_OFFSET(pglist_data, nr_zones); nr_zones 2595 mm/compaction.c pgdat->kcompactd_classzone_idx = pgdat->nr_zones - 1; nr_zones 2641 mm/compaction.c pgdat->kcompactd_classzone_idx = pgdat->nr_zones - 1; nr_zones 2127 mm/khugepaged.c int nr_zones = 0; nr_zones 2138 mm/khugepaged.c nr_zones++; nr_zones 2142 mm/khugepaged.c recommended_min = pageblock_nr_pages * nr_zones * 2; nr_zones 2150 mm/khugepaged.c recommended_min += pageblock_nr_pages * nr_zones * nr_zones 913 mm/memory_hotplug.c pgdat->nr_zones = 0; nr_zones 1888 mm/migrate.c for (z = pgdat->nr_zones - 1; z >= 0; z--) { nr_zones 5453 mm/page_alloc.c int nr_zones = 0; nr_zones 5459 mm/page_alloc.c zoneref_set_zone(zone, &zonerefs[nr_zones++]); nr_zones 5464 mm/page_alloc.c return nr_zones; nr_zones 5596 mm/page_alloc.c int nr_zones; nr_zones 5600 mm/page_alloc.c nr_zones = build_zonerefs_node(node, zonerefs); nr_zones 5601 mm/page_alloc.c zonerefs += nr_zones; nr_zones 5613 mm/page_alloc.c int nr_zones; nr_zones 5616 mm/page_alloc.c nr_zones = build_zonerefs_node(pgdat, zonerefs); nr_zones 5617 mm/page_alloc.c zonerefs += nr_zones; nr_zones 5688 mm/page_alloc.c int nr_zones; nr_zones 5693 mm/page_alloc.c nr_zones = build_zonerefs_node(pgdat, zonerefs); nr_zones 5694 mm/page_alloc.c zonerefs += nr_zones; nr_zones 5707 mm/page_alloc.c nr_zones = build_zonerefs_node(NODE_DATA(node), zonerefs); nr_zones 5708 mm/page_alloc.c zonerefs += nr_zones; nr_zones 5713 mm/page_alloc.c nr_zones = build_zonerefs_node(NODE_DATA(node), zonerefs); nr_zones 5714 mm/page_alloc.c zonerefs += nr_zones; nr_zones 6214 mm/page_alloc.c if (zone_idx > pgdat->nr_zones) nr_zones 6215 mm/page_alloc.c pgdat->nr_zones = zone_idx; nr_zones 6890 mm/page_alloc.c WARN_ON(pgdat->nr_zones || pgdat->kswapd_classzone_idx); nr_zones 299 mm/vmstat.c for (i = 0; i < pgdat->nr_zones; i++) {