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()
242 if (!sdkp->capacity) in sd_zbc_report_zones()
250 while (zone_idx < nr_zones && lba < sdkp->capacity) { in sd_zbc_report_zones()
462 * sd_zbc_check_capacity - Check the device capacity
467 * Get the device zone size and check that the device capacity as reported
468 * by READ CAPACITY matches the max_lba value (plus one) of the report zones
487 /* The max_lba field is the capacity of this device */ in sd_zbc_check_capacity()
489 if (sdkp->capacity != max_lba + 1) { in sd_zbc_check_capacity()
492 "Changing capacity from %llu to max LBA+1 %llu\n", in sd_zbc_check_capacity()
493 (unsigned long long)sdkp->capacity, in sd_zbc_check_capacity()
495 sdkp->capacity = max_lba + 1; in sd_zbc_check_capacity()
527 if (sdkp->device->type != TYPE_ZBC || !sdkp->capacity) in sd_zbc_print_zones()
530 if (sdkp->capacity & (sdkp->zone_info.zone_blocks - 1)) in sd_zbc_print_zones()
545 * sd_revalidate_disk() after the gendisk capacity has been set.
576 sdkp->capacity = 0; in sd_zbc_revalidate_zones()
593 * before the gendisk capacity has been set.
624 /* Check the device capacity reported by report zones */ in sd_zbc_read_zones()
629 nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks); in sd_zbc_read_zones()
644 sdkp->capacity = 0; in sd_zbc_read_zones()