Lines Matching refs: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 "
528 unsigned long long capacity;
534 * cache if the drive capacity is too large. By this
535 * time we have trimmed the drive capacity if LBA48 is
538 capacity = ide_gd_capacity(drive);
542 capacity <= (1ULL << 28) ||
659 unsigned long long capacity;
693 /* calculate drive capacity, and select LBA if possible */
700 capacity = ide_gd_capacity(drive);
710 unsigned int cap0 = capacity; /* truncate to 32 bits */
713 if (cap0 != capacity)
726 drive->name, capacity, sectors_to_MB(capacity));