Lines Matching refs:nr_zones
148 unsigned int nr_zones, report_zones_cb cb, void *data) in blkdev_report_zones() argument
157 if (!nr_zones || sector >= capacity) in blkdev_report_zones()
160 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones()
165 unsigned int nr_zones) in blk_alloc_zone_bitmap() argument
167 return kcalloc_node(BITS_TO_LONGS(nr_zones), sizeof(unsigned long), in blk_alloc_zone_bitmap()
201 need_reset = blk_alloc_zone_bitmap(q->node, q->nr_zones); in blkdev_zone_reset_all_emulated()
206 q->nr_zones, blk_zone_need_reset_cb, in blkdev_zone_reset_all_emulated()
366 if (!rep.nr_zones) in blkdev_report_zones_ioctl()
370 ret = blkdev_report_zones(bdev, rep.sector, rep.nr_zones, in blkdev_report_zones_ioctl()
375 rep.nr_zones = ret; in blkdev_report_zones_ioctl()
472 unsigned int nr_zones; member
500 args->nr_zones = (capacity + zone->len - 1) >> ilog2(zone->len); in blk_revalidate_zone_cb()
527 blk_alloc_zone_bitmap(q->node, args->nr_zones); in blk_revalidate_zone_cb()
537 blk_alloc_zone_bitmap(q->node, args->nr_zones); in blk_revalidate_zone_cb()
615 q->nr_zones = args.nr_zones; in blk_revalidate_disk_zones()
640 q->nr_zones = 0; in blk_queue_clear_zone_settings()