Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/char/hw_random/
Dba431-rng.c47 static inline u32 ba431_trng_read_reg(struct ba431_trng *ba431, u32 reg) in ba431_trng_read_reg() argument
49 return ioread32(ba431->base + reg); in ba431_trng_read_reg()
52 static inline void ba431_trng_write_reg(struct ba431_trng *ba431, u32 reg, in ba431_trng_write_reg() argument
55 iowrite32(val, ba431->base + reg); in ba431_trng_write_reg()
58 static inline enum ba431_state ba431_trng_get_state(struct ba431_trng *ba431) in ba431_trng_get_state() argument
60 u32 status = ba431_trng_read_reg(ba431, BA431_REG_STATUS); in ba431_trng_get_state()
65 static int ba431_trng_is_in_error(struct ba431_trng *ba431) in ba431_trng_is_in_error() argument
67 enum ba431_state state = ba431_trng_get_state(ba431); in ba431_trng_is_in_error()
76 static int ba431_trng_reset(struct ba431_trng *ba431) in ba431_trng_reset() argument
81 ba431_trng_write_reg(ba431, BA431_REG_CTRL, BA431_CTRL_SOFTRESET); in ba431_trng_reset()
[all …]
DMakefile12 obj-$(CONFIG_HW_RANDOM_BA431) += ba431-rng.o
DKconfig86 module will be called ba431-rng.