Lines Matching defs:gregs
893 static void happy_meal_stop(struct happy_meal *hp, void __iomem *gregs)
900 hme_write32(hp, gregs + GREG_SWRESET, GREG_RESET_ALL);
901 while (hme_read32(hp, gregs + GREG_SWRESET) && --tries)
1391 void __iomem *gregs = hp->gregs;
1416 happy_meal_stop(hp, gregs);
1546 hme_read32(hp, gregs + GREG_CFG)));
1550 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST64);
1576 hme_write32(hp, gregs + GREG_CFG, gcfg);
1579 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST32);
1582 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST16);
1585 hme_write32(hp, gregs + GREG_CFG, 0);
1591 hme_write32(hp, gregs + GREG_IMASK,
1688 void __iomem *gregs = hp->gregs;
1690 happy_meal_stop(hp, gregs);
2067 u32 happy_status = hme_read32(hp, hp->gregs + GREG_STAT);
2110 u32 happy_status = hme_read32(hp, hp->gregs + GREG_STAT);
2189 happy_meal_stop(hp, hp->gregs);
2220 hme_read32(hp, hp->gregs + GREG_STAT),
2684 hp->gregs = of_ioremap(&op->resource[0], 0,
2686 if (!hp->gregs) {
2807 if (hp->gregs)
2808 of_iounmap(&op->resource[0], hp->gregs, GREG_REG_SIZE);
3030 hp->gregs = (hpreg_base + 0x0000UL);
3140 iounmap(hp->gregs);
3164 iounmap(hp->gregs);
3228 of_iounmap(&op->resource[0], hp->gregs, GREG_REG_SIZE);