Lines Matching refs:nr_zones
149 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()
647 sdkp->nr_zones - 1, in sd_zbc_print_zones()
652 sdkp->nr_zones, in sd_zbc_print_zones()
680 sdkp->nr_zones = 0; in sd_zbc_clear_zone_info()
706 unsigned int nr_zones = sdkp->rev_nr_zones; in sd_zbc_revalidate_zones() local
738 sdkp->nr_zones == nr_zones && in sd_zbc_revalidate_zones()
739 disk->queue->nr_zones == nr_zones) in sd_zbc_revalidate_zones()
744 sdkp->nr_zones = nr_zones; in sd_zbc_revalidate_zones()
745 sdkp->rev_wp_offset = kvcalloc(nr_zones, sizeof(u32), GFP_KERNEL); in sd_zbc_revalidate_zones()
760 sdkp->nr_zones = 0; in sd_zbc_revalidate_zones()
783 unsigned int nr_zones; in sd_zbc_read_zones() local
827 nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks); in sd_zbc_read_zones()
837 sdkp->rev_nr_zones = nr_zones; in sd_zbc_read_zones()