Lines Matching refs:entropy_stm32_rng_data
103 static struct entropy_stm32_rng_dev_data entropy_stm32_rng_data = { variable
168 RNG_TypeDef *rng = entropy_stm32_rng_data.rng; in configure_rng()
298 RNG_TypeDef *rng = entropy_stm32_rng_data.rng; in random_byte_get()
352 if (LL_RNG_IsActiveFlag_SECS(entropy_stm32_rng_data.rng) || in generate_from_isr()
353 LL_RNG_IsActiveFlag_SEIS(entropy_stm32_rng_data.rng)) { in generate_from_isr()
371 entropy_stm32_rng_data.rng) != 1) { in generate_from_isr()
415 already_filling = entropy_stm32_rng_data.filling_pools; in start_pool_filling()
416 entropy_stm32_rng_data.filling_pools = true; in start_pool_filling()
503 k_work_submit(&entropy_stm32_rng_data.filling_work); in rng_pool_get()
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()
563 entropy_stm32_rng_data.filling_pools = false; in stm32_rng_isr()
566 k_sem_give(&entropy_stm32_rng_data.sem_sync); in stm32_rng_isr()
575 __ASSERT_NO_MSG(&entropy_stm32_rng_data == dev->data); in entropy_stm32_rng_get_entropy()
580 k_sem_take(&entropy_stm32_rng_data.sem_lock, K_FOREVER); in entropy_stm32_rng_get_entropy()
582 (struct rng_pool *)(entropy_stm32_rng_data.thr), in entropy_stm32_rng_get_entropy()
587 k_sem_take(&entropy_stm32_rng_data.sem_sync, K_FOREVER); in entropy_stm32_rng_get_entropy()
590 k_sem_give(&entropy_stm32_rng_data.sem_lock); in entropy_stm32_rng_get_entropy()
607 __ASSERT_NO_MSG(&entropy_stm32_rng_data == dev->data); in entropy_stm32_rng_get_entropy_isr()
611 (struct rng_pool *)(entropy_stm32_rng_data.isr), in entropy_stm32_rng_get_entropy_isr()
694 IRQ_CONNECT(IRQN, IRQ_PRIO, stm32_rng_isr, &entropy_stm32_rng_data, 0); in entropy_stm32_rng_init()
738 } else if (!entropy_stm32_rng_data.filling_pools) { in entropy_stm32_rng_pm_action()
753 if (entropy_stm32_rng_data.filling_pools) { in entropy_stm32_rng_pm_action()
776 &entropy_stm32_rng_data, &entropy_stm32_rng_config,