Lines Matching refs:rng_base
66 void __iomem *rng_base = (void __iomem *)rng->priv; in mxc_rnga_data_present() local
69 level = ((__raw_readl(rng_base + RNGA_STATUS) & in mxc_rnga_data_present()
79 void __iomem *rng_base = (void __iomem *)rng->priv; in mxc_rnga_data_read() local
82 *data = __raw_readl(rng_base + RNGA_OUTPUT_FIFO); in mxc_rnga_data_read()
85 err = __raw_readl(rng_base + RNGA_STATUS) & RNGA_STATUS_ERROR_INT; in mxc_rnga_data_read()
90 ctrl = __raw_readl(rng_base + RNGA_CONTROL); in mxc_rnga_data_read()
92 rng_base + RNGA_CONTROL); in mxc_rnga_data_read()
101 void __iomem *rng_base = (void __iomem *)rng->priv; in mxc_rnga_init() local
104 ctrl = __raw_readl(rng_base + RNGA_CONTROL); in mxc_rnga_init()
105 __raw_writel(ctrl & ~RNGA_CONTROL_SLEEP, rng_base + RNGA_CONTROL); in mxc_rnga_init()
108 osc = __raw_readl(rng_base + RNGA_STATUS); in mxc_rnga_init()
115 ctrl = __raw_readl(rng_base + RNGA_CONTROL); in mxc_rnga_init()
116 __raw_writel(ctrl | RNGA_CONTROL_GO, rng_base + RNGA_CONTROL); in mxc_rnga_init()
124 void __iomem *rng_base = (void __iomem *)rng->priv; in mxc_rnga_cleanup() local
126 ctrl = __raw_readl(rng_base + RNGA_CONTROL); in mxc_rnga_cleanup()
129 __raw_writel(ctrl & ~RNGA_CONTROL_GO, rng_base + RNGA_CONTROL); in mxc_rnga_cleanup()
145 void __iomem *rng_base = NULL; in mxc_rnga_probe() local
171 rng_base = ioremap(res->start, resource_size(res)); in mxc_rnga_probe()
172 if (!rng_base) { in mxc_rnga_probe()
177 mxc_rnga.priv = (unsigned long)rng_base; in mxc_rnga_probe()
192 iounmap(rng_base); in mxc_rnga_probe()
193 rng_base = NULL; in mxc_rnga_probe()
209 void __iomem *rng_base = (void __iomem *)mxc_rnga.priv; in mxc_rnga_remove() local
214 iounmap(rng_base); in mxc_rnga_remove()