Lines Matching refs:gregs
63 static inline int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument
67 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset()
69 u32 tmp = sbus_readl(gregs + GLOB_CTRL); in qec_global_reset()
146 void __iomem *gregs = qecp->gregs; in qe_init() local
168 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE); in qe_init()
173 sbus_readl(gregs + GLOB_RSIZE); in qe_init()
475 qec_status = sbus_readl(qecp->gregs + GLOB_STAT); in qec_interrupt()
722 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); in qec_init_once()
724 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); in qec_init_once()
726 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL); in qec_init_once()
732 sbus_writel(GLOB_PSIZE_2048, qecp->gregs + GLOB_PSIZE); in qec_init_once()
736 qecp->gregs + GLOB_MSIZE); in qec_init_once()
742 qecp->gregs + GLOB_TSIZE); in qec_init_once()
744 qecp->gregs + GLOB_RSIZE); in qec_init_once()
779 qecp->gregs = of_ioremap(&op->resource[0], 0, in get_qec()
782 if (!qecp->gregs) in get_qec()
786 ctrl = sbus_readl(qecp->gregs + GLOB_CTRL); in get_qec()
793 if (qec_global_reset(qecp->gregs)) in get_qec()
816 if (qecp->gregs) in get_qec()
817 of_iounmap(&op->resource[0], qecp->gregs, GLOB_REG_SIZE); in get_qec()
987 of_iounmap(&op->resource[0], root_qec_dev->gregs, in qec_exit()