• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/ide/

Lines Matching refs:drive

203  *	@drive: drive
209 static void scc_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
218 const u8 pio = drive->pio_mode - XFER_PIO_0;
235 * @drive: drive
241 static void scc_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
252 int is_slave = drive->dn & 1;
256 const u8 speed = drive->dma_mode;
282 static void scc_dma_host_set(ide_drive_t *drive, int on)
284 ide_hwif_t *hwif = drive->hwif;
285 u8 unit = drive->dn & 1;
298 * @drive: target device
308 static int scc_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd)
310 ide_hwif_t *hwif = drive->hwif;
315 if (ide_build_dmatable(drive, cmd) == 0)
333 static void scc_dma_start(ide_drive_t *drive)
335 ide_hwif_t *hwif = drive->hwif;
342 static int __scc_dma_end(ide_drive_t *drive)
344 ide_hwif_t *hwif = drive->hwif;
361 * @drive: IDE drive
367 static int scc_dma_end(ide_drive_t *drive)
369 ide_hwif_t *hwif = drive->hwif;
379 drive->media == ide_disk && drive->current_speed > XFER_UDMA_4) {
383 drive->name);
387 ide_drive_t *drive;
390 /* ERROR_RESET and drive->crc_count are needed
396 ide_port_for_each_dev(i, drive, hwif)
397 drive->crc_count++;
448 ide_do_reset(drive);
469 dma_stat = __scc_dma_end(drive);
476 static int scc_dma_test_irq(ide_drive_t *drive)
478 ide_hwif_t *hwif = drive->hwif;
492 static u8 scc_udma_filter(ide_drive_t *drive)
494 ide_hwif_t *hwif = drive->hwif;
497 if ((drive->media != ide_disk) && (mask & 0xE0)) {
499 SCC_PATA_NAME, drive->name);
643 static void scc_tf_load(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid)
645 struct ide_io_ports *io_ports = &drive->hwif->io_ports;
661 static void scc_tf_read(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid)
663 struct ide_io_ports *io_ports = &drive->hwif->io_ports;
679 static void scc_input_data(ide_drive_t *drive, struct ide_cmd *cmd,
682 unsigned long data_addr = drive->hwif->io_ports.data_addr;
686 if (drive->io_32bit) {
695 static void scc_output_data(ide_drive_t *drive, struct ide_cmd *cmd,
698 unsigned long data_addr = drive->hwif->io_ports.data_addr;
702 if (drive->io_32bit) {