Lines Matching full:capacity

66 	zone.capacity = logical_to_sectors(sdp, get_unaligned_be64(&buf[8]));  in sd_zbc_parse_report()
67 zone.len = zone.capacity; in sd_zbc_parse_report()
72 "Invalid zone at LBA %llu with capacity %llu and length %llu; granularity = %llu\n", in sd_zbc_parse_report()
74 sectors_to_logical(sdp, zone.capacity), in sd_zbc_parse_report()
238 if (!sdkp->capacity) in sd_zbc_report_zones()
246 while (zone_idx < nr_zones && lba < sdkp->capacity) { in sd_zbc_report_zones()
458 * sd_zbc_check_capacity - Check the device capacity
463 * Get the device zone size and check that the device capacity as reported
464 * by READ CAPACITY matches the max_lba value (plus one) of the report zones
483 /* The max_lba field is the capacity of this device */ in sd_zbc_check_capacity()
485 if (sdkp->capacity != max_lba + 1) { in sd_zbc_check_capacity()
488 "Changing capacity from %llu to max LBA+1 %llu\n", in sd_zbc_check_capacity()
489 (unsigned long long)sdkp->capacity, in sd_zbc_check_capacity()
491 sdkp->capacity = max_lba + 1; in sd_zbc_check_capacity()
523 if (sdkp->device->type != TYPE_ZBC || !sdkp->capacity) in sd_zbc_print_zones()
526 if (sdkp->capacity & (sdkp->zone_info.zone_blocks - 1)) in sd_zbc_print_zones()
541 * sd_revalidate_disk() after the gendisk capacity has been set.
572 sdkp->capacity = 0; in sd_zbc_revalidate_zones()
589 * before the gendisk capacity has been set.
620 /* Check the device capacity reported by report zones */ in sd_zbc_read_zones()
625 nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks); in sd_zbc_read_zones()
642 sdkp->capacity = 0; in sd_zbc_read_zones()