• Home
  • Raw
  • Download

Lines Matching refs:ap

38 	struct ata_port *ap = link->ap;  in pacpi_pre_reset()  local
39 struct pata_acpi *acpi = ap->private_data; in pacpi_pre_reset()
40 if (ACPI_HANDLE(&ap->tdev) == NULL || ata_acpi_gtm(ap, &acpi->gtm) < 0) in pacpi_pre_reset()
53 static int pacpi_cable_detect(struct ata_port *ap) in pacpi_cable_detect() argument
55 struct pata_acpi *acpi = ap->private_data; in pacpi_cable_detect()
72 static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) in pacpi_discover_modes() argument
74 struct pata_acpi *acpi = ap->private_data; in pacpi_discover_modes()
80 ata_acpi_gtm(ap, &probe); in pacpi_discover_modes()
85 ap->cbl = ATA_CBL_PATA80; in pacpi_discover_modes()
101 struct pata_acpi *acpi = adev->link->ap->private_data; in pacpi_mode_filter()
111 static void pacpi_set_piomode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_piomode() argument
114 struct pata_acpi *acpi = ap->private_data; in pacpi_set_piomode()
123 ata_acpi_stm(ap, &acpi->gtm); in pacpi_set_piomode()
125 ata_acpi_gtm(ap, &acpi->gtm); in pacpi_set_piomode()
134 static void pacpi_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_dmamode() argument
137 struct pata_acpi *acpi = ap->private_data; in pacpi_set_dmamode()
152 ata_acpi_stm(ap, &acpi->gtm); in pacpi_set_dmamode()
154 ata_acpi_gtm(ap, &acpi->gtm); in pacpi_set_dmamode()
168 struct ata_port *ap = qc->ap; in pacpi_qc_issue() local
170 struct pata_acpi *acpi = ap->private_data; in pacpi_qc_issue()
176 pacpi_set_piomode(ap, adev); in pacpi_qc_issue()
178 pacpi_set_dmamode(ap, adev); in pacpi_qc_issue()
191 static int pacpi_port_start(struct ata_port *ap) in pacpi_port_start() argument
193 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in pacpi_port_start()
196 if (ACPI_HANDLE(&ap->tdev) == NULL) in pacpi_port_start()
199 acpi = ap->private_data = devm_kzalloc(&pdev->dev, sizeof(struct pata_acpi), GFP_KERNEL); in pacpi_port_start()
200 if (ap->private_data == NULL) in pacpi_port_start()
202 acpi->mask[0] = pacpi_discover_modes(ap, &ap->link.device[0]); in pacpi_port_start()
203 acpi->mask[1] = pacpi_discover_modes(ap, &ap->link.device[1]); in pacpi_port_start()
204 return ata_bmdma_port_start(ap); in pacpi_port_start()