Lines Matching refs:gregs
56 static inline int qec_global_reset(unsigned long gregs) in qec_global_reset() argument
60 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset()
62 u32 tmp = sbus_readl(gregs + GLOB_CTRL); in qec_global_reset()
139 unsigned long gregs = qecp->gregs; in qe_init() local
160 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE); in qe_init()
165 sbus_readl(gregs + GLOB_RSIZE); in qe_init()
471 qec_status = sbus_readl(qecp->gregs + GLOB_STAT); in qec_interrupt()
696 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); in qec_init_once()
698 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); in qec_init_once()
700 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL); in qec_init_once()
706 sbus_writel(GLOB_PSIZE_2048, qecp->gregs + GLOB_PSIZE); in qec_init_once()
710 qecp->gregs + GLOB_MSIZE); in qec_init_once()
716 qecp->gregs + GLOB_TSIZE); in qec_init_once()
718 qecp->gregs + GLOB_RSIZE); in qec_init_once()
788 qecp->gregs = sbus_ioremap(&sdev->resource[0], 0, in qec_ether_init()
790 if (!qecp->gregs) { in qec_ether_init()
797 if ((sbus_readl(qecp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_MMODE) { in qec_ether_init()
804 if (qec_global_reset(qecp->gregs)) { in qec_ether_init()
937 if (qecp->gregs) in qec_ether_init()
938 sbus_iounmap(qecp->gregs, GLOB_REG_SIZE); in qec_ether_init()
1023 sbus_iounmap(root_qec_dev->gregs, GLOB_REG_SIZE); in qec_cleanup()