Lines Matching refs:gregs
79 static int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument
83 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset()
85 if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) { in qec_global_reset()
100 void __iomem *gregs = bp->gregs; in qec_init() local
111 sbus_writel(regval | GLOB_CTRL_BMODE, gregs + GLOB_CTRL); in qec_init()
112 sbus_writel(GLOB_PSIZE_2048, gregs + GLOB_PSIZE); in qec_init()
116 gregs + GLOB_MSIZE); in qec_init()
120 gregs + GLOB_TSIZE); in qec_init()
122 gregs + GLOB_RSIZE); in qec_init()
623 void __iomem *gregs = bp->gregs; in bigmac_init_hw() local
632 qec_global_reset(gregs); in bigmac_init_hw()
682 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
684 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
897 qec_status = sbus_readl(bp->gregs + GLOB_STAT); in bigmac_interrupt()
1102 bp->gregs = of_ioremap(&qec_op->resource[0], 0, in bigmac_ether_init()
1104 if (!bp->gregs) { in bigmac_ether_init()
1110 if ((sbus_readl(bp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_BMODE) { in bigmac_ether_init()
1116 if (qec_global_reset(bp->gregs)) in bigmac_ether_init()
1206 if (bp->gregs) in bigmac_ether_init()
1207 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE); in bigmac_ether_init()
1250 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE); in bigmac_sbus_remove()