Lines Matching defs:adev
141 static void ftide010_set_dmamode(struct ata_port *ap, struct ata_device *adev)
144 u8 speed = adev->dma_mode;
145 u8 devno = adev->devno & 1;
215 ap->private_data = adev;
220 static void ftide010_set_piomode(struct ata_port *ap, struct ata_device *adev)
223 u8 pio = adev->pio_mode - XFER_PIO_0;
226 adev->pio_mode, pio);
240 struct ata_device *adev = qc->dev;
247 if (adev != ap->private_data && ata_dma_enabled(adev))
248 ftide010_set_dmamode(ap, adev);