Lines Matching refs:adev
49 * @adev: device on the interface
55 static void cs5530_set_piomode(struct ata_port *ap, struct ata_device *adev)
70 if (adev->devno)
73 iowrite32(cs5530_pio_timings[format][adev->pio_mode - XFER_PIO_0], base);
79 * @adev: Device being configured
86 static void cs5530_set_dmamode(struct ata_port *ap, struct ata_device *adev)
95 switch(adev->dma_mode) {
113 if (adev->devno == 0) /* Master */
126 reg |= (1 << (5 + adev->devno));
131 ap->private_data = adev;
147 struct ata_device *adev = qc->dev;
151 if (ata_dma_enabled(adev) && adev != prev && prev != NULL) {
153 if ((ata_using_udma(adev) && !ata_using_udma(prev)) ||
154 (ata_using_udma(prev) && !ata_using_udma(adev)))
156 cs5530_set_dmamode(ap, adev);