Lines Matching refs:drive

107 static void tx4939ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
109 int is_slave = drive->dn;
111 const u8 pio = drive->pio_mode - XFER_PIO_0;
115 pair = ide_get_pair_dev(drive);
120 * Transfer Mode for this drive.
128 static void tx4939ide_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
131 const u8 mode = drive->dma_mode;
133 /* Update Data Transfer Mode for this drive. */
138 if (drive->dn) {
173 static void tx4939ide_clear_irq(ide_drive_t *drive)
183 if (drive->waiting_for_dma)
185 hwif = drive->hwif;
200 static void tx4939ide_dma_host_set(ide_drive_t *drive, int on)
202 ide_hwif_t *hwif = drive->hwif;
203 u8 unit = drive->dn;
234 static int tx4939ide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd)
236 ide_hwif_t *hwif = drive->hwif;
278 printk(KERN_ERR "%s: %s\n", drive->name,
287 static int tx4939ide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd)
289 ide_hwif_t *hwif = drive->hwif;
294 if (tx4939ide_build_dmatable(drive, cmd) == 0)
306 tx4939ide_writew(SECTOR_SIZE / 2, base, drive->dn ?
314 static int tx4939ide_dma_end(ide_drive_t *drive)
316 ide_hwif_t *hwif = drive->hwif;
342 static int tx4939ide_dma_test_irq(ide_drive_t *drive)
344 ide_hwif_t *hwif = drive->hwif;
420 static void tx4939ide_tf_load_fixup(ide_drive_t *drive)
422 ide_hwif_t *hwif = drive->hwif;
424 u16 sysctl = hwif->select_data >> (drive->dn ? 16 : 0);
435 static void tx4939ide_tf_load(ide_drive_t *drive, struct ide_taskfile *tf,
438 ide_tf_load(drive, tf, valid);
441 tx4939ide_tf_load_fixup(drive);
447 static void tx4939ide_input_data_swap(ide_drive_t *drive, struct ide_cmd *cmd,
450 unsigned long port = drive->hwif->io_ports.data_addr;
459 static void tx4939ide_output_data_swap(ide_drive_t *drive, struct ide_cmd *cmd,
462 unsigned long port = drive->hwif->io_ports.data_addr;