Lines Matching refs:ap
47 struct ata_port *ap = dev->link->ap; in pata_gayle_data_xfer() local
48 void __iomem *data_addr = ap->ioaddr.data_addr; in pata_gayle_data_xfer()
96 static bool pata_gayle_irq_check(struct ata_port *ap) in pata_gayle_irq_check() argument
100 ch = z_readb((unsigned long)ap->private_data); in pata_gayle_irq_check()
105 static void pata_gayle_irq_clear(struct ata_port *ap) in pata_gayle_irq_clear() argument
107 (void)z_readb((unsigned long)ap->ioaddr.status_addr); in pata_gayle_irq_clear()
108 z_writeb(0x7c, (unsigned long)ap->private_data); in pata_gayle_irq_clear()
132 struct ata_port *ap; in pata_gayle_init_one() local
156 ap = host->ports[0]; in pata_gayle_init_one()
159 ap->ops = &pata_gayle_a1200_ops; in pata_gayle_init_one()
161 ap->ops = &pata_gayle_a4000_ops; in pata_gayle_init_one()
163 ap->pio_mask = ATA_PIO4; in pata_gayle_init_one()
164 ap->flags |= ATA_FLAG_SLAVE_POSS | ATA_FLAG_NO_IORDY; in pata_gayle_init_one()
167 ap->ioaddr.data_addr = base; in pata_gayle_init_one()
168 ap->ioaddr.error_addr = base + 2 + 1 * 4; in pata_gayle_init_one()
169 ap->ioaddr.feature_addr = base + 2 + 1 * 4; in pata_gayle_init_one()
170 ap->ioaddr.nsect_addr = base + 2 + 2 * 4; in pata_gayle_init_one()
171 ap->ioaddr.lbal_addr = base + 2 + 3 * 4; in pata_gayle_init_one()
172 ap->ioaddr.lbam_addr = base + 2 + 4 * 4; in pata_gayle_init_one()
173 ap->ioaddr.lbah_addr = base + 2 + 5 * 4; in pata_gayle_init_one()
174 ap->ioaddr.device_addr = base + 2 + 6 * 4; in pata_gayle_init_one()
175 ap->ioaddr.status_addr = base + 2 + 7 * 4; in pata_gayle_init_one()
176 ap->ioaddr.command_addr = base + 2 + 7 * 4; in pata_gayle_init_one()
178 ap->ioaddr.altstatus_addr = base + GAYLE_CONTROL; in pata_gayle_init_one()
179 ap->ioaddr.ctl_addr = base + GAYLE_CONTROL; in pata_gayle_init_one()
181 ap->private_data = (void *)ZTWO_VADDR(pdata->irqport); in pata_gayle_init_one()
183 ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", pdata->base, in pata_gayle_init_one()