Lines Matching refs:ioc_regs
60 volatile u8 __iomem *ioc_regs; member
89 hp->io_tlb_ps = readq(hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_ioc_shared()
105 hp->iova_base = readq(hp->ioc_regs+HP_ZX1_IBASE) & ~0x1; in hp_zx1_ioc_shared()
111 hp->io_pdir = phys_to_virt(readq(hp->ioc_regs+HP_ZX1_PDIR_BASE)); in hp_zx1_ioc_shared()
167 hp->ioc_regs = ioremap(hpa, 1024); in hp_zx1_ioc_init()
168 if (!hp->ioc_regs) in hp_zx1_ioc_init()
175 hp->io_pdir_owner = (readq(hp->ioc_regs+HP_ZX1_IBASE) & 0x1) == 0; in hp_zx1_ioc_init()
250 writel(virt_to_phys(hp->io_pdir), hp->ioc_regs+HP_ZX1_PDIR_BASE); in hp_zx1_configure()
251 readl(hp->ioc_regs+HP_ZX1_PDIR_BASE); in hp_zx1_configure()
252 writel(hp->io_tlb_ps, hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_configure()
253 readl(hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_configure()
254 writel((unsigned int)(~(HP_ZX1_IOVA_SIZE-1)), hp->ioc_regs+HP_ZX1_IMASK); in hp_zx1_configure()
255 readl(hp->ioc_regs+HP_ZX1_IMASK); in hp_zx1_configure()
256 writel(hp->iova_base|1, hp->ioc_regs+HP_ZX1_IBASE); in hp_zx1_configure()
257 readl(hp->ioc_regs+HP_ZX1_IBASE); in hp_zx1_configure()
258 writel(hp->iova_base|ilog2(HP_ZX1_IOVA_SIZE), hp->ioc_regs+HP_ZX1_PCOM); in hp_zx1_configure()
259 readl(hp->ioc_regs+HP_ZX1_PCOM); in hp_zx1_configure()
270 if (hp->ioc_regs) { in hp_zx1_cleanup()
272 writeq(0, hp->ioc_regs+HP_ZX1_IBASE); in hp_zx1_cleanup()
273 readq(hp->ioc_regs+HP_ZX1_IBASE); in hp_zx1_cleanup()
275 iounmap(hp->ioc_regs); in hp_zx1_cleanup()
286 writeq(hp->gart_base | ilog2(hp->gart_size), hp->ioc_regs+HP_ZX1_PCOM); in hp_zx1_tlbflush()
287 readq(hp->ioc_regs+HP_ZX1_PCOM); in hp_zx1_tlbflush()