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
167 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE); in qe_init()
172 sbus_readl(gregs + GLOB_RSIZE); in qe_init()
477 qec_status = sbus_readl(qecp->gregs + GLOB_STAT); in qec_interrupt()
728 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); in qec_init_once()
730 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); in qec_init_once()
732 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL); in qec_init_once()
738 sbus_writel(GLOB_PSIZE_2048, qecp->gregs + GLOB_PSIZE); in qec_init_once()
742 qecp->gregs + GLOB_MSIZE); in qec_init_once()
748 qecp->gregs + GLOB_TSIZE); in qec_init_once()
750 qecp->gregs + GLOB_RSIZE); in qec_init_once()
785 qecp->gregs = of_ioremap(&op->resource[0], 0, in get_qec()
788 if (!qecp->gregs) in get_qec()
792 ctrl = sbus_readl(qecp->gregs + GLOB_CTRL); in get_qec()
799 if (qec_global_reset(qecp->gregs)) in get_qec()
822 if (qecp->gregs) in get_qec()
823 of_iounmap(&op->resource[0], qecp->gregs, GLOB_REG_SIZE); in get_qec()
1003 of_iounmap(&op->resource[0], root_qec_dev->gregs, in qec_exit()