• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ide/

Lines Matching defs:drive

42 static unsigned int get_pio_timings(ide_drive_t *drive, u8 pio)
49 cmd_off = (ide_pio_cycle_time(drive, pio) - 30 * cmd_on + 29) / 30;
57 if (ide_pio_need_iordy(drive, pio))
66 static void sl82c105_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
69 unsigned long timings = (unsigned long)ide_get_drivedata(drive);
70 int reg = 0x44 + drive->dn * 4;
72 const u8 pio = drive->pio_mode - XFER_PIO_0;
74 drv_ctrl = get_pio_timings(drive, pio);
82 ide_set_drivedata(drive, (void *)timings);
87 printk(KERN_DEBUG "%s: selected %s (%dns) (%04X)\n", drive->name,
89 ide_pio_cycle_time(drive, pio), drv_ctrl);
95 static void sl82c105_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
98 unsigned long timings = (unsigned long)ide_get_drivedata(drive);
100 const u8 speed = drive->dma_mode;
110 ide_set_drivedata(drive, (void *)timings);
136 * This function is called when the IDE timer expires, the drive
139 static void sl82c105_dma_lost_irq(ide_drive_t *drive)
141 ide_hwif_t *hwif = drive->hwif;
149 * Check the raw interrupt from the drive.
153 printk(KERN_INFO "sl82c105: drive was requesting IRQ, "
158 * host. The IDE layer will be handling the drive for us.
177 static void sl82c105_dma_start(ide_drive_t *drive)
179 ide_hwif_t *hwif = drive->hwif;
181 int reg = 0x44 + drive->dn * 4;
184 (unsigned long)ide_get_drivedata(drive) >> 16);
187 ide_dma_start(drive);
190 static void sl82c105_dma_clear(ide_drive_t *drive)
192 struct pci_dev *dev = to_pci_dev(drive->hwif->dev);
197 static int sl82c105_dma_end(ide_drive_t *drive)
199 struct pci_dev *dev = to_pci_dev(drive->hwif->dev);
200 int reg = 0x44 + drive->dn * 4;
201 int ret = ide_dma_end(drive);
204 (unsigned long)ide_get_drivedata(drive));
213 static void sl82c105_resetproc(ide_drive_t *drive)
215 struct pci_dev *dev = to_pci_dev(drive->hwif->dev);