/linux/fs/btrfs/ |
H A D | zoned.c | 195 struct blk_zone *zones, unsigned int nr_zones) in emulate_report_zones() argument 202 for (i = 0; i < nr_zones; i++) { in emulate_report_zones() 220 struct blk_zone *zones, unsigned int *nr_zones) in btrfs_get_dev_zones() argument 225 if (!*nr_zones) in btrfs_get_dev_zones() 229 ret = emulate_report_zones(device, pos, zones, *nr_zones); in btrfs_get_dev_zones() 230 *nr_zones = ret; in btrfs_get_dev_zones() 245 *nr_zones = min_t(u32, *nr_zones, zinfo->nr_zones - zno); in btrfs_get_dev_zones() 247 for (i = 0; i < *nr_zones; i++) { in btrfs_get_dev_zones() 255 if (i == *nr_zones) { in btrfs_get_dev_zones() 258 sizeof(*zinfo->zone_cache) * *nr_zones); in btrfs_get_dev_zones() [all …]
|
H A D | zoned.h | 38 u32 nr_zones; member
|
/linux/block/ |
H A D | blk-zoned.c | 158 unsigned int nr_zones, report_zones_cb cb, void *data) in blkdev_report_zones() argument 171 if (!nr_zones || sector >= capacity) in blkdev_report_zones() 174 return disk->fops->report_zones(disk, sector, nr_zones, in blkdev_report_zones() 289 if (!rep.nr_zones) in blkdev_report_zones_ioctl() 293 ret = blkdev_report_zones(bdev, rep.sector, rep.nr_zones, in blkdev_report_zones_ioctl() 298 rep.nr_zones = ret; in blkdev_report_zones_ioctl() 385 if (zno < disk->nr_zones - 1) in disk_zone_is_full() 1356 nr_conv_zones = bitmap_weight(bitmap, disk->nr_zones); in disk_set_conv_zones_bitmap() 1390 disk->nr_zones = 0; in disk_free_zone_resources() 1407 unsigned int nr_zones) in disk_revalidate_zone_resources() argument [all …]
|
/linux/drivers/block/ |
H A D | ublk_drv.c | 222 __u32 nr_zones; member 262 int nr_zones; in ublk_dev_param_zoned_validate() local 270 nr_zones = ublk_get_nr_zones(ub); in ublk_dev_param_zoned_validate() 272 if (p->max_active_zones > nr_zones) in ublk_dev_param_zoned_validate() 275 if (p->max_open_zones > nr_zones) in ublk_dev_param_zoned_validate() 283 ub->ub_disk->nr_zones = ublk_get_nr_zones(ub); in ublk_dev_param_zoned_apply() 288 unsigned int nr_zones, size_t *buflen) in ublk_alloc_report_buffer() argument 294 nr_zones = min_t(unsigned int, nr_zones, in ublk_alloc_report_buffer() 295 ublk->ub_disk->nr_zones); in ublk_alloc_report_buffer() 297 bufsize = nr_zones * sizeof(struct blk_zone); in ublk_alloc_report_buffer() [all …]
|
H A D | virtio_blk.c | 529 unsigned int nr_zones, in virtblk_alloc_report_buffer() argument 536 nr_zones = min_t(unsigned int, nr_zones, in virtblk_alloc_report_buffer() 540 nr_zones * sizeof(struct virtio_blk_zone_descriptor); in virtblk_alloc_report_buffer() 658 unsigned int nr_zones, report_zones_cb cb, in virtblk_report_zones() argument 671 report = virtblk_alloc_report_buffer(vblk, nr_zones, &buflen); in virtblk_report_zones() 682 while (zone_idx < nr_zones && sector < get_capacity(vblk->disk)) { in virtblk_report_zones() 690 nz = min_t(u64, virtio64_to_cpu(vblk->vdev, report->nr_zones), in virtblk_report_zones() 691 nr_zones); in virtblk_report_zones() 695 for (i = 0; i < nz && zone_idx < nr_zones; i++) { in virtblk_report_zones()
|
/linux/drivers/block/null_blk/ |
H A D | null_blk.h | 67 unsigned int nr_zones; member 139 unsigned int nr_zones, report_zones_cb cb, void *data);
|
/linux/drivers/md/ |
H A D | dm-zoned-reclaim.c | 450 unsigned int nr_unmap, nr_zones; in dmz_reclaim_percentage() local 453 nr_zones = nr_cache; in dmz_reclaim_percentage() 456 nr_zones = dmz_nr_rnd_zones(zmd, zrc->dev_idx); in dmz_reclaim_percentage() 461 return nr_unmap * 100 / nr_zones; in dmz_reclaim_percentage()
|
H A D | dm-linear.c | 139 struct dm_report_zones_args *args, unsigned int nr_zones) in linear_report_zones() argument 145 args, nr_zones); in linear_report_zones()
|
H A D | dm-zoned-target.c | 795 zoned_dev->nr_zones = bdev_nr_zones(bdev); in dmz_fixup_devices() 806 zoned_dev->nr_zones = bdev_nr_zones(bdev); in dmz_fixup_devices() 813 reg_dev->nr_zones = in dmz_fixup_devices() 817 zone_offset = reg_dev->nr_zones; in dmz_fixup_devices() 820 zone_offset += dmz->dev[i].nr_zones; in dmz_fixup_devices()
|
H A D | dm-core.h | 142 unsigned int nr_zones; member
|
H A D | dm-flakey.c | 657 struct dm_report_zones_args *args, unsigned int nr_zones) in flakey_report_zones() argument 663 args, nr_zones); in flakey_report_zones()
|
/linux/drivers/scsi/ |
H A D | sd.h | 80 u32 nr_zones; member 243 unsigned int nr_zones, report_zones_cb cb, void *data);
|
/linux/include/uapi/linux/ |
H A D | blkzoned.h | 131 __u32 nr_zones; member
|
H A D | virtio_blk.h | 257 __virtio64 nr_zones; member
|
H A D | ublk_cmd.h | 310 __u32 nr_zones; /* for UBLK_IO_OP_REPORT_ZONES */ member
|
/linux/Documentation/block/ |
H A D | null_blk.rst | 151 zone_nr_conv >= nr_zones, it will be reduced to nr_zones - 1.
|
/linux/include/linux/ |
H A D | powercap.h | 67 int nr_zones; member
|
H A D | device-mapper.h | 101 unsigned int nr_zones); 541 struct dm_report_zones_args *args, unsigned int nr_zones);
|
H A D | blkdev.h | 195 unsigned int nr_zones; member 419 unsigned int nr_zones, report_zones_cb cb, void *data); 692 return disk->nr_zones; in disk_nr_zones() 1535 unsigned int nr_zones, report_zones_cb cb, void *data);
|
/linux/drivers/powercap/ |
H A D | powercap_sys.c | 566 control_type->nr_zones++; in powercap_register_zone() 595 control_type->nr_zones--; in powercap_unregister_zone() 648 if (control_type->nr_zones) { in powercap_unregister_control_type()
|
/linux/drivers/nvme/host/ |
H A D | multipath.c | 516 unsigned int nr_zones, report_zones_cb cb, void *data) in nvme_ns_head_report_zones() argument 525 ret = nvme_ns_report_zones(ns, sector, nr_zones, cb, data); in nvme_ns_head_report_zones() 997 ns->head->disk->nr_zones = ns->disk->nr_zones; in nvme_mpath_add_disk()
|
/linux/mm/ |
H A D | mm_init.c | 1417 if (zone_idx > pgdat->nr_zones) in init_currently_empty_zone() 1418 pgdat->nr_zones = zone_idx; in init_currently_empty_zone() 1526 * Reset the nr_zones, order and highest_zoneidx before reuse. in free_area_init_core_hotplug() 1530 pgdat->nr_zones = 0; in free_area_init_core_hotplug() 1680 WARN_ON(pgdat->nr_zones || pgdat->kswapd_highest_zoneidx); in free_area_init_node() 2127 zone = pgdat->node_zones + pgdat->nr_zones - 1; in deferred_init_memmap() 2148 WARN_ON(pgdat->nr_zones < MAX_NR_ZONES && populated_zone(++zone)); in deferred_init_memmap()
|
H A D | page_alloc.c | 5015 int nr_zones = 0; in build_zonerefs_node() local 5021 zoneref_set_zone(zone, &zonerefs[nr_zones++]); in build_zonerefs_node() 5026 return nr_zones; in build_zonerefs_node() 5138 int nr_zones; in build_zonelists_in_node_order() local 5142 nr_zones = build_zonerefs_node(node, zonerefs); in build_zonelists_in_node_order() 5143 zonerefs += nr_zones; in build_zonelists_in_node_order() 5155 int nr_zones; in build_thisnode_zonelists() local 5158 nr_zones = build_zonerefs_node(pgdat, zonerefs); in build_thisnode_zonelists() 5159 zonerefs += nr_zones; in build_thisnode_zonelists() 5230 int nr_zones; in build_zonelists() local [all …]
|
/linux/kernel/ |
H A D | vmcore_info.c | 180 VMCOREINFO_OFFSET(pglist_data, nr_zones); in crash_save_vmcoreinfo_init()
|
/linux/Documentation/admin-guide/device-mapper/ |
H A D | dm-zoned.rst | 177 0 <size> zoned <nr_zones> zones <nr_unmap_rnd>/<nr_rnd> random <nr_unmap_seq>/<nr_seq> sequential 179 where <nr_zones> is the total number of zones, <nr_unmap_rnd> is the number
|