Lines Matching refs:adev
74 static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) in pacpi_discover_modes() argument
84 xfer_mask = ata_acpi_gtm_xfermask(adev, &probe); in pacpi_discover_modes()
101 static unsigned long pacpi_mode_filter(struct ata_device *adev, unsigned long mask) in pacpi_mode_filter() argument
103 struct pata_acpi *acpi = adev->link->ap->private_data; in pacpi_mode_filter()
104 return mask & acpi->mask[adev->devno]; in pacpi_mode_filter()
113 static void pacpi_set_piomode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_piomode() argument
115 int unit = adev->devno; in pacpi_set_piomode()
123 t = ata_timing_find_mode(adev->pio_mode); in pacpi_set_piomode()
136 static void pacpi_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_dmamode() argument
138 int unit = adev->devno; in pacpi_set_dmamode()
146 t = ata_timing_find_mode(adev->dma_mode); in pacpi_set_dmamode()
147 if (adev->dma_mode >= XFER_UDMA_0) { in pacpi_set_dmamode()
171 struct ata_device *adev = qc->dev; in pacpi_qc_issue() local
177 if (adev != acpi->last) { in pacpi_qc_issue()
178 pacpi_set_piomode(ap, adev); in pacpi_qc_issue()
179 if (ata_dma_enabled(adev)) in pacpi_qc_issue()
180 pacpi_set_dmamode(ap, adev); in pacpi_qc_issue()
181 acpi->last = adev; in pacpi_qc_issue()