Home
last modified time | relevance | path

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

/drivers/char/hw_random/
Dpasemi-rng.c47 void __iomem *rng_regs = (void __iomem *)rng->priv; in pasemi_rng_data_present() local
51 data = (in_le32(rng_regs + SDCRNG_CTL_REG) in pasemi_rng_data_present()
62 void __iomem *rng_regs = (void __iomem *)rng->priv; in pasemi_rng_data_read() local
63 *data = in_le32(rng_regs + SDCRNG_VAL_REG); in pasemi_rng_data_read()
69 void __iomem *rng_regs = (void __iomem *)rng->priv; in pasemi_rng_init() local
73 out_le32(rng_regs + SDCRNG_CTL_REG, ctl); in pasemi_rng_init()
74 out_le32(rng_regs + SDCRNG_CTL_REG, ctl & ~SDCRNG_CTL_DR); in pasemi_rng_init()
81 void __iomem *rng_regs = (void __iomem *)rng->priv; in pasemi_rng_cleanup() local
85 out_le32(rng_regs + SDCRNG_CTL_REG, in pasemi_rng_cleanup()
86 in_le32(rng_regs + SDCRNG_CTL_REG) & ~ctl); in pasemi_rng_cleanup()
[all …]
Dppc4xx-rng.c32 void __iomem *rng_regs = (void __iomem *) rng->priv; in ppc4xx_rng_data_present() local
36 busy = (in_le32(rng_regs + PPC4XX_TRNG_STAT) & PPC4XX_TRNG_STAT_B); in ppc4xx_rng_data_present()
48 void __iomem *rng_regs = (void __iomem *) rng->priv; in ppc4xx_rng_data_read() local
49 *data = in_le32(rng_regs + PPC4XX_TRNG_DATA); in ppc4xx_rng_data_read()
95 void __iomem *rng_regs; in ppc4xx_rng_probe() local
98 rng_regs = of_iomap(dev->dev.of_node, 0); in ppc4xx_rng_probe()
99 if (!rng_regs) in ppc4xx_rng_probe()
106 out_le32(rng_regs + PPC4XX_TRNG_CTRL, PPC4XX_TRNG_CTRL_DALM); in ppc4xx_rng_probe()
107 ppc4xx_rng.priv = (unsigned long) rng_regs; in ppc4xx_rng_probe()
116 void __iomem *rng_regs = (void __iomem *) ppc4xx_rng.priv; in ppc4xx_rng_remove() local
[all …]