Lines Matching refs:base
26 void __iomem *base;
34 static int histb_rng_wait(void __iomem *base)
38 return readl_relaxed_poll_timeout(base + RNG_STAT, val,
42 static void histb_rng_init(void __iomem *base, unsigned int depth)
46 val = readl_relaxed(base + RNG_CTRL);
57 writel_relaxed(val, base + RNG_CTRL);
63 void __iomem *base = priv->base;
66 if (!(readl_relaxed(base + RNG_STAT) & DATA_COUNT)) {
69 if (histb_rng_wait(base)) {
75 *(u32 *) (data + i) = readl_relaxed(base + RNG_NUMBER);
81 static unsigned int histb_rng_get_depth(void __iomem *base)
83 return (readl_relaxed(base + RNG_CTRL) & POST_PROCESS_DEPTH) >> 8;
90 void __iomem *base = priv->base;
92 return sprintf(buf, "%d\n", histb_rng_get_depth(base));
100 void __iomem *base = priv->base;
106 histb_rng_init(base, depth);
123 void __iomem *base;
130 base = devm_platform_ioremap_resource(pdev, 0);
131 if (IS_ERR(base))
132 return PTR_ERR(base);
134 histb_rng_init(base, 144);
135 if (histb_rng_wait(base)) {
140 priv->base = base;