Lines Matching refs:drive

23  *	drive to "Single". "Master" will hang.
114 static inline unsigned long siimage_seldev(ide_drive_t *drive, int r)
116 ide_hwif_t *hwif = drive->hwif;
118 u8 unit = drive->dn & 1;
187 * @drive: IDE device
195 static u8 sil_pata_udma_filter(ide_drive_t *drive)
197 ide_hwif_t *hwif = drive->hwif;
223 static u8 sil_sata_udma_filter(ide_drive_t *drive)
225 char *m = (char *)&drive->id[ATA_ID_PROD];
233 * @drive: drive
239 static void sil_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
245 ide_drive_t *pair = ide_get_pair_dev(drive);
248 unsigned long addr = siimage_seldev(drive, 0x04);
251 const u8 pio = drive->pio_mode - XFER_PIO_0;
257 u8 unit = drive->dn & 1;
281 if (ide_pio_need_iordy(drive, pio)) {
293 * @drive: drive
298 static void sil_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
307 u8 mode = 0, unit = drive->dn & 1;
311 unsigned long ma = siimage_seldev(drive, 0x08);
312 unsigned long ua = siimage_seldev(drive, 0x0C);
313 const u8 speed = drive->dma_mode;
353 * @drive: drive we are testing
359 static int siimage_mmio_dma_test_irq(ide_drive_t *drive)
361 ide_hwif_t *hwif = drive->hwif;
377 drive->name, sata_error, watchdog, __func__);
393 static int siimage_dma_test_irq(ide_drive_t *drive)
395 if (drive->hwif->host_flags & IDE_HFLAG_MMIO)
396 return siimage_mmio_dma_test_irq(drive);
398 return ide_dma_test_irq(drive);
403 * @drive: drive we are resetting
409 static blk_status_t sil_sata_reset_poll(ide_drive_t *drive)
411 ide_hwif_t *hwif = drive->hwif;
431 * @drive: IDE device being reset
437 static void sil_sata_pre_reset(ide_drive_t *drive)
439 if (drive->media == ide_disk) {
440 drive->special_flags &=
605 static int is_dev_seagate_sata(ide_drive_t *drive)
607 const char *s = (const char *)&drive->id[ATA_ID_PROD];
614 "errata fix\n", drive->name);
623 * @drive: drive
625 * Called after drive probe we use this to decide whether the
630 static void sil_quirkproc(ide_drive_t *drive)
632 ide_hwif_t *hwif = drive->hwif;
635 if (!is_sata(hwif) || !is_dev_seagate_sata(drive))