Lines Matching defs: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);
626 void __iomem *gregs = bp->gregs;
635 qec_global_reset(gregs);
685 sbus_writel(sbus_readl(gregs + GLOB_RSIZE),
687 sbus_writel(sbus_readl(gregs + GLOB_RSIZE),
901 qec_status = sbus_readl(bp->gregs + GLOB_STAT);
1116 bp->gregs = of_ioremap(&qec_op->resource[0], 0,
1118 if (!bp->gregs) {
1124 if ((sbus_readl(bp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_BMODE) {
1130 if (qec_global_reset(bp->gregs))
1222 if (bp->gregs)
1223 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE);
1267 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE);