Lines Matching refs:drive
40 static void it8172_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
45 const u8 pio = drive->pio_mode - XFER_PIO_0;
65 drive_enables &= drive->dn ? 0xc006 : 0xc060;
66 if (drive->media == ide_disk)
68 drive_enables |= 0x0004 << (drive->dn * 4);
69 if (ide_pio_need_iordy(drive, pio))
71 drive_enables |= 0x0002 << (drive->dn * 4);
73 drive_timing &= drive->dn ? 0x00003f00 : 0x000fc000;
74 drive_timing |= timings[pio] << (drive->dn * 6 + 8);
80 static void it8172_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
83 int a_speed = 3 << (drive->dn * 4);
84 int u_flag = 1 << drive->dn;
87 const u8 speed = drive->dma_mode;
94 u_speed = udma << (drive->dn * 4);
105 drive->pio_mode =
108 it8172_set_pio_mode(hwif, drive);