Lines Matching defs:adev
140 static void ftide010_set_dmamode(struct ata_port *ap, struct ata_device *adev)
143 u8 speed = adev->dma_mode;
144 u8 devno = adev->devno & 1;
214 ap->private_data = adev;
219 static void ftide010_set_piomode(struct ata_port *ap, struct ata_device *adev)
222 u8 pio = adev->pio_mode - XFER_PIO_0;
225 adev->pio_mode, pio);
239 struct ata_device *adev = qc->dev;
246 if (adev != ap->private_data && ata_dma_enabled(adev))
247 ftide010_set_dmamode(ap, adev);