Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/char/hw_random/
Dks-sa-rng.c83 struct ks_sa_rng { struct
117 struct ks_sa_rng *ks_sa_rng = dev_get_drvdata(dev); in ks_sa_rng_init() local
118 unsigned long clk_rate = clk_get_rate(ks_sa_rng->clk); in ks_sa_rng_init()
121 regmap_write_bits(ks_sa_rng->regmap_cfg, SA_CMD_STATUS_OFS, in ks_sa_rng_init()
126 writel(0, &ks_sa_rng->reg_rng->control); in ks_sa_rng_init()
128 writel(value, &ks_sa_rng->reg_rng->control); in ks_sa_rng_init()
137 writel(value, &ks_sa_rng->reg_rng->config); in ks_sa_rng_init()
140 writel(0, &ks_sa_rng->reg_rng->intmask); in ks_sa_rng_init()
143 value = readl(&ks_sa_rng->reg_rng->control); in ks_sa_rng_init()
145 writel(value, &ks_sa_rng->reg_rng->control); in ks_sa_rng_init()
[all …]