Lines Matching refs:csr_base
80 void __iomem *csr_base; member
112 writel(fro_val, ctx->csr_base + RNG_FRODETUNE); in xgene_rng_init_fro()
113 writel(0x00000000, ctx->csr_base + RNG_ALARMMASK); in xgene_rng_init_fro()
114 writel(0x00000000, ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_init_fro()
115 writel(0xFFFFFFFF, ctx->csr_base + RNG_FROENABLE); in xgene_rng_init_fro()
122 val = readl(ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_chk_overflow()
168 frostopped = readl(ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_chk_overflow()
193 frostopped = readl(ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_chk_overflow()
198 writel(val, ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_chk_overflow()
217 val = readl(ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_data_present()
232 data[i] = readl(ctx->csr_base + RNG_INOUT_0 + i * 4); in xgene_rng_data_read()
235 writel(READY_MASK, ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_data_read()
244 writel(0x00000000, ctx->csr_base + RNG_CONTROL); in xgene_rng_init_internal()
248 writel(val, ctx->csr_base + RNG_CONFIG); in xgene_rng_init_internal()
251 writel(val, ctx->csr_base + RNG_ALARMCNT); in xgene_rng_init_internal()
262 READY_MASK, ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_init_internal()
272 writel(val, ctx->csr_base + RNG_CONTROL); in xgene_rng_init_internal()
282 ctx->revision = readl(ctx->csr_base + RNG_EIP_REV); in xgene_rng_init()
290 readl(ctx->csr_base + RNG_OPTIONS)); in xgene_rng_init()
326 ctx->csr_base = devm_platform_ioremap_resource(pdev, 0); in xgene_rng_probe()
327 if (IS_ERR(ctx->csr_base)) in xgene_rng_probe()
328 return PTR_ERR(ctx->csr_base); in xgene_rng_probe()
336 ctx->csr_base, ctx->irq); in xgene_rng_probe()