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