Lines Matching defs:gregs
914 static void happy_meal_stop(struct happy_meal *hp, void __iomem *gregs)
921 hme_write32(hp, gregs + GREG_SWRESET, GREG_RESET_ALL);
922 while (hme_read32(hp, gregs + GREG_SWRESET) && --tries)
1422 void __iomem *gregs = hp->gregs;
1447 happy_meal_stop(hp, gregs);
1571 hme_read32(hp, gregs + GREG_CFG)));
1575 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST64);
1601 hme_write32(hp, gregs + GREG_CFG, gcfg);
1604 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST32);
1607 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST16);
1610 hme_write32(hp, gregs + GREG_CFG, 0);
1616 hme_write32(hp, gregs + GREG_IMASK,
1714 void __iomem *gregs = hp->gregs;
1716 happy_meal_stop(hp, gregs);
2101 u32 happy_status = hme_read32(hp, hp->gregs + GREG_STAT);
2144 u32 happy_status = hme_read32(hp, hp->gregs + GREG_STAT);
2224 happy_meal_stop(hp, hp->gregs);
2255 hme_read32(hp, hp->gregs + GREG_STAT),
2753 hp->gregs = of_ioremap(&op->resource[0], 0,
2755 if (!hp->gregs) {
2876 if (hp->gregs)
2877 of_iounmap(&op->resource[0], hp->gregs, GREG_REG_SIZE);
3092 hp->gregs = (hpreg_base + 0x0000UL);
3204 iounmap(hp->gregs);
3228 iounmap(hp->gregs);
3298 of_iounmap(&op->resource[0], hp->gregs, GREG_REG_SIZE);