Searched refs:ba431 (Results 1 – 3 of 3) sorted by relevance
47 static inline u32 ba431_trng_read_reg(struct ba431_trng *ba431, u32 reg) in ba431_trng_read_reg() argument49 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() argument55 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() argument60 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() argument67 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() argument81 ba431_trng_write_reg(ba431, BA431_REG_CTRL, BA431_CTRL_SOFTRESET); in ba431_trng_reset()[all …]
12 obj-$(CONFIG_HW_RANDOM_BA431) += ba431-rng.o
86 module will be called ba431-rng.