Lines Matching refs:drive
71 * @drive: Drive to set up
76 static void cs5535_set_speed(ide_drive_t *drive, const u8 speed)
79 u8 unit = drive->dn & 1;
83 ide_drive_t *pair = ide_get_pair_dev(drive);
95 /* Write the speed of the current drive */
100 /* And if nessesary - change the speed of the other drive */
133 * @drive: drive
138 static void cs5535_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
140 cs5535_set_speed(drive, drive->dma_mode);
146 * @drive: drive
151 static void cs5535_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
153 cs5535_set_speed(drive, drive->pio_mode);