Lines Matching refs:adev
81 * @adev: device on the interface
86 static void sc1200_set_piomode(struct ata_port *ap, struct ata_device *adev)
98 int mode = adev->pio_mode - XFER_PIO_0;
103 pci_write_config_dword(pdev, reg + 8 * adev->devno,
110 * @adev: Device being configured
116 static void sc1200_set_dmamode(struct ata_port *ap, struct ata_device *adev)
133 int mode = adev->dma_mode;
141 if (adev->devno == 0) {
165 struct ata_device *adev = qc->dev;
169 if (ata_dma_enabled(adev) && adev != prev && prev != NULL) {
171 if ((ata_using_udma(adev) && !ata_using_udma(prev)) ||
172 (ata_using_udma(prev) && !ata_using_udma(adev)))
174 sc1200_set_dmamode(ap, adev);