Lines Matching defs:capacity
62 zone.capacity = zone.len;
197 sector_t capacity = logical_to_sectors(sdkp->device, sdkp->capacity);
208 if (!capacity)
216 while (zone_idx < nr_zones && sector < capacity) {
585 * sd_zbc_check_capacity - Check the device capacity
590 * Get the device zone size and check that the device capacity as reported
610 /* The max_lba field is the capacity of this device */
612 if (sdkp->capacity != max_lba + 1) {
615 "Changing capacity from %llu to max LBA+1 %llu\n",
616 (unsigned long long)sdkp->capacity,
618 sdkp->capacity = max_lba + 1;
639 if (!sd_is_zoned(sdkp) || !sdkp->capacity)
642 if (sdkp->capacity & (sdkp->zone_blocks - 1))
743 sdkp->capacity = 0;
781 /* Check the device capacity reported by report zones */
794 nr_zones = round_up(sdkp->capacity, zone_blocks) >> ilog2(zone_blocks);
806 sdkp->capacity = 0;