Lines Matching refs:nr_zones
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()
444 unsigned int nr_zones; member
494 blk_alloc_zone_bitmap(q->node, args->nr_zones); in blk_revalidate_zone_cb()
504 blk_alloc_zone_bitmap(q->node, args->nr_zones); in blk_revalidate_zone_cb()
574 args.nr_zones = (capacity + zone_sectors - 1) >> ilog2(zone_sectors); in blk_revalidate_disk_zones()
601 disk->nr_zones = args.nr_zones; in blk_revalidate_disk_zones()
628 disk->nr_zones = 0; in disk_clear_zone_settings()