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()
624 void __iomem *gregs = bp->gregs; in bigmac_init_hw() local
633 qec_global_reset(gregs); in bigmac_init_hw()
683 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
685 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
898 qec_status = sbus_readl(bp->gregs + GLOB_STAT); in bigmac_interrupt()
1107 bp->gregs = of_ioremap(&qec_op->resource[0], 0, in bigmac_ether_init()
1109 if (!bp->gregs) { in bigmac_ether_init()
1115 if ((sbus_readl(bp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_BMODE) { in bigmac_ether_init()
1121 if (qec_global_reset(bp->gregs)) in bigmac_ether_init()
1211 if (bp->gregs) in bigmac_ether_init()
1212 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE); in bigmac_ether_init()
1255 of_iounmap(&qec_op->resource[0], bp->gregs, GLOB_REG_SIZE); in bigmac_sbus_remove()