Lines Matching defs:adev
36 * @adev: device on the interface
42 static void cs5530_set_piomode(struct ata_port *ap, struct ata_device *adev)
57 if (adev->devno)
60 iowrite32(cs5530_pio_timings[format][adev->pio_mode - XFER_PIO_0], base);
66 * @adev: Device being configured
73 static void cs5530_set_dmamode(struct ata_port *ap, struct ata_device *adev)
82 switch(adev->dma_mode) {
100 if (adev->devno == 0) /* Master */
113 reg |= (1 << (5 + adev->devno));
118 ap->private_data = adev;
134 struct ata_device *adev = qc->dev;
138 if (ata_dma_enabled(adev) && adev != prev && prev != NULL) {
140 if ((ata_using_udma(adev) && !ata_using_udma(prev)) ||
141 (ata_using_udma(prev) && !ata_using_udma(adev)))
143 cs5530_set_dmamode(ap, adev);