Searched refs:rng_pool (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/drivers/entropy/ |
D | entropy_nrf5.c | 74 struct rng_pool { struct 83 #define RNG_POOL_DEFINE(name, len) uint8_t name[sizeof(struct rng_pool) + (len)] argument 120 static uint16_t rng_pool_get(struct rng_pool *rngp, uint8_t *buf, uint16_t len) in rng_pool_get() 176 static int rng_pool_put(struct rng_pool *rngp, uint8_t byte) in rng_pool_put() 193 static void rng_pool_init(struct rng_pool *rngp, uint16_t size, uint8_t threshold) in rng_pool_init() 213 ret = rng_pool_put((struct rng_pool *)(entropy_nrf5_data.isr), byte); in isr() 215 ret = rng_pool_put((struct rng_pool *)(entropy_nrf5_data.thr), in isr() 235 bytes = rng_pool_get((struct rng_pool *)(entropy_nrf5_data.thr), in entropy_nrf5_get_entropy() 262 return rng_pool_get((struct rng_pool *)(entropy_nrf5_data.isr), in entropy_nrf5_get_entropy_isr() 335 rng_pool_init((struct rng_pool *)(entropy_nrf5_data.thr), in entropy_nrf5_init() [all …]
|
D | entropy_smartbond.c | 25 struct rng_pool { struct 34 #define RNG_POOL_DEFINE(name, len) uint8_t name[sizeof(struct rng_pool) + (len)] argument 137 static uint16_t rng_pool_get(struct rng_pool *rngp, uint8_t *buf, uint16_t len) in rng_pool_get() 193 static int rng_pool_put(struct rng_pool *rngp, uint8_t byte) in rng_pool_put() 210 static const uint8_t *rng_pool_put_bytes(struct rng_pool *rngp, const uint8_t *bytes, in rng_pool_put_bytes() 226 static void rng_pool_init(struct rng_pool *rngp, uint16_t size, uint8_t threshold) in rng_pool_init() 252 ptr = rng_pool_put_bytes((struct rng_pool *)(entropy_smartbond_data.isr), ptr, in smartbond_trng_isr() 260 ptr = rng_pool_put_bytes((struct rng_pool *)(entropy_smartbond_data.thr), in smartbond_trng_isr() 281 bytes = rng_pool_get((struct rng_pool *)(entropy_smartbond_data.thr), buf, len); in entropy_smartbond_get_entropy() 307 return rng_pool_get((struct rng_pool *)(entropy_smartbond_data.isr), buf, len); in entropy_smartbond_get_entropy_isr() [all …]
|
D | entropy_stm32.c | 62 struct rng_pool { struct 71 #define RNG_POOL_DEFINE(name, len) uint8_t name[sizeof(struct rng_pool) + (len)] argument 446 static uint16_t rng_pool_get(struct rng_pool *rngp, uint8_t *buf, in rng_pool_get() 512 static int rng_pool_put(struct rng_pool *rngp, uint8_t byte) in rng_pool_put() 529 static void rng_pool_init(struct rng_pool *rngp, uint16_t size, in rng_pool_init() 550 ret = rng_pool_put((struct rng_pool *)(entropy_stm32_rng_data.isr), in stm32_rng_isr() 554 (struct rng_pool *)(entropy_stm32_rng_data.thr), in stm32_rng_isr() 582 (struct rng_pool *)(entropy_stm32_rng_data.thr), in entropy_stm32_rng_get_entropy() 611 (struct rng_pool *)(entropy_stm32_rng_data.isr), in entropy_stm32_rng_get_entropy_isr() 687 rng_pool_init((struct rng_pool *)(dev_data->thr), in entropy_stm32_rng_init() [all …]
|