Lines Matching defs:set_max
300 u64 capacity, set_max;
303 set_max = idedisk_read_native_max_address(drive, lba48);
306 if (set_max == capacity + 1)
307 set_max--;
310 return set_max;
313 static u64 ide_disk_hpa_set_capacity(ide_drive_t *drive, u64 set_max, int lba48)
315 set_max = idedisk_set_max_address(drive, set_max, lba48);
316 if (set_max)
317 drive->capacity64 = set_max;
319 return set_max;
324 u64 capacity, set_max;
328 set_max = ide_disk_hpa_get_native_capacity(drive, lba48);
330 if (set_max <= capacity)
333 drive->probed_capacity = set_max;
340 set_max, sectors_to_MB(set_max));
345 set_max = ide_disk_hpa_set_capacity(drive, set_max, lba48);
346 if (set_max)