Lines Matching refs:drive
17 static void tc86c001_set_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tc86c001_set_mode() argument
19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); in tc86c001_set_mode()
21 const u8 speed = drive->dma_mode; in tc86c001_set_mode()
45 static void tc86c001_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive) in tc86c001_set_pio_mode() argument
47 drive->dma_mode = drive->pio_mode; in tc86c001_set_pio_mode()
48 tc86c001_set_mode(hwif, drive); in tc86c001_set_pio_mode()
65 static int tc86c001_timer_expiry(ide_drive_t *drive) in tc86c001_timer_expiry() argument
67 ide_hwif_t *hwif = drive->hwif; in tc86c001_timer_expiry()
76 unsigned long twcr_port = sc_base + (drive->dn ? 0x06 : 0x04); in tc86c001_timer_expiry()
80 "attempting recovery...\n", drive->name); in tc86c001_timer_expiry()
106 return expiry(drive); in tc86c001_timer_expiry()
112 static void tc86c001_dma_start(ide_drive_t *drive) in tc86c001_dma_start() argument
114 ide_hwif_t *hwif = drive->hwif; in tc86c001_dma_start()
116 unsigned long twcr_port = sc_base + (drive->dn ? 0x06 : 0x04); in tc86c001_dma_start()
131 ide_dma_start(drive); in tc86c001_dma_start()