Home
last modified time | relevance | path

Searched refs:harvest_context (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/random/
H A Drandom_harvestq.c123 static struct harvest_context { struct
161 } harvest_context; argument
166 &harvest_context.hc_kthread_proc,
190 while (harvest_context.hc_entropy_ring.out != harvest_context.hc_entropy_ring.in) { in random_kthread()
193 harvest_context.hc_entropy_ring.out = ring_out; in random_kthread()
206 tsleep_sbt(&harvest_context.hc_kthread_proc, 0, "-", in random_kthread()
210 wakeup(&harvest_context.hc_kthread_proc); in random_kthread()
434 harvest_context.hc_entropy_ring.in = harvest_context.hc_entropy_ring.out = 0; in random_harvestq_init()
458 harvest_context.hc_destination[RANDOM_CACHED]++; in random_early_prime()
558 if (ring_in != harvest_context.hc_entropy_ring.out) { in random_harvest_queue_()
[all …]
H A Drandom_harvestq.h43 #define RANDOM_HARVEST_INIT_LOCK(x) mtx_init(&harvest_context.hc_mtx, "entropy harvest mutex", NULL…
44 #define RANDOM_HARVEST_LOCK(x) mtx_lock_spin(&harvest_context.hc_mtx)
45 #define RANDOM_HARVEST_UNLOCK(x) mtx_unlock_spin(&harvest_context.hc_mtx)