Lines Matching refs:gregs
62 static inline int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument
66 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset()
68 u32 tmp = sbus_readl(gregs + GLOB_CTRL); in qec_global_reset()
145 void __iomem *gregs = qecp->gregs; in qe_init() local
166 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE); in qe_init()
171 sbus_readl(gregs + GLOB_RSIZE); in qe_init()
473 qec_status = sbus_readl(qecp->gregs + GLOB_STAT); in qec_interrupt()
720 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); in qec_init_once()
722 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); in qec_init_once()
724 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL); in qec_init_once()
730 sbus_writel(GLOB_PSIZE_2048, qecp->gregs + GLOB_PSIZE); in qec_init_once()
734 qecp->gregs + GLOB_MSIZE); in qec_init_once()
740 qecp->gregs + GLOB_TSIZE); in qec_init_once()
742 qecp->gregs + GLOB_RSIZE); in qec_init_once()
777 qecp->gregs = of_ioremap(&op->resource[0], 0, in get_qec()
780 if (!qecp->gregs) in get_qec()
784 ctrl = sbus_readl(qecp->gregs + GLOB_CTRL); in get_qec()
791 if (qec_global_reset(qecp->gregs)) in get_qec()
814 if (qecp->gregs) in get_qec()
815 of_iounmap(&op->resource[0], qecp->gregs, GLOB_REG_SIZE); in get_qec()
986 of_iounmap(&op->resource[0], root_qec_dev->gregs, in qec_exit()