Lines Matching refs:drive
84 static void aec6210_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in aec6210_set_mode() argument
92 const u8 speed = drive->dma_mode; in aec6210_set_mode()
97 pci_read_config_word(dev, 0x40|(2*drive->dn), &d_conf); in aec6210_set_mode()
100 pci_write_config_word(dev, 0x40|(2*drive->dn), d_conf); in aec6210_set_mode()
105 tmp1 = ((0x00 << (2*drive->dn)) | (ultra & ~(3 << (2*drive->dn)))); in aec6210_set_mode()
107 tmp2 = ((ultra_conf << (2*drive->dn)) | (tmp1 & ~(3 << (2*drive->dn)))); in aec6210_set_mode()
112 static void aec6260_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in aec6260_set_mode() argument
117 u8 unit = drive->dn & 1; in aec6260_set_mode()
120 const u8 speed = drive->dma_mode; in aec6260_set_mode()
125 pci_read_config_byte(dev, 0x40|drive->dn, &drive_conf); in aec6260_set_mode()
127 pci_write_config_byte(dev, 0x40|drive->dn, drive_conf); in aec6260_set_mode()
137 static void aec_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in aec_set_pio_mode() argument
139 drive->dma_mode = drive->pio_mode; in aec_set_pio_mode()
140 hwif->port_ops->set_dma_mode(hwif, drive); in aec_set_pio_mode()