Home
last modified time | relevance | path

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

/drivers/scsi/
Dsd_zbc.c149 unsigned int nr_zones, size_t *buflen) in sd_zbc_alloc_report_buffer() argument
164 nr_zones = min(nr_zones, sdkp->nr_zones); in sd_zbc_alloc_report_buffer()
165 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
193 unsigned int nr_zones, report_zones_cb cb, void *data) in sd_zbc_report_zones() argument
211 buf = sd_zbc_alloc_report_buffer(sdkp, nr_zones, &buflen); in sd_zbc_report_zones()
215 while (zone_idx < nr_zones && sector < capacity) { in sd_zbc_report_zones()
222 nr = min(nr_zones, get_unaligned_be32(&buf[0]) / 64); in sd_zbc_report_zones()
226 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()
494 sdkp->nr_zones * sizeof(unsigned int)); in sd_zbc_zone_wp_update()
[all …]
Dsd.h77 u32 nr_zones; member
230 unsigned int nr_zones, report_zones_cb cb, void *data);
Dscsi_debug.c295 unsigned int nr_zones; member
2674 return devip->nr_zones != 0; in sdebug_dev_is_zoned()
2718 for (i = 0; i < devip->nr_zones; i++, zsp++) { in zbc_close_imp_open_zone()
4366 max_zones = devip->nr_zones - (zs_lba >> devip->zsize_shift); in resp_report_zones()
4476 for (i = 0; i < devip->nr_zones; i++, zsp++) { in zbc_open_all()
4555 for (i = 0; i < devip->nr_zones; i++) in zbc_close_all()
4628 for (i = 0; i < devip->nr_zones; i++) in zbc_finish_all()
4710 for (i = 0; i < devip->nr_zones; i++) in zbc_rwp_all()
4910 devip->nr_zones = (capacity + devip->zsize - 1) >> devip->zsize_shift; in sdebug_device_create_zones()
4912 if (sdeb_zbc_nr_conv >= devip->nr_zones) { in sdebug_device_create_zones()
[all …]
/drivers/md/
Ddm-zone.c21 sector_t sector, unsigned int nr_zones, in dm_blk_do_report_zones() argument
41 nr_zones - args.zone_idx); in dm_blk_do_report_zones()
44 } while (args.zone_idx < nr_zones && in dm_blk_do_report_zones()
56 unsigned int nr_zones, report_zones_cb cb, void *data) in dm_blk_report_zones() argument
69 ret = dm_blk_do_report_zones(md, map, sector, nr_zones, cb, data); in dm_blk_report_zones()
111 struct dm_report_zones_args *args, unsigned int nr_zones) in dm_report_zones() argument
119 return blkdev_report_zones(bdev, sector, nr_zones, in dm_report_zones()
154 md->nr_zones = 0; in dm_cleanup_zoned_dev()
189 kcalloc(BITS_TO_LONGS(q->nr_zones), in dm_zone_revalidate_cb()
200 kcalloc(BITS_TO_LONGS(q->nr_zones), in dm_zone_revalidate_cb()
[all …]
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.c146 struct dm_report_zones_args *args, unsigned int nr_zones) in linear_report_zones() argument
152 args, nr_zones); in linear_report_zones()
Ddm-zoned-target.c797 zoned_dev->nr_zones = in dmz_fixup_devices()
809 zoned_dev->nr_zones = blkdev_nr_zones(zoned_dev->bdev->bd_disk); in dmz_fixup_devices()
816 reg_dev->nr_zones = in dmz_fixup_devices()
820 zone_offset = reg_dev->nr_zones; in dmz_fixup_devices()
823 zone_offset += dmz->dev[i].nr_zones; in dmz_fixup_devices()
Ddm-flakey.c474 struct dm_report_zones_args *args, unsigned int nr_zones) in flakey_report_zones() argument
480 args, nr_zones); in flakey_report_zones()
Ddm-core.h124 unsigned int nr_zones; member
Ddm.h113 unsigned int nr_zones, report_zones_cb cb, void *data);
Ddm-zoned.h66 unsigned int nr_zones; member
Ddm-crypt.c3148 struct dm_report_zones_args *args, unsigned int nr_zones) in crypt_report_zones() argument
3154 args, nr_zones); in crypt_report_zones()
/drivers/block/null_blk/
Dzoned.c86 dev->nr_zones = round_up(dev_capacity_sects, dev->zone_size_sects) in null_init_zoned_dev()
89 dev->zones = kvmalloc_array(dev->nr_zones, sizeof(struct nullb_zone), in null_init_zoned_dev()
96 if (dev->zone_nr_conv >= dev->nr_zones) { in null_init_zoned_dev()
97 dev->zone_nr_conv = dev->nr_zones - 1; in null_init_zoned_dev()
103 if (dev->zone_max_active >= dev->nr_zones - dev->zone_nr_conv) { in null_init_zoned_dev()
112 dev->nr_zones); in null_init_zoned_dev()
113 } else if (dev->zone_max_open >= dev->nr_zones - dev->zone_nr_conv) { in null_init_zoned_dev()
134 for (i = dev->zone_nr_conv; i < dev->nr_zones; i++) { in null_init_zoned_dev()
170 q->nr_zones = blkdev_nr_zones(nullb->disk); in null_register_zoned_dev()
187 unsigned int nr_zones, report_zones_cb cb, void *data) in null_report_zones() argument
[all …]
Dtrace.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.h67 unsigned int nr_zones; member
133 unsigned int nr_zones, report_zones_cb cb, void *data);
/drivers/nvme/host/
Dzns.c122 unsigned int nr_zones, size_t *buflen) in nvme_zns_alloc_report_buffer() argument
131 nr_zones = min_t(unsigned int, nr_zones, in nvme_zns_alloc_report_buffer()
135 nr_zones * sizeof(struct nvme_zone_descriptor); in nvme_zns_alloc_report_buffer()
175 unsigned int nr_zones, report_zones_cb cb, void *data) in nvme_ns_report_zones() argument
186 report = nvme_zns_alloc_report_buffer(ns, nr_zones, &buflen); in nvme_ns_report_zones()
198 while (zone_idx < nr_zones && sector < get_capacity(ns->disk)) { in nvme_ns_report_zones()
209 nz = min((unsigned int)le64_to_cpu(report->nr_zones), nr_zones); in nvme_ns_report_zones()
213 for (i = 0; i < nz && zone_idx < nr_zones; i++) { in nvme_ns_report_zones()
Dmultipath.c374 unsigned int nr_zones, report_zones_cb cb, void *data) in nvme_ns_head_report_zones() argument
383 ret = nvme_ns_report_zones(ns, sector, nr_zones, cb, data); in nvme_ns_head_report_zones()
805 ns->head->disk->queue->nr_zones = ns->queue->nr_zones; in nvme_mpath_add_disk()
Dnvme.h902 unsigned int nr_zones, report_zones_cb cb, void *data);
Dcore.c2149 unsigned int nr_zones, report_zones_cb cb, void *data) in nvme_report_zones() argument
2151 return nvme_ns_report_zones(disk->private_data, sector, nr_zones, cb, in nvme_report_zones()
/drivers/nvme/target/
Dzns.c210 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()
278 __le64 nr_zones; in nvmet_bdev_zone_zmgmt_recv_work() local
286 .nr_zones = 0, in nvmet_bdev_zone_zmgmt_recv_work()
311 rz_data.nr_zones = min(rz_data.nr_zones, rz_data.out_nr_zones); in nvmet_bdev_zone_zmgmt_recv_work()
313 nr_zones = cpu_to_le64(rz_data.nr_zones); in nvmet_bdev_zone_zmgmt_recv_work()
314 status = nvmet_copy_to_sgl(req, 0, &nr_zones, sizeof(nr_zones)); in nvmet_bdev_zone_zmgmt_recv_work()
404 unsigned int nr_zones = blkdev_nr_zones(bdev->bd_disk); in nvmet_bdev_zone_mgmt_emulate_all() local
413 d.zbitmap = kcalloc_node(BITS_TO_LONGS(nr_zones), sizeof(*(d.zbitmap)), in nvmet_bdev_zone_mgmt_emulate_all()
[all …]
/drivers/powercap/
Dpowercap_sys.c565 control_type->nr_zones++; in powercap_register_zone()
594 control_type->nr_zones--; in powercap_unregister_zone()
647 if (control_type->nr_zones) { in powercap_unregister_control_type()