Lines Matching refs:entropy_nrf5_data
101 static struct entropy_nrf5_dev_data entropy_nrf5_data; variable
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()
221 k_sem_give(&entropy_nrf5_data.sem_sync); in isr()
229 __ASSERT_NO_MSG(&entropy_nrf5_data == dev->data); in entropy_nrf5_get_entropy()
234 k_sem_take(&entropy_nrf5_data.sem_lock, K_FOREVER); in entropy_nrf5_get_entropy()
235 bytes = rng_pool_get((struct rng_pool *)(entropy_nrf5_data.thr), in entropy_nrf5_get_entropy()
237 k_sem_give(&entropy_nrf5_data.sem_lock); in entropy_nrf5_get_entropy()
241 k_sem_take(&entropy_nrf5_data.sem_sync, K_FOREVER); in entropy_nrf5_get_entropy()
259 __ASSERT_NO_MSG(&entropy_nrf5_data == dev->data); in entropy_nrf5_get_entropy_isr()
262 return rng_pool_get((struct rng_pool *)(entropy_nrf5_data.isr), in entropy_nrf5_get_entropy_isr()
320 &entropy_nrf5_data, NULL,
327 __ASSERT_NO_MSG(&entropy_nrf5_data == dev->data); in entropy_nrf5_init()
330 k_sem_init(&entropy_nrf5_data.sem_lock, 1, 1); in entropy_nrf5_init()
333 k_sem_init(&entropy_nrf5_data.sem_sync, 0, 1); in entropy_nrf5_init()
335 rng_pool_init((struct rng_pool *)(entropy_nrf5_data.thr), in entropy_nrf5_init()
338 rng_pool_init((struct rng_pool *)(entropy_nrf5_data.isr), in entropy_nrf5_init()
353 IRQ_CONNECT(IRQN, IRQ_PRIO, isr, &entropy_nrf5_data, 0); in entropy_nrf5_init()