/linux-6.6.21/drivers/md/ |
D | dm-zone.c | 22 sector_t sector, unsigned int nr_zones, in dm_blk_do_report_zones() argument 42 nr_zones - args.zone_idx); in dm_blk_do_report_zones() 45 } while (args.zone_idx < nr_zones && in dm_blk_do_report_zones() 57 unsigned int nr_zones, report_zones_cb cb, void *data) in dm_blk_report_zones() argument 70 ret = dm_blk_do_report_zones(md, map, sector, nr_zones, cb, data); in dm_blk_report_zones() 112 struct dm_report_zones_args *args, unsigned int nr_zones) in dm_report_zones() argument 120 return blkdev_report_zones(bdev, sector, nr_zones, in dm_report_zones() 152 md->nr_zones = 0; in dm_cleanup_zoned_dev() 186 disk->conv_zones_bitmap = bitmap_zalloc(disk->nr_zones, in dm_zone_revalidate_cb() 196 disk->seq_zones_wlock = bitmap_zalloc(disk->nr_zones, in dm_zone_revalidate_cb() [all …]
|
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()
|
D | dm-linear.c | 138 struct dm_report_zones_args *args, unsigned int nr_zones) in linear_report_zones() argument 144 args, nr_zones); in linear_report_zones()
|
D | dm-zoned-metadata.c | 164 unsigned int nr_zones; member 265 return zmd->nr_zones; in dmz_nr_zones() 1429 for (idx = 0; idx < dev->nr_zones; idx++) { in dmz_emulate_zones() 1456 for (idx = 0; idx < zmd->nr_zones; idx++) { in dmz_drop_zones() 1486 zmd->nr_zones = 0; in dmz_init_zones() 1491 zmd->nr_zones += dev->nr_zones; in dmz_init_zones() 1502 if (!zmd->nr_zones) { in dmz_init_zones() 1509 zmd->devname, sizeof(struct dm_zone) * zmd->nr_zones); in dmz_init_zones() 1714 if (dzone_id >= zmd->nr_zones) { in dmz_load_mapping() 1742 if (bzone_id >= zmd->nr_zones) { in dmz_load_mapping() [all …]
|
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()
|
/linux-6.6.21/drivers/scsi/ |
D | sd_zbc.c | 202 unsigned int nr_zones, size_t *buflen) in sd_zbc_alloc_report_buffer() argument 217 nr_zones = min(nr_zones, sdkp->zone_info.nr_zones); in sd_zbc_alloc_report_buffer() 218 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer() 257 unsigned int nr_zones, report_zones_cb cb, void *data) in sd_zbc_report_zones() argument 276 buf = sd_zbc_alloc_report_buffer(sdkp, nr_zones, &buflen); in sd_zbc_report_zones() 280 while (zone_idx < nr_zones && lba < sdkp->capacity) { in sd_zbc_report_zones() 286 nr = min(nr_zones, get_unaligned_be32(&buf[0]) / 64); in sd_zbc_report_zones() 290 for (i = 0; i < nr && zone_idx < nr_zones; i++) { in sd_zbc_report_zones() 379 for (zno = 0; zno < sdkp->zone_info.nr_zones; zno++) { in sd_zbc_update_wp_offset_workfn() 585 sdkp->zone_info.nr_zones * sizeof(unsigned int)); in sd_zbc_zone_wp_update() [all …]
|
D | sd.h | 80 u32 nr_zones; member 253 unsigned int nr_zones, report_zones_cb cb, void *data);
|
/linux-6.6.21/drivers/block/null_blk/ |
D | trace.h | 57 TP_PROTO(struct nullb *nullb, unsigned int nr_zones), 58 TP_ARGS(nullb, nr_zones), 61 __field(unsigned int, nr_zones) 64 __entry->nr_zones = nr_zones; 68 __print_disk_name(__entry->disk), __entry->nr_zones)
|
D | zoned.c | 89 dev->nr_zones = round_up(dev_capacity_sects, dev->zone_size_sects) in null_init_zoned_dev() 92 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct nullb_zone), in null_init_zoned_dev() 99 if (dev->zone_nr_conv >= dev->nr_zones) { in null_init_zoned_dev() 100 dev->zone_nr_conv = dev->nr_zones - 1; in null_init_zoned_dev() 106 if (dev->zone_max_active >= dev->nr_zones - dev->zone_nr_conv) { in null_init_zoned_dev() 115 dev->nr_zones); in null_init_zoned_dev() 116 } else if (dev->zone_max_open >= dev->nr_zones - dev->zone_nr_conv) { in null_init_zoned_dev() 137 for (i = dev->zone_nr_conv; i < dev->nr_zones; i++) { in null_init_zoned_dev() 166 nullb->disk->nr_zones = bdev_nr_zones(nullb->disk->part0); in null_register_zoned_dev() 184 unsigned int nr_zones, report_zones_cb cb, void *data) in null_report_zones() argument [all …]
|
D | null_blk.h | 84 unsigned int nr_zones; member 154 unsigned int nr_zones, report_zones_cb cb, void *data);
|
/linux-6.6.21/block/ |
D | blk-zoned.c | 139 unsigned int nr_zones, report_zones_cb cb, void *data) in blkdev_report_zones() argument 147 if (!nr_zones || sector >= capacity) in blkdev_report_zones() 150 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones() 155 unsigned int nr_zones) in blk_alloc_zone_bitmap() argument 157 return kcalloc_node(BITS_TO_LONGS(nr_zones), sizeof(unsigned long), in blk_alloc_zone_bitmap() 191 need_reset = blk_alloc_zone_bitmap(disk->queue->node, disk->nr_zones); in blkdev_zone_reset_all_emulated() 195 ret = disk->fops->report_zones(disk, 0, disk->nr_zones, in blkdev_zone_reset_all_emulated() 343 if (!rep.nr_zones) in blkdev_report_zones_ioctl() 347 ret = blkdev_report_zones(bdev, rep.sector, rep.nr_zones, in blkdev_report_zones_ioctl() 352 rep.nr_zones = ret; in blkdev_report_zones_ioctl() [all …]
|
D | blk-mq-debugfs-zoned.c | 17 for (i = 0; i < q->disk->nr_zones; i++) in queue_zone_wlock_show()
|
/linux-6.6.21/drivers/nvme/host/ |
D | zns.c | 121 unsigned int nr_zones, size_t *buflen) in nvme_zns_alloc_report_buffer() argument 130 nr_zones = min_t(unsigned int, nr_zones, in nvme_zns_alloc_report_buffer() 134 nr_zones * sizeof(struct nvme_zone_descriptor); in nvme_zns_alloc_report_buffer() 177 unsigned int nr_zones, report_zones_cb cb, void *data) in nvme_ns_report_zones() argument 188 report = nvme_zns_alloc_report_buffer(ns, nr_zones, &buflen); in nvme_ns_report_zones() 200 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones() 211 nz = min((unsigned int)le64_to_cpu(report->nr_zones), nr_zones); in nvme_ns_report_zones() 215 for (i = 0; i < nz && zone_idx < nr_zones; i++) { in nvme_ns_report_zones()
|
D | multipath.c | 427 unsigned int nr_zones, report_zones_cb cb, void *data) in nvme_ns_head_report_zones() argument 436 ret = nvme_ns_report_zones(ns, sector, nr_zones, cb, data); in nvme_ns_head_report_zones() 876 ns->head->disk->nr_zones = ns->disk->nr_zones; in nvme_mpath_add_disk()
|
/linux-6.6.21/fs/btrfs/ |
D | zoned.c | 199 struct blk_zone *zones, unsigned int nr_zones) in emulate_report_zones() argument 206 for (i = 0; i < nr_zones; i++) { in emulate_report_zones() 224 struct blk_zone *zones, unsigned int *nr_zones) in btrfs_get_dev_zones() argument 229 if (!*nr_zones) in btrfs_get_dev_zones() 233 ret = emulate_report_zones(device, pos, zones, *nr_zones); in btrfs_get_dev_zones() 234 *nr_zones = ret; in btrfs_get_dev_zones() 249 *nr_zones = min_t(u32, *nr_zones, zinfo->nr_zones - zno); in btrfs_get_dev_zones() 251 for (i = 0; i < *nr_zones; i++) { in btrfs_get_dev_zones() 259 if (i == *nr_zones) { in btrfs_get_dev_zones() 262 sizeof(*zinfo->zone_cache) * *nr_zones); in btrfs_get_dev_zones() [all …]
|
/linux-6.6.21/drivers/nvme/target/ |
D | zns.c | 210 u64 nr_zones; member 231 if (rz->nr_zones < rz->out_nr_zones) { in nvmet_bdev_report_zone_cb() 250 rz->nr_zones++; in nvmet_bdev_report_zone_cb() 277 __le64 nr_zones; in nvmet_bdev_zone_zmgmt_recv_work() local 285 .nr_zones = 0, in nvmet_bdev_zone_zmgmt_recv_work() 310 rz_data.nr_zones = min(rz_data.nr_zones, rz_data.out_nr_zones); in nvmet_bdev_zone_zmgmt_recv_work() 312 nr_zones = cpu_to_le64(rz_data.nr_zones); in nvmet_bdev_zone_zmgmt_recv_work() 313 status = nvmet_copy_to_sgl(req, 0, &nr_zones, sizeof(nr_zones)); in nvmet_bdev_zone_zmgmt_recv_work() 403 unsigned int nr_zones = bdev_nr_zones(bdev); in nvmet_bdev_zone_mgmt_emulate_all() local 411 d.zbitmap = kcalloc_node(BITS_TO_LONGS(nr_zones), sizeof(*(d.zbitmap)), in nvmet_bdev_zone_mgmt_emulate_all() [all …]
|
/linux-6.6.21/drivers/block/ |
D | ublk_drv.c | 73 __u32 nr_zones; member 234 int nr_zones; in ublk_dev_param_zoned_validate() local 242 nr_zones = ublk_get_nr_zones(ub); in ublk_dev_param_zoned_validate() 244 if (p->max_active_zones > nr_zones) in ublk_dev_param_zoned_validate() 247 if (p->max_open_zones > nr_zones) in ublk_dev_param_zoned_validate() 265 ub->ub_disk->nr_zones = ublk_get_nr_zones(ub); in ublk_dev_param_zoned_apply() 272 unsigned int nr_zones, size_t *buflen) in ublk_alloc_report_buffer() argument 278 nr_zones = min_t(unsigned int, nr_zones, in ublk_alloc_report_buffer() 279 ublk->ub_disk->nr_zones); in ublk_alloc_report_buffer() 281 bufsize = nr_zones * sizeof(struct blk_zone); in ublk_alloc_report_buffer() [all …]
|
D | virtio_blk.c | 538 unsigned int nr_zones, in virtblk_alloc_report_buffer() argument 545 nr_zones = min_t(unsigned int, nr_zones, in virtblk_alloc_report_buffer() 549 nr_zones * sizeof(struct virtio_blk_zone_descriptor); in virtblk_alloc_report_buffer() 667 unsigned int nr_zones, report_zones_cb cb, in virtblk_report_zones() argument 680 report = virtblk_alloc_report_buffer(vblk, nr_zones, &buflen); in virtblk_report_zones() 691 while (zone_idx < nr_zones && sector < get_capacity(vblk->disk)) { in virtblk_report_zones() 699 nz = min_t(u64, virtio64_to_cpu(vblk->vdev, report->nr_zones), in virtblk_report_zones() 700 nr_zones); in virtblk_report_zones() 704 for (i = 0; i < nz && zone_idx < nr_zones; i++) { in virtblk_report_zones()
|
/linux-6.6.21/include/uapi/linux/ |
D | blkzoned.h | 131 __u32 nr_zones; member
|
D | virtio_blk.h | 257 __virtio64 nr_zones; member
|
/linux-6.6.21/include/linux/ |
D | powercap.h | 67 int nr_zones; member
|
D | device-mapper.h | 101 unsigned int nr_zones); 520 struct dm_report_zones_args *args, unsigned int nr_zones);
|
/linux-6.6.21/Documentation/block/ |
D | null_blk.rst | 151 zone_nr_conv >= nr_zones, it will be reduced to nr_zones - 1.
|
/linux-6.6.21/mm/ |
D | page_alloc.c | 4814 int nr_zones = 0; in build_zonerefs_node() local 4820 zoneref_set_zone(zone, &zonerefs[nr_zones++]); in build_zonerefs_node() 4825 return nr_zones; in build_zonerefs_node() 4934 int nr_zones; in build_zonelists_in_node_order() local 4938 nr_zones = build_zonerefs_node(node, zonerefs); in build_zonelists_in_node_order() 4939 zonerefs += nr_zones; in build_zonelists_in_node_order() 4951 int nr_zones; in build_thisnode_zonelists() local 4954 nr_zones = build_zonerefs_node(pgdat, zonerefs); in build_thisnode_zonelists() 4955 zonerefs += nr_zones; in build_thisnode_zonelists() 5027 int nr_zones; in build_zonelists() local [all …]
|
/linux-6.6.21/drivers/powercap/ |
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()
|