Lines Matching refs:gregs
80 static int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument
84 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset()
86 if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) { in qec_global_reset()
101 void __iomem *gregs = bp->gregs; in qec_init() local
112 sbus_writel(regval | GLOB_CTRL_BMODE, gregs + GLOB_CTRL); in qec_init()
113 sbus_writel(GLOB_PSIZE_2048, gregs + GLOB_PSIZE); in qec_init()
117 gregs + GLOB_MSIZE); in qec_init()
121 gregs + GLOB_TSIZE); in qec_init()
123 gregs + GLOB_RSIZE); in qec_init()
626 void __iomem *gregs = bp->gregs; in bigmac_init_hw() local
635 qec_global_reset(gregs); in bigmac_init_hw()
685 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
687 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
901 qec_status = sbus_readl(bp->gregs + GLOB_STAT); in bigmac_interrupt()
1116 bp->gregs = of_ioremap(&qec_op->resource[0], 0, in bigmac_ether_init()
1118 if (!bp->gregs) { in bigmac_ether_init()
1124 if ((sbus_readl(bp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_BMODE) { in bigmac_ether_init()
1130 if (qec_global_reset(bp->gregs)) in bigmac_ether_init()
1222 if (bp->gregs) in bigmac_ether_init()
1223 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE); in bigmac_ether_init()
1266 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE); in bigmac_sbus_remove()