Lines Matching refs:drive
12 * @drive: the drive to place in DMA mode
14 * If the drive supports at least mode 2 DMA or UDMA of any kind
18 * on the good/bad drive lists.
21 int config_drive_for_dma(ide_drive_t *drive)
23 ide_hwif_t *hwif = drive->hwif;
24 u16 *id = drive->id;
26 if (drive->media != ide_disk) {
32 * Enable DMA on any drive that has
40 * Enable DMA on any drive that has mode2 DMA
48 if (ide_dma_good_drive(drive))
77 * @drive: drive to control
83 void ide_dma_host_set(ide_drive_t *drive, int on)
85 ide_hwif_t *hwif = drive->hwif;
86 u8 unit = drive->dn & 1;
115 int ide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd)
117 ide_hwif_t *hwif = drive->hwif;
167 printk(KERN_ERR "%s: %s\n", drive->name,
176 * @drive: target device
188 int ide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd)
190 ide_hwif_t *hwif = drive->hwif;
196 if (ide_build_dmatable(drive, cmd) == 0) {
197 ide_map_sg(drive, cmd);
226 * @drive: Drive that timed out
231 * secondary 'I don't care what the drive thinks' timeout here)
238 int ide_dma_sff_timer_expiry(ide_drive_t *drive)
240 ide_hwif_t *hwif = drive->hwif;
244 drive->name, __func__, dma_stat);
264 void ide_dma_start(ide_drive_t *drive)
266 ide_hwif_t *hwif = drive->hwif;
270 * been issued to the drive, as per the BM-IDE spec.
272 * we do this part before issuing the drive cmd.
286 int ide_dma_end(ide_drive_t *drive)
288 ide_hwif_t *hwif = drive->hwif;
317 int ide_dma_test_irq(ide_drive_t *drive)
319 ide_hwif_t *hwif = drive->hwif;