Lines Matching refs:drive

93 static void au1xxx_input_data(ide_drive_t *drive, struct ide_cmd *cmd,  in au1xxx_input_data()  argument
96 auide_insw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); in au1xxx_input_data()
99 static void au1xxx_output_data(ide_drive_t *drive, struct ide_cmd *cmd, in au1xxx_output_data() argument
102 auide_outsw(drive->hwif->io_ports.data_addr, buf, (len + 1) / 2); in au1xxx_output_data()
106 static void au1xxx_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in au1xxx_set_pio_mode() argument
110 switch (drive->pio_mode - XFER_PIO_0) { in au1xxx_set_pio_mode()
167 static void auide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive) in auide_set_dma_mode() argument
171 switch (drive->dma_mode) { in auide_set_dma_mode()
215 static int auide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd) in auide_build_dmatable() argument
217 ide_hwif_t *hwif = drive->hwif; in auide_build_dmatable()
224 ahwif->drive = drive; in auide_build_dmatable()
241 drive->name); in auide_build_dmatable()
278 static int auide_dma_end(ide_drive_t *drive) in auide_dma_end() argument
283 static void auide_dma_start(ide_drive_t *drive ) in auide_dma_start() argument
288 static int auide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) in auide_dma_setup() argument
290 if (auide_build_dmatable(drive, cmd) == 0) in auide_dma_setup()
296 static int auide_dma_test_irq(ide_drive_t *drive) in auide_dma_test_irq() argument
301 drive->waiting_for_dma++; in auide_dma_test_irq()
302 if (drive->waiting_for_dma >= DMA_WAIT_TIMEOUT) { in auide_dma_test_irq()
304 drive->name); in auide_dma_test_irq()
311 static void auide_dma_host_set(ide_drive_t *drive, int on) in auide_dma_host_set() argument