Lines Matching defs:capacity
203 * Queries for true maximum capacity of the drive.
300 u64 capacity, set_max;
302 capacity = drive->capacity64;
310 if (set_max == capacity + 1)
328 u64 capacity, set_max;
331 capacity = drive->capacity64;
334 if (set_max <= capacity)
340 "\tcurrent capacity is %llu sectors (%llu MB)\n"
341 "\tnative capacity is %llu sectors (%llu MB)\n",
343 capacity, sectors_to_MB(capacity),
381 * then we may need to change our opinion about its capacity.
387 /* limit drive capacity to 137GB if LBA48 cannot be used */
390 printk(KERN_WARNING "%s: cannot use LBA48 - full capacity "
529 unsigned long long capacity;
535 * cache if the drive capacity is too large. By this
536 * time we have trimmed the drive capacity if LBA48 is
539 capacity = ide_gd_capacity(drive);
543 capacity <= (1ULL << 28) ||
660 unsigned long long capacity;
692 /* calculate drive capacity, and select LBA if possible */
699 capacity = ide_gd_capacity(drive);
709 unsigned int cap0 = capacity; /* truncate to 32 bits */
712 if (cap0 != capacity)
725 drive->name, capacity, sectors_to_MB(capacity));