Lines Matching refs:base
63 void __iomem *base;
79 ctrl = readl(rngc->base + RNGC_CONTROL);
81 writel(ctrl, rngc->base + RNGC_CONTROL);
88 cmd = readl(rngc->base + RNGC_COMMAND);
90 writel(cmd, rngc->base + RNGC_COMMAND);
97 ctrl = readl(rngc->base + RNGC_CONTROL);
99 writel(ctrl, rngc->base + RNGC_CONTROL);
110 cmd = readl(rngc->base + RNGC_COMMAND);
111 writel(cmd | RNGC_CMD_SELF_TEST, rngc->base + RNGC_COMMAND);
128 status = readl(rngc->base + RNGC_STATUS);
136 *(u32 *)data = readl(rngc->base + RNGC_FIFO);
156 status = readl(rngc->base + RNGC_STATUS);
157 rngc->err_reg = readl(rngc->base + RNGC_ERROR);
174 cmd = readl(rngc->base + RNGC_COMMAND);
175 writel(cmd | RNGC_CMD_CLR_ERR, rngc->base + RNGC_COMMAND);
182 cmd = readl(rngc->base + RNGC_COMMAND);
183 writel(cmd | RNGC_CMD_SEED, rngc->base + RNGC_COMMAND);
202 ctrl = readl(rngc->base + RNGC_CONTROL);
204 writel(ctrl, rngc->base + RNGC_CONTROL);
237 rngc->base = devm_platform_ioremap_resource(pdev, 0);
238 if (IS_ERR(rngc->base))
239 return PTR_ERR(rngc->base);
249 ver_id = readl(rngc->base + RNGC_VER_ID);