Lines Matching defs:gregs
63 static inline int qec_global_reset(void __iomem *gregs)
67 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL);
69 u32 tmp = sbus_readl(gregs + GLOB_CTRL);
146 void __iomem *gregs = qecp->gregs;
167 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE);
172 sbus_readl(gregs + GLOB_RSIZE);
477 qec_status = sbus_readl(qecp->gregs + GLOB_STAT);
728 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL);
730 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL);
732 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL);
738 sbus_writel(GLOB_PSIZE_2048, qecp->gregs + GLOB_PSIZE);
742 qecp->gregs + GLOB_MSIZE);
748 qecp->gregs + GLOB_TSIZE);
750 qecp->gregs + GLOB_RSIZE);
785 qecp->gregs = of_ioremap(&op->resource[0], 0,
788 if (!qecp->gregs)
792 ctrl = sbus_readl(qecp->gregs + GLOB_CTRL);
799 if (qec_global_reset(qecp->gregs))
822 if (qecp->gregs)
823 of_iounmap(&op->resource[0], qecp->gregs, GLOB_REG_SIZE);
1003 of_iounmap(&op->resource[0], root_qec_dev->gregs,