Lines Matching refs:entropy_smartbond_data

52 static struct entropy_smartbond_dev_data entropy_smartbond_data;  variable
252 ptr = rng_pool_put_bytes((struct rng_pool *)(entropy_smartbond_data.isr), ptr, in smartbond_trng_isr()
258 k_sem_give(&entropy_smartbond_data.sem_sync); in smartbond_trng_isr()
260 ptr = rng_pool_put_bytes((struct rng_pool *)(entropy_smartbond_data.thr), in smartbond_trng_isr()
275 __ASSERT_NO_MSG(&entropy_smartbond_data == dev->data); in entropy_smartbond_get_entropy()
280 k_sem_take(&entropy_smartbond_data.sem_lock, K_FOREVER); in entropy_smartbond_get_entropy()
281 bytes = rng_pool_get((struct rng_pool *)(entropy_smartbond_data.thr), buf, len); in entropy_smartbond_get_entropy()
282 k_sem_give(&entropy_smartbond_data.sem_lock); in entropy_smartbond_get_entropy()
286 k_sem_take(&entropy_smartbond_data.sem_sync, K_FOREVER); in entropy_smartbond_get_entropy()
304 __ASSERT_NO_MSG(&entropy_smartbond_data == dev->data); in entropy_smartbond_get_entropy_isr()
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()
405 __ASSERT_NO_MSG(&entropy_smartbond_data == dev->data); in entropy_smartbond_init()
408 k_sem_init(&entropy_smartbond_data.sem_lock, 1, 1); in entropy_smartbond_init()
411 k_sem_init(&entropy_smartbond_data.sem_sync, 0, 1); in entropy_smartbond_init()
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()
420 IRQ_CONNECT(IRQN, IRQ_PRIO, smartbond_trng_isr, &entropy_smartbond_data, 0); in entropy_smartbond_init()
431 &entropy_smartbond_data, NULL, PRE_KERNEL_1,