Lines Matching refs:gregs
914 static void happy_meal_stop(struct happy_meal *hp, void __iomem *gregs) in happy_meal_stop() argument
921 hme_write32(hp, gregs + GREG_SWRESET, GREG_RESET_ALL); in happy_meal_stop()
922 while (hme_read32(hp, gregs + GREG_SWRESET) && --tries) in happy_meal_stop()
1423 void __iomem *gregs = hp->gregs; in happy_meal_init() local
1448 happy_meal_stop(hp, gregs); in happy_meal_init()
1572 hme_read32(hp, gregs + GREG_CFG))); in happy_meal_init()
1576 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST64); in happy_meal_init()
1602 hme_write32(hp, gregs + GREG_CFG, gcfg); in happy_meal_init()
1605 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST32); in happy_meal_init()
1608 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST16); in happy_meal_init()
1611 hme_write32(hp, gregs + GREG_CFG, 0); in happy_meal_init()
1617 hme_write32(hp, gregs + GREG_IMASK, in happy_meal_init()
1715 void __iomem *gregs = hp->gregs; in happy_meal_set_initial_advertisement() local
1717 happy_meal_stop(hp, gregs); in happy_meal_set_initial_advertisement()
2102 u32 happy_status = hme_read32(hp, hp->gregs + GREG_STAT); in happy_meal_interrupt()
2145 u32 happy_status = hme_read32(hp, hp->gregs + GREG_STAT); in quattro_sbus_interrupt()
2225 happy_meal_stop(hp, hp->gregs); in happy_meal_close()
2256 hme_read32(hp, hp->gregs + GREG_STAT), in happy_meal_tx_timeout()
2750 hp->gregs = of_ioremap(&op->resource[0], 0, in happy_meal_sbus_probe_one()
2752 if (!hp->gregs) { in happy_meal_sbus_probe_one()
2873 if (hp->gregs) in happy_meal_sbus_probe_one()
2874 of_iounmap(&op->resource[0], hp->gregs, GREG_REG_SIZE); in happy_meal_sbus_probe_one()
3089 hp->gregs = (hpreg_base + 0x0000UL); in happy_meal_pci_probe()
3197 iounmap(hp->gregs); in happy_meal_pci_probe()
3221 iounmap(hp->gregs); in happy_meal_pci_remove()
3291 of_iounmap(&op->resource[0], hp->gregs, GREG_REG_SIZE); in hme_sbus_remove()