Lines Matching defs:drive
89 static void au1xxx_input_data(ide_drive_t *drive, struct ide_cmd *cmd,
92 auide_insw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2);
95 static void au1xxx_output_data(ide_drive_t *drive, struct ide_cmd *cmd,
98 auide_outsw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2);
102 static void au1xxx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
106 switch (drive->pio_mode - XFER_PIO_0) {
163 static void auide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
167 switch (drive->dma_mode) {
211 static int auide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd)
213 ide_hwif_t *hwif = drive->hwif;
220 ahwif->drive = drive;
237 drive->name);
274 static int auide_dma_end(ide_drive_t *drive)
279 static void auide_dma_start(ide_drive_t *drive )
284 static int auide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd)
286 if (auide_build_dmatable(drive, cmd) == 0)
292 static int auide_dma_test_irq(ide_drive_t *drive)
297 drive->waiting_for_dma++;
298 if (drive->waiting_for_dma >= DMA_WAIT_TIMEOUT) {
300 drive->name);
307 static void auide_dma_host_set(ide_drive_t *drive, int on)