Lines Matching refs:max_sectors
1163 static int ata_read_native_max_address(struct ata_device *dev, u64 *max_sectors) in ata_read_native_max_address() argument
1194 *max_sectors = ata_tf_to_lba48(&tf) + 1; in ata_read_native_max_address()
1196 *max_sectors = ata_tf_to_lba(&tf) + 1; in ata_read_native_max_address()
1198 (*max_sectors)--; in ata_read_native_max_address()
2571 dev->max_sectors = 0; in ata_dev_configure()
2712 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
2714 dev->max_sectors = ATA_MAX_SECTORS_LBA48; in ata_dev_configure()
2722 dev->max_sectors = ATA_MAX_SECTORS; in ata_dev_configure()
2727 dev->max_sectors = ATA_MAX_SECTORS_TAPE; in ata_dev_configure()
2732 dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128, in ata_dev_configure()
2733 dev->max_sectors); in ata_dev_configure()
2736 dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_1024, in ata_dev_configure()
2737 dev->max_sectors); in ata_dev_configure()
2740 dev->max_sectors = ATA_MAX_SECTORS_LBA48; in ata_dev_configure()