Lines Matching refs:nr_zones
192 u64 nr_zones; member
213 if (rz->nr_zones < rz->out_nr_zones) { in nvmet_bdev_report_zone_cb()
232 rz->nr_zones++; in nvmet_bdev_report_zone_cb()
260 __le64 nr_zones; in nvmet_bdev_zone_zmgmt_recv_work() local
268 .nr_zones = 0, in nvmet_bdev_zone_zmgmt_recv_work()
293 rz_data.nr_zones = min(rz_data.nr_zones, rz_data.out_nr_zones); in nvmet_bdev_zone_zmgmt_recv_work()
295 nr_zones = cpu_to_le64(rz_data.nr_zones); in nvmet_bdev_zone_zmgmt_recv_work()
296 status = nvmet_copy_to_sgl(req, 0, &nr_zones, sizeof(nr_zones)); in nvmet_bdev_zone_zmgmt_recv_work()
386 unsigned int nr_zones = blkdev_nr_zones(bdev->bd_disk); in nvmet_bdev_zone_mgmt_emulate_all() local
395 d.zbitmap = kcalloc_node(BITS_TO_LONGS(nr_zones), sizeof(*(d.zbitmap)), in nvmet_bdev_zone_mgmt_emulate_all()
403 ret = blkdev_report_zones(bdev, 0, nr_zones, zmgmt_send_scan_cb, &d); in nvmet_bdev_zone_mgmt_emulate_all()
404 if (ret != nr_zones) { in nvmet_bdev_zone_mgmt_emulate_all()