Home
last modified time | relevance | path

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

/third_party/FreeBSD/sys/dev/random/
Dyarrow.c90 static struct yarrow_state { struct
105 } yarrow_state; argument
147 yarrow_state.ys_seeded = false; in random_yarrow_init_alg()
160 &yarrow_state.ys_gengateinterval, 0, in random_yarrow_init_alg()
166 &yarrow_state.ys_bins, 0, in random_yarrow_init_alg()
172 &yarrow_state.ys_pool[0].ysp_thresh, 0, in random_yarrow_init_alg()
178 &yarrow_state.ys_pool[1].ysp_thresh, 0, in random_yarrow_init_alg()
184 &yarrow_state.ys_slowoverthresh, 0, in random_yarrow_init_alg()
188 yarrow_state.ys_gengateinterval = 10; in random_yarrow_init_alg()
189 yarrow_state.ys_bins = 10; in random_yarrow_init_alg()
[all …]
Dyarrow.h33 #define RANDOM_RESEED_INIT_LOCK(x) mtx_init(&yarrow_state.ys_mtx, "reseed mutex", NULL, MTX_DEF)
34 #define RANDOM_RESEED_DEINIT_LOCK(x) mtx_destroy(&yarrow_state.ys_mtx)
35 #define RANDOM_RESEED_LOCK(x) mtx_lock(&yarrow_state.ys_mtx)
36 #define RANDOM_RESEED_UNLOCK(x) mtx_unlock(&yarrow_state.ys_mtx)
37 #define RANDOM_RESEED_ASSERT_LOCK_OWNED(x) mtx_assert(&yarrow_state.ys_mtx, MA_OWNED)