Lines Matching refs:ioc_regs
57 volatile u8 __iomem *ioc_regs; member
86 hp->io_tlb_ps = readq(hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_ioc_shared()
102 hp->iova_base = readq(hp->ioc_regs+HP_ZX1_IBASE) & ~0x1; in hp_zx1_ioc_shared()
108 hp->io_pdir = phys_to_virt(readq(hp->ioc_regs+HP_ZX1_PDIR_BASE)); in hp_zx1_ioc_shared()
164 hp->ioc_regs = ioremap(hpa, 1024); in hp_zx1_ioc_init()
165 if (!hp->ioc_regs) in hp_zx1_ioc_init()
172 hp->io_pdir_owner = (readq(hp->ioc_regs+HP_ZX1_IBASE) & 0x1) == 0; in hp_zx1_ioc_init()
247 writel(virt_to_phys(hp->io_pdir), hp->ioc_regs+HP_ZX1_PDIR_BASE); in hp_zx1_configure()
248 readl(hp->ioc_regs+HP_ZX1_PDIR_BASE); in hp_zx1_configure()
249 writel(hp->io_tlb_ps, hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_configure()
250 readl(hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_configure()
251 writel((unsigned int)(~(HP_ZX1_IOVA_SIZE-1)), hp->ioc_regs+HP_ZX1_IMASK); in hp_zx1_configure()
252 readl(hp->ioc_regs+HP_ZX1_IMASK); in hp_zx1_configure()
253 writel(hp->iova_base|1, hp->ioc_regs+HP_ZX1_IBASE); in hp_zx1_configure()
254 readl(hp->ioc_regs+HP_ZX1_IBASE); in hp_zx1_configure()
255 writel(hp->iova_base|ilog2(HP_ZX1_IOVA_SIZE), hp->ioc_regs+HP_ZX1_PCOM); in hp_zx1_configure()
256 readl(hp->ioc_regs+HP_ZX1_PCOM); in hp_zx1_configure()
267 if (hp->ioc_regs) { in hp_zx1_cleanup()
269 writeq(0, hp->ioc_regs+HP_ZX1_IBASE); in hp_zx1_cleanup()
270 readq(hp->ioc_regs+HP_ZX1_IBASE); in hp_zx1_cleanup()
272 iounmap(hp->ioc_regs); in hp_zx1_cleanup()
283 writeq(hp->gart_base | ilog2(hp->gart_size), hp->ioc_regs+HP_ZX1_PCOM); in hp_zx1_tlbflush()
284 readq(hp->ioc_regs+HP_ZX1_PCOM); in hp_zx1_tlbflush()