Lines Matching refs:drive
165 * we write the command to the drive.
167 static void icside_maskproc(ide_drive_t *drive, int mask)
169 ide_hwif_t *hwif = drive->hwif;
207 * one drive can be accessed at one time. NOTE! We do not enforce that
216 * MW DMA specs that the drive provides in the IDENTIFY command.
237 static void icside_set_dma_mode(ide_hwif_t *hwif, ide_drive_t *drive)
241 const u8 xfer_mode = drive->dma_mode;
269 if (use_dma_info && drive->id[ATA_ID_EIDE_DMA_TIME] > cycle_time)
270 cycle_time = drive->id[ATA_ID_EIDE_DMA_TIME];
272 ide_set_drivedata(drive, (void *)cycle_time);
274 printk("%s: %s selected (peak %dMB/s)\n", drive->name,
276 2000 / (unsigned long)ide_get_drivedata(drive));
284 static void icside_dma_host_set(ide_drive_t *drive, int on)
288 static int icside_dma_end(ide_drive_t *drive)
290 ide_hwif_t *hwif = drive->hwif;
298 static void icside_dma_start(ide_drive_t *drive)
300 ide_hwif_t *hwif = drive->hwif;
308 static int icside_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd)
310 ide_hwif_t *hwif = drive->hwif;
328 icside_maskproc(drive, 0);
336 * Select the correct timing for this drive.
338 set_dma_speed(ec->dma, (unsigned long)ide_get_drivedata(drive));
350 static int icside_dma_test_irq(ide_drive_t *drive)
352 ide_hwif_t *hwif = drive->hwif;