Lines Matching refs:rng_pool
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()
358 rng_pool_put_bytes((struct rng_pool *)(entropy_smartbond_data.isr), in entropy_smartbond_get_entropy_isr()
413 rng_pool_init((struct rng_pool *)(entropy_smartbond_data.thr), in entropy_smartbond_init()
416 rng_pool_init((struct rng_pool *)(entropy_smartbond_data.isr), in entropy_smartbond_init()