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);
129 status = readl(rngc->base + RNGC_STATUS);
141 *(u32 *)data = readl(rngc->base + RNGC_FIFO);
161 status = readl(rngc->base + RNGC_STATUS);
162 rngc->err_reg = readl(rngc->base + RNGC_ERROR);
179 cmd = readl(rngc->base + RNGC_COMMAND);
180 writel(cmd | RNGC_CMD_CLR_ERR, rngc->base + RNGC_COMMAND);
187 cmd = readl(rngc->base + RNGC_COMMAND);
188 writel(cmd | RNGC_CMD_SEED, rngc->base + RNGC_COMMAND);
207 ctrl = readl(rngc->base + RNGC_CONTROL);
209 writel(ctrl, rngc->base + RNGC_CONTROL);
242 rngc->base = devm_platform_ioremap_resource(pdev, 0);
243 if (IS_ERR(rngc->base))
244 return PTR_ERR(rngc->base);
262 ver_id = readl(rngc->base + RNGC_VER_ID);