Lines Matching refs:ap
49 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_qc_prep()
76 qc->ap->ops->sff_exec_command(qc->ap, &qc->tf); in pxa_bmdma_setup()
84 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_bmdma_start()
94 struct pata_pxa_data *pd = qc->ap->private_data; in pxa_bmdma_stop()
109 static unsigned char pxa_bmdma_status(struct ata_port *ap) in pxa_bmdma_status() argument
111 struct pata_pxa_data *pd = ap->private_data; in pxa_bmdma_status()
126 static void pxa_irq_clear(struct ata_port *ap) in pxa_irq_clear() argument
162 struct ata_port *ap; in pxa_ata_probe() local
219 ap = host->ports[0]; in pxa_ata_probe()
220 ap->ops = &pxa_ata_port_ops; in pxa_ata_probe()
221 ap->pio_mask = ATA_PIO4; in pxa_ata_probe()
222 ap->mwdma_mask = ATA_MWDMA2; in pxa_ata_probe()
224 ap->ioaddr.cmd_addr = devm_ioremap(&pdev->dev, cmd_res->start, in pxa_ata_probe()
226 ap->ioaddr.ctl_addr = devm_ioremap(&pdev->dev, ctl_res->start, in pxa_ata_probe()
228 ap->ioaddr.bmdma_addr = devm_ioremap(&pdev->dev, dma_res->start, in pxa_ata_probe()
234 ap->ioaddr.altstatus_addr = ap->ioaddr.ctl_addr; in pxa_ata_probe()
235 ap->ioaddr.data_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
237 ap->ioaddr.error_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
239 ap->ioaddr.feature_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
241 ap->ioaddr.nsect_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
243 ap->ioaddr.lbal_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
245 ap->ioaddr.lbam_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
247 ap->ioaddr.lbah_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
249 ap->ioaddr.device_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
251 ap->ioaddr.status_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
253 ap->ioaddr.command_addr = ap->ioaddr.cmd_addr + in pxa_ata_probe()
264 ap->private_data = data; in pxa_ata_probe()