Lines Matching refs:drive
81 static void sc1200_tunepio(ide_drive_t *drive, u8 pio) in sc1200_tunepio() argument
83 ide_hwif_t *hwif = drive->hwif; in sc1200_tunepio()
91 pci_write_config_dword(pdev, basereg + ((drive->dn & 1) << 3), in sc1200_tunepio()
104 static u8 sc1200_udma_filter(ide_drive_t *drive) in sc1200_udma_filter() argument
106 ide_hwif_t *hwif = drive->hwif; in sc1200_udma_filter()
107 ide_drive_t *mate = ide_get_pair_dev(drive); in sc1200_udma_filter()
126 static void sc1200_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sc1200_set_dma_mode() argument
132 const u8 mode = drive->dma_mode; in sc1200_set_dma_mode()
158 if ((drive->dn & 1) == 0) { in sc1200_set_dma_mode()
171 static int sc1200_dma_end(ide_drive_t *drive) in sc1200_dma_end() argument
173 ide_hwif_t *hwif = drive->hwif; in sc1200_dma_end()
197 static void sc1200_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in sc1200_set_pio_mode() argument
200 const u8 pio = drive->pio_mode - XFER_PIO_0; in sc1200_set_pio_mode()
214 printk("SC1200: %s: changing (U)DMA mode\n", drive->name); in sc1200_set_pio_mode()
215 ide_dma_off_quietly(drive); in sc1200_set_pio_mode()
216 if (ide_set_dma_mode(drive, mode) == 0 && in sc1200_set_pio_mode()
217 (drive->dev_flags & IDE_DFLAG_USING_DMA)) in sc1200_set_pio_mode()
218 hwif->dma_ops->dma_host_set(drive, 1); in sc1200_set_pio_mode()
222 sc1200_tunepio(drive, pio); in sc1200_set_pio_mode()