Lines Matching full:capacity
62 zone.capacity = zone.len; in sd_zbc_parse_report()
197 sector_t capacity = logical_to_sectors(sdkp->device, sdkp->capacity); in sd_zbc_report_zones() local
208 if (!capacity) in sd_zbc_report_zones()
216 while (zone_idx < nr_zones && sector < capacity) { in sd_zbc_report_zones()
585 * sd_zbc_check_capacity - Check the device capacity
590 * Get the device zone size and check that the device capacity as reported
591 * by READ CAPACITY matches the max_lba value (plus one) of the report zones
610 /* The max_lba field is the capacity of this device */ in sd_zbc_check_capacity()
612 if (sdkp->capacity != max_lba + 1) { in sd_zbc_check_capacity()
615 "Changing capacity from %llu to max LBA+1 %llu\n", in sd_zbc_check_capacity()
616 (unsigned long long)sdkp->capacity, in sd_zbc_check_capacity()
618 sdkp->capacity = max_lba + 1; in sd_zbc_check_capacity()
639 if (!sd_is_zoned(sdkp) || !sdkp->capacity) in sd_zbc_print_zones()
642 if (sdkp->capacity & (sdkp->zone_blocks - 1)) in sd_zbc_print_zones()
739 sdkp->capacity = 0; in sd_zbc_revalidate_zones()
777 /* Check the device capacity reported by report zones */ in sd_zbc_read_zones()
790 nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks); in sd_zbc_read_zones()
802 sdkp->capacity = 0; in sd_zbc_read_zones()