Lines Matching refs:drive

20 int config_drive_for_dma(ide_drive_t *drive)  in config_drive_for_dma()  argument
22 ide_hwif_t *hwif = drive->hwif; in config_drive_for_dma()
23 u16 *id = drive->id; in config_drive_for_dma()
25 if (drive->media != ide_disk) { in config_drive_for_dma()
47 if (ide_dma_good_drive(drive)) in config_drive_for_dma()
82 void ide_dma_host_set(ide_drive_t *drive, int on) in ide_dma_host_set() argument
84 ide_hwif_t *hwif = drive->hwif; in ide_dma_host_set()
85 u8 unit = drive->dn & 1; in ide_dma_host_set()
114 int ide_build_dmatable(ide_drive_t *drive, struct ide_cmd *cmd) in ide_build_dmatable() argument
116 ide_hwif_t *hwif = drive->hwif; in ide_build_dmatable()
166 printk(KERN_ERR "%s: %s\n", drive->name, in ide_build_dmatable()
187 int ide_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) in ide_dma_setup() argument
189 ide_hwif_t *hwif = drive->hwif; in ide_dma_setup()
195 if (ide_build_dmatable(drive, cmd) == 0) { in ide_dma_setup()
196 ide_map_sg(drive, cmd); in ide_dma_setup()
237 int ide_dma_sff_timer_expiry(ide_drive_t *drive) in ide_dma_sff_timer_expiry() argument
239 ide_hwif_t *hwif = drive->hwif; in ide_dma_sff_timer_expiry()
243 drive->name, __func__, dma_stat); in ide_dma_sff_timer_expiry()
263 void ide_dma_start(ide_drive_t *drive) in ide_dma_start() argument
265 ide_hwif_t *hwif = drive->hwif; in ide_dma_start()
285 int ide_dma_end(ide_drive_t *drive) in ide_dma_end() argument
287 ide_hwif_t *hwif = drive->hwif; in ide_dma_end()
316 int ide_dma_test_irq(ide_drive_t *drive) in ide_dma_test_irq() argument
318 ide_hwif_t *hwif = drive->hwif; in ide_dma_test_irq()