Lines Matching refs:acpi
40 struct pata_acpi *acpi = ap->private_data; in pacpi_pre_reset() local
41 if (ACPI_HANDLE(&ap->tdev) == NULL || ata_acpi_gtm(ap, &acpi->gtm) < 0) in pacpi_pre_reset()
56 struct pata_acpi *acpi = ap->private_data; in pacpi_cable_detect() local
58 if ((acpi->mask[0] | acpi->mask[1]) & (0xF8 << ATA_SHIFT_UDMA)) in pacpi_cable_detect()
75 struct pata_acpi *acpi = ap->private_data; in pacpi_discover_modes() local
79 probe = acpi->gtm; in pacpi_discover_modes()
102 struct pata_acpi *acpi = adev->link->ap->private_data; in pacpi_mode_filter() local
103 return mask & acpi->mask[adev->devno]; in pacpi_mode_filter()
115 struct pata_acpi *acpi = ap->private_data; in pacpi_set_piomode() local
118 if (!(acpi->gtm.flags & 0x10)) in pacpi_set_piomode()
123 acpi->gtm.drive[unit].pio = t->cycle; in pacpi_set_piomode()
124 ata_acpi_stm(ap, &acpi->gtm); in pacpi_set_piomode()
126 ata_acpi_gtm(ap, &acpi->gtm); in pacpi_set_piomode()
138 struct pata_acpi *acpi = ap->private_data; in pacpi_set_dmamode() local
141 if (!(acpi->gtm.flags & 0x10)) in pacpi_set_dmamode()
147 acpi->gtm.drive[unit].dma = t->udma; in pacpi_set_dmamode()
148 acpi->gtm.flags |= (1 << (2 * unit)); in pacpi_set_dmamode()
150 acpi->gtm.drive[unit].dma = t->cycle; in pacpi_set_dmamode()
151 acpi->gtm.flags &= ~(1 << (2 * unit)); in pacpi_set_dmamode()
153 ata_acpi_stm(ap, &acpi->gtm); in pacpi_set_dmamode()
155 ata_acpi_gtm(ap, &acpi->gtm); in pacpi_set_dmamode()
171 struct pata_acpi *acpi = ap->private_data; in pacpi_qc_issue() local
173 if (acpi->gtm.flags & 0x10) in pacpi_qc_issue()
176 if (adev != acpi->last) { in pacpi_qc_issue()
180 acpi->last = adev; in pacpi_qc_issue()
195 struct pata_acpi *acpi; in pacpi_port_start() local
200 acpi = ap->private_data = devm_kzalloc(&pdev->dev, sizeof(struct pata_acpi), GFP_KERNEL); in pacpi_port_start()
203 acpi->mask[0] = pacpi_discover_modes(ap, &ap->link.device[0]); in pacpi_port_start()
204 acpi->mask[1] = pacpi_discover_modes(ap, &ap->link.device[1]); in pacpi_port_start()