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;
168 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE);
173 sbus_readl(gregs + GLOB_RSIZE);
475 qec_status = sbus_readl(qecp->gregs + GLOB_STAT);
722 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL);
724 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL);
726 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL);
732 sbus_writel(GLOB_PSIZE_2048, qecp->gregs + GLOB_PSIZE);
736 qecp->gregs + GLOB_MSIZE);
742 qecp->gregs + GLOB_TSIZE);
744 qecp->gregs + GLOB_RSIZE);
779 qecp->gregs = of_ioremap(&op->resource[0], 0,
782 if (!qecp->gregs)
786 ctrl = sbus_readl(qecp->gregs + GLOB_CTRL);
793 if (qec_global_reset(qecp->gregs))
816 if (qecp->gregs)
817 of_iounmap(&op->resource[0], qecp->gregs, GLOB_REG_SIZE);
985 of_iounmap(&op->resource[0], root_qec_dev->gregs,