Searched refs:rng_regs (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/char/hw_random/
H A Dpasemi-rng.c48 void __iomem *rng_regs = (void __iomem *)rng->priv; pasemi_rng_data_present() local
52 data = (in_le32(rng_regs + SDCRNG_CTL_REG) pasemi_rng_data_present()
63 void __iomem *rng_regs = (void __iomem *)rng->priv; pasemi_rng_data_read() local
64 *data = in_le32(rng_regs + SDCRNG_VAL_REG); pasemi_rng_data_read()
70 void __iomem *rng_regs = (void __iomem *)rng->priv; pasemi_rng_init() local
74 out_le32(rng_regs + SDCRNG_CTL_REG, ctl); pasemi_rng_init()
75 out_le32(rng_regs + SDCRNG_CTL_REG, ctl & ~SDCRNG_CTL_DR); pasemi_rng_init()
82 void __iomem *rng_regs = (void __iomem *)rng->priv; pasemi_rng_cleanup() local
86 out_le32(rng_regs + SDCRNG_CTL_REG, pasemi_rng_cleanup()
87 in_le32(rng_regs + SDCRNG_CTL_REG) & ~ctl); pasemi_rng_cleanup()
100 void __iomem *rng_regs; rng_probe() local
109 rng_regs = ioremap(res.start, 0x100); rng_probe()
111 if (!rng_regs) rng_probe()
114 pasemi_rng.priv = (unsigned long)rng_regs; rng_probe()
121 iounmap(rng_regs); rng_probe()
128 void __iomem *rng_regs = (void __iomem *)pasemi_rng.priv; rng_remove() local
131 iounmap(rng_regs); rng_remove()
H A Dppc4xx-rng.c33 void __iomem *rng_regs = (void __iomem *) rng->priv; ppc4xx_rng_data_present() local
37 busy = (in_le32(rng_regs + PPC4XX_TRNG_STAT) & PPC4XX_TRNG_STAT_B); ppc4xx_rng_data_present()
49 void __iomem *rng_regs = (void __iomem *) rng->priv; ppc4xx_rng_data_read() local
50 *data = in_le32(rng_regs + PPC4XX_TRNG_DATA); ppc4xx_rng_data_read()
96 void __iomem *rng_regs; ppc4xx_rng_probe() local
99 rng_regs = of_iomap(dev->dev.of_node, 0); ppc4xx_rng_probe()
100 if (!rng_regs) ppc4xx_rng_probe()
107 out_le32(rng_regs + PPC4XX_TRNG_CTRL, PPC4XX_TRNG_CTRL_DALM); ppc4xx_rng_probe()
108 ppc4xx_rng.priv = (unsigned long) rng_regs; ppc4xx_rng_probe()
117 void __iomem *rng_regs = (void __iomem *) ppc4xx_rng.priv; ppc4xx_rng_remove() local
121 iounmap(rng_regs); ppc4xx_rng_remove()

Completed in 59 milliseconds