Lines Matching refs:gregs
80 static int qec_global_reset(void __iomem *gregs)
84 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL);
86 if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) {
101 void __iomem *gregs = bp->gregs;
112 sbus_writel(regval | GLOB_CTRL_BMODE, gregs + GLOB_CTRL);
113 sbus_writel(GLOB_PSIZE_2048, gregs + GLOB_PSIZE);
117 gregs + GLOB_MSIZE);
121 gregs + GLOB_TSIZE);
123 gregs + GLOB_RSIZE);
622 void __iomem *gregs = bp->gregs;
632 qec_global_reset(gregs);
682 sbus_writel(sbus_readl(gregs + GLOB_RSIZE),
684 sbus_writel(sbus_readl(gregs + GLOB_RSIZE),
897 qec_status = sbus_readl(bp->gregs + GLOB_STAT);
1100 bp->gregs = of_ioremap(&qec_op->resource[0], 0,
1102 if (!bp->gregs) {
1108 if ((sbus_readl(bp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_BMODE) {
1114 if (qec_global_reset(bp->gregs))
1204 if (bp->gregs)
1205 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE);
1248 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE);