Searched refs:harvest_context (Results 1 – 2 of 2) sorted by relevance
125 static struct harvest_context { struct163 } harvest_context; argument168 &harvest_context.hc_kthread_proc,192 while (harvest_context.hc_entropy_ring.out != harvest_context.hc_entropy_ring.in) { in random_kthread()193 ring_out = (harvest_context.hc_entropy_ring.out + 1)%RANDOM_RING_MAX; in random_kthread()194 random_harvestq_fast_process_event(harvest_context.hc_entropy_ring.ring + ring_out); in random_kthread()195 harvest_context.hc_entropy_ring.out = ring_out; in random_kthread()202 if (harvest_context.hc_entropy_fast_accumulator.buf[i]) { in random_kthread()203 …random_harvest_direct(harvest_context.hc_entropy_fast_accumulator.buf + i, sizeof(harvest_context.… in random_kthread()204 harvest_context.hc_entropy_fast_accumulator.buf[i] = 0; in random_kthread()[all …]
43 #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)