Lines Matching refs:drive
45 * @drive: drive
53 static void cs5530_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
57 const u8 pio = drive->pio_mode - XFER_PIO_0;
59 outl(cs5530_pio_timings[format][pio], basereg + ((drive->dn & 1)<<3));
64 * @drive: drive
66 * cs5530_udma_filter() does UDMA mask filtering for the given drive
71 * different timings can still be chosen for each drive. We could
74 * by looking at our mate drive to see what it is capable of, before
75 * choosing a mode for our own drive.
81 static u8 cs5530_udma_filter(ide_drive_t *drive)
83 ide_hwif_t *hwif = drive->hwif;
84 ide_drive_t *mate = ide_get_pair_dev(drive);
103 static void cs5530_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
108 switch (drive->dma_mode) {
119 if ((drive-> dn & 1) == 0) { /* are we configuring drive0? */
226 * performs channel-specific pre-initialization before drive probing.