Home
last modified time | relevance | path

Searched refs:nr_zones (Results 1 – 25 of 42) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/scsi/
Dsd_zbc.c150 unsigned int nr_zones, size_t *buflen) in sd_zbc_alloc_report_buffer() argument
165 nr_zones = min(nr_zones, sdkp->nr_zones); in sd_zbc_alloc_report_buffer()
166 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
194 unsigned int nr_zones, report_zones_cb cb, void *data) in sd_zbc_report_zones() argument
212 buf = sd_zbc_alloc_report_buffer(sdkp, nr_zones, &buflen); in sd_zbc_report_zones()
216 while (zone_idx < nr_zones && sector < capacity) { in sd_zbc_report_zones()
223 nr = min(nr_zones, get_unaligned_be32(&buf[0]) / 64); in sd_zbc_report_zones()
227 for (i = 0; i < nr && zone_idx < nr_zones; i++) { in sd_zbc_report_zones()
289 for (zno = 0; zno < sdkp->nr_zones; zno++) { in sd_zbc_update_wp_offset_workfn()
492 sdkp->nr_zones * sizeof(unsigned int)); in sd_zbc_zone_wp_update()
[all …]
Dsd.h77 u32 nr_zones; member
227 unsigned int nr_zones, report_zones_cb cb, void *data);
/kernel/linux/linux-5.10/drivers/block/
Dnull_blk_trace.h57 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)
Dnull_blk_zoned.c43 dev->nr_zones = dev_capacity_sects >> ilog2(dev->zone_size_sects); in null_init_zoned_dev()
45 dev->nr_zones++; in null_init_zoned_dev()
47 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct blk_zone), in null_init_zoned_dev()
61 dev->zone_locks = bitmap_zalloc(dev->nr_zones, GFP_KERNEL); in null_init_zoned_dev()
68 if (dev->zone_nr_conv >= dev->nr_zones) { in null_init_zoned_dev()
69 dev->zone_nr_conv = dev->nr_zones - 1; in null_init_zoned_dev()
75 if (dev->zone_max_active >= dev->nr_zones - dev->zone_nr_conv) { in null_init_zoned_dev()
84 dev->nr_zones); in null_init_zoned_dev()
85 } else if (dev->zone_max_open >= dev->nr_zones - dev->zone_nr_conv) { in null_init_zoned_dev()
103 for (i = dev->zone_nr_conv; i < dev->nr_zones; i++) { in null_init_zoned_dev()
[all …]
Dnull_blk.h45 unsigned int nr_zones; member
106 unsigned int nr_zones, report_zones_cb cb, void *data);
/kernel/linux/linux-5.10/drivers/nvme/host/
Dzns.c117 unsigned int nr_zones, size_t *buflen) in nvme_zns_alloc_report_buffer() argument
126 nr_zones = min_t(unsigned int, nr_zones, in nvme_zns_alloc_report_buffer()
130 nr_zones * sizeof(struct nvme_zone_descriptor); in nvme_zns_alloc_report_buffer()
170 unsigned int nr_zones, report_zones_cb cb, void *data) in nvme_ns_report_zones() argument
178 report = nvme_zns_alloc_report_buffer(ns, nr_zones, &buflen); in nvme_ns_report_zones()
190 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones()
201 nz = min((unsigned int)le64_to_cpu(report->nr_zones), nr_zones); in nvme_ns_report_zones()
205 for (i = 0; i < nz && zone_idx < nr_zones; i++) { in nvme_ns_report_zones()
226 unsigned int nr_zones, report_zones_cb cb, void *data) in nvme_report_zones() argument
237 ret = nvme_ns_report_zones(ns, sector, nr_zones, cb, data); in nvme_report_zones()
Dmultipath.c708 ns->head->disk->queue->nr_zones = ns->queue->nr_zones; in nvme_mpath_add_disk()
/kernel/linux/linux-5.10/block/
Dblk-zoned.c156 unsigned int nr_zones, report_zones_cb cb, void *data) in blkdev_report_zones() argument
165 if (!nr_zones || sector >= capacity) in blkdev_report_zones()
168 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones()
302 if (!rep.nr_zones) in blkdev_report_zones_ioctl()
306 ret = blkdev_report_zones(bdev, rep.sector, rep.nr_zones, in blkdev_report_zones_ioctl()
311 rep.nr_zones = ret; in blkdev_report_zones_ioctl()
402 unsigned int nr_zones) in blk_alloc_zone_bitmap() argument
404 return kcalloc_node(BITS_TO_LONGS(nr_zones), sizeof(unsigned long), in blk_alloc_zone_bitmap()
420 unsigned int nr_zones; member
448 args->nr_zones = (capacity + zone->len - 1) >> ilog2(zone->len); in blk_revalidate_zone_cb()
[all …]
Dblk-mq-debugfs-zoned.c17 for (i = 0; i < q->nr_zones; i++) in queue_zone_wlock_show()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dblkzoned.h37 __u32 nr_zones; member
/kernel/linux/linux-5.10/drivers/md/
Ddm-zoned-reclaim.c450 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()
Ddm-zoned-metadata.c164 unsigned int nr_zones; member
265 return zmd->nr_zones; in dmz_nr_zones()
1447 for(idx = 0; idx < dev->nr_zones; idx++) { in dmz_emulate_zones()
1474 for(idx = 0; idx < zmd->nr_zones; idx++) { in dmz_drop_zones()
1504 zmd->nr_zones = 0; in dmz_init_zones()
1509 zmd->nr_zones += dev->nr_zones; in dmz_init_zones()
1520 if (!zmd->nr_zones) { in dmz_init_zones()
1527 zmd->devname, sizeof(struct dm_zone) * zmd->nr_zones); in dmz_init_zones()
1732 if (dzone_id >= zmd->nr_zones) { in dmz_load_mapping()
1760 if (bzone_id >= zmd->nr_zones) { in dmz_load_mapping()
[all …]
Ddm-linear.c140 struct dm_report_zones_args *args, unsigned int nr_zones) in linear_report_zones() argument
146 return blkdev_report_zones(lc->dev->bdev, sector, nr_zones, in linear_report_zones()
Ddm-zoned-target.c798 zoned_dev->nr_zones = in dmz_fixup_devices()
810 zoned_dev->nr_zones = blkdev_nr_zones(zoned_dev->bdev->bd_disk); in dmz_fixup_devices()
817 reg_dev->nr_zones = in dmz_fixup_devices()
821 zone_offset = reg_dev->nr_zones; in dmz_fixup_devices()
824 zone_offset += dmz->dev[i].nr_zones; in dmz_fixup_devices()
Ddm-flakey.c463 struct dm_report_zones_args *args, unsigned int nr_zones) in flakey_report_zones() argument
469 return blkdev_report_zones(fc->dev->bdev, sector, nr_zones, in flakey_report_zones()
Ddm-zoned.h66 unsigned int nr_zones; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dblkzoned.h55 __u32 nr_zones; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dblkzoned.h131 __u32 nr_zones; member
/kernel/linux/linux-5.10/Documentation/block/
Dnull_blk.rst129 zone_nr_conv >= nr_zones, it will be reduced to nr_zones - 1.
/kernel/linux/linux-5.10/include/linux/
Dpowercap.h67 int nr_zones; member
Dblkdev.h368 unsigned int nr_zones, report_zones_cb cb, void *data);
528 unsigned int nr_zones; member
745 return blk_queue_is_zoned(q) ? q->nr_zones : 0; in blk_queue_nr_zones()
1892 unsigned int nr_zones, report_zones_cb cb, void *data);
/kernel/linux/linux-5.10/fs/zonefs/
Dsuper.c447 unsigned int nr_zones = 1; in __zonefs_io_error() local
460 nr_zones = zi->i_zone_size >> in __zonefs_io_error()
472 ret = blkdev_report_zones(sb->s_bdev, zi->i_zsector, nr_zones, in __zonefs_io_error()
474 if (ret != nr_zones) in __zonefs_io_error()
1481 unsigned int nr_zones[ZONEFS_ZTYPE_MAX]; member
1501 if (!zd->nr_zones[type]) in zonefs_create_zgroup()
1595 zd->nr_zones[ZONEFS_ZTYPE_CNV]++; in zonefs_get_zone_info_cb()
1600 zd->nr_zones[ZONEFS_ZTYPE_SEQ]++; in zonefs_get_zone_info_cb()
/kernel/linux/linux-5.10/drivers/powercap/
Dpowercap_sys.c562 control_type->nr_zones++; in powercap_register_zone()
591 control_type->nr_zones--; in powercap_unregister_zone()
644 if (control_type->nr_zones) { in powercap_unregister_control_type()
/kernel/linux/linux-5.10/mm/
Dpage_alloc.c5786 int nr_zones = 0; in build_zonerefs_node() local
5792 zoneref_set_zone(zone, &zonerefs[nr_zones++]); in build_zonerefs_node()
5797 return nr_zones; in build_zonerefs_node()
5908 int nr_zones; in build_zonelists_in_node_order() local
5912 nr_zones = build_zonerefs_node(node, zonerefs); in build_zonelists_in_node_order()
5913 zonerefs += nr_zones; in build_zonelists_in_node_order()
5925 int nr_zones; in build_thisnode_zonelists() local
5928 nr_zones = build_zonerefs_node(pgdat, zonerefs); in build_thisnode_zonelists()
5929 zonerefs += nr_zones; in build_thisnode_zonelists()
5999 int nr_zones; in build_zonelists() local
[all …]
/kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/
Ddm-zoned.rst177 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

12