Home
last modified time | relevance | path

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

/linux/drivers/char/hw_random/
H A Drockchip-rng.c52 struct rk_rng { struct
60 static void rk_rng_write_ctl(struct rk_rng *rng, u32 val, u32 mask) in rk_rng_write_ctl() argument
67 struct rk_rng *rk_rng = container_of(rng, struct rk_rng, rng); in rk_rng_init() local
71 ret = clk_bulk_prepare_enable(rk_rng->clk_num, rk_rng->clk_bulks); in rk_rng_init()
73 dev_err((struct device *) rk_rng->rng.priv, in rk_rng_init()
79 writel(RK_RNG_SAMPLE_CNT, rk_rng->base + TRNG_RNG_SAMPLE_CNT); in rk_rng_init()
82 rk_rng_write_ctl(rk_rng, TRNG_RNG_CTL_LEN_256_BIT | in rk_rng_init()
92 struct rk_rng *rk_rng = container_of(rng, struct rk_rng, rng); in rk_rng_cleanup() local
95 rk_rng_write_ctl(rk_rng, 0, TRNG_RNG_CTL_MASK); in rk_rng_cleanup()
98 clk_bulk_disable_unprepare(rk_rng->clk_num, rk_rng->clk_bulks); in rk_rng_cleanup()
[all …]