Lines Matching defs:set_max
300 u64 capacity, set_max;
303 set_max = idedisk_read_native_max_address(drive, lba48);
310 if (set_max == capacity + 1)
311 set_max--;
314 return set_max;
317 static u64 ide_disk_hpa_set_capacity(ide_drive_t *drive, u64 set_max, int lba48)
319 set_max = idedisk_set_max_address(drive, set_max, lba48);
320 if (set_max)
321 drive->capacity64 = set_max;
323 return set_max;
328 u64 capacity, set_max;
332 set_max = ide_disk_hpa_get_native_capacity(drive, lba48);
334 if (set_max <= capacity)
337 drive->probed_capacity = set_max;
344 set_max, sectors_to_MB(set_max));
349 set_max = ide_disk_hpa_set_capacity(drive, set_max, lba48);
350 if (set_max)