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
167 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE); in qe_init()
172 sbus_readl(gregs + GLOB_RSIZE); in qe_init()
474 qec_status = sbus_readl(qecp->gregs + GLOB_STAT); in qec_interrupt()
721 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); in qec_init_once()
723 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); in qec_init_once()
725 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL); in qec_init_once()
731 sbus_writel(GLOB_PSIZE_2048, qecp->gregs + GLOB_PSIZE); in qec_init_once()
735 qecp->gregs + GLOB_MSIZE); in qec_init_once()
741 qecp->gregs + GLOB_TSIZE); in qec_init_once()
743 qecp->gregs + GLOB_RSIZE); in qec_init_once()
778 qecp->gregs = of_ioremap(&op->resource[0], 0, in get_qec()
781 if (!qecp->gregs) in get_qec()
785 ctrl = sbus_readl(qecp->gregs + GLOB_CTRL); in get_qec()
792 if (qec_global_reset(qecp->gregs)) in get_qec()
815 if (qecp->gregs) in get_qec()
816 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()