Lines Matching refs:srndpool_lock
88 static kmutex_t srndpool_lock; /* protects r/w accesses to the pool, */ variable
203 mutex_init(&srndpool_lock, NULL, MUTEX_DEFAULT, NULL); in _init()
238 mutex_enter(&srndpool_lock); in _init()
240 mutex_exit(&srndpool_lock); in _init()
256 mutex_destroy(&srndpool_lock); in _init()
325 mutex_enter(&srndpool_lock); in swrand_get_entropy()
344 mutex_exit(&srndpool_lock); in swrand_get_entropy()
352 &srndpool_lock) == 0) { in swrand_get_entropy()
354 mutex_exit(&srndpool_lock); in swrand_get_entropy()
428 mutex_exit(&srndpool_lock); in swrand_get_entropy()
447 ASSERT(MUTEX_HELD(&srndpool_lock)); in swrand_add_bytes()
477 ASSERT(MUTEX_HELD(&srndpool_lock)); in swrand_mix_pool()
546 mutex_enter(&srndpool_lock); in swrand_add_entropy()
549 mutex_exit(&srndpool_lock); in swrand_add_entropy()
625 mutex_enter(&srndpool_lock); in physmem_ent_init()
627 mutex_exit(&srndpool_lock); in physmem_ent_init()
637 mutex_enter(&srndpool_lock); in physmem_ent_init()
640 mutex_exit(&srndpool_lock); in physmem_ent_init()
880 ASSERT(MUTEX_HELD(&srndpool_lock)); in swrand_schedule_timeout()
900 mutex_enter(&srndpool_lock); in rnd_handler()
907 mutex_exit(&srndpool_lock); in rnd_handler()