Lines Matching refs:csr_base
93 void __iomem *csr_base; member
127 writel(fro_val, ctx->csr_base + RNG_FRODETUNE); in xgene_rng_init_fro()
128 writel(0x00000000, ctx->csr_base + RNG_ALARMMASK); in xgene_rng_init_fro()
129 writel(0x00000000, ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_init_fro()
130 writel(0xFFFFFFFF, ctx->csr_base + RNG_FROENABLE); in xgene_rng_init_fro()
137 val = readl(ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_chk_overflow()
183 frostopped = readl(ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_chk_overflow()
208 frostopped = readl(ctx->csr_base + RNG_ALARMSTOP); in xgene_rng_chk_overflow()
213 writel(val, ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_chk_overflow()
232 val = readl(ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_data_present()
247 data[i] = readl(ctx->csr_base + RNG_INOUT_0 + i * 4); in xgene_rng_data_read()
250 writel(READY_MASK, ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_data_read()
259 writel(0x00000000, ctx->csr_base + RNG_CONTROL); in xgene_rng_init_internal()
263 writel(val, ctx->csr_base + RNG_CONFIG); in xgene_rng_init_internal()
266 writel(val, ctx->csr_base + RNG_ALARMCNT); in xgene_rng_init_internal()
277 READY_MASK, ctx->csr_base + RNG_INTR_STS_ACK); in xgene_rng_init_internal()
287 writel(val, ctx->csr_base + RNG_CONTROL); in xgene_rng_init_internal()
297 ctx->revision = readl(ctx->csr_base + RNG_EIP_REV); in xgene_rng_init()
305 readl(ctx->csr_base + RNG_OPTIONS)); in xgene_rng_init()
343 ctx->csr_base = devm_ioremap_resource(&pdev->dev, res); in xgene_rng_probe()
344 if (IS_ERR(ctx->csr_base)) in xgene_rng_probe()
345 return PTR_ERR(ctx->csr_base); in xgene_rng_probe()
355 ctx->csr_base, ctx->irq); in xgene_rng_probe()