Lines Matching refs:rng_base
49 static void iproc_rng200_enable_set(void __iomem *rng_base, bool enable) in iproc_rng200_enable_set() argument
53 val = ioread32(rng_base + RNG_CTRL_OFFSET); in iproc_rng200_enable_set()
59 iowrite32(val, rng_base + RNG_CTRL_OFFSET); in iproc_rng200_enable_set()
62 static void iproc_rng200_restart(void __iomem *rng_base) in iproc_rng200_restart() argument
66 iproc_rng200_enable_set(rng_base, false); in iproc_rng200_restart()
69 iowrite32(0xFFFFFFFFUL, rng_base + RNG_INT_STATUS_OFFSET); in iproc_rng200_restart()
72 val = ioread32(rng_base + RBG_SOFT_RESET_OFFSET); in iproc_rng200_restart()
74 iowrite32(val, rng_base + RBG_SOFT_RESET_OFFSET); in iproc_rng200_restart()
76 val = ioread32(rng_base + RNG_SOFT_RESET_OFFSET); in iproc_rng200_restart()
78 iowrite32(val, rng_base + RNG_SOFT_RESET_OFFSET); in iproc_rng200_restart()
80 val = ioread32(rng_base + RNG_SOFT_RESET_OFFSET); in iproc_rng200_restart()
82 iowrite32(val, rng_base + RNG_SOFT_RESET_OFFSET); in iproc_rng200_restart()
84 val = ioread32(rng_base + RBG_SOFT_RESET_OFFSET); in iproc_rng200_restart()
86 iowrite32(val, rng_base + RBG_SOFT_RESET_OFFSET); in iproc_rng200_restart()
88 iproc_rng200_enable_set(rng_base, true); in iproc_rng200_restart()