Home | History | Annotate | Download | only in rand

Lines Matching full:crypto_lock_rand

146 static unsigned int crypto_lock_rand = 0; /* may be set only when a thread
147 * holds CRYPTO_LOCK_RAND
150 static CRYPTO_THREADID locking_threadid; /* valid iff crypto_lock_rand is set */
217 if (crypto_lock_rand)
228 if (!do_not_lock) CRYPTO_w_lock(CRYPTO_LOCK_RAND);
260 if (!do_not_lock) CRYPTO_w_unlock(CRYPTO_LOCK_RAND);
311 if (!do_not_lock) CRYPTO_w_lock(CRYPTO_LOCK_RAND);
322 if (!do_not_lock) CRYPTO_w_unlock(CRYPTO_LOCK_RAND);
384 CRYPTO_w_lock(CRYPTO_LOCK_RAND);
390 crypto_lock_rand = 1;
461 /* before unlocking, we must clear 'crypto_lock_rand' */
462 crypto_lock_rand = 0;
463 CRYPTO_w_unlock(CRYPTO_LOCK_RAND);
515 CRYPTO_w_lock(CRYPTO_LOCK_RAND);
518 CRYPTO_w_unlock(CRYPTO_LOCK_RAND);
555 if (crypto_lock_rand)
566 CRYPTO_w_lock(CRYPTO_LOCK_RAND);
572 crypto_lock_rand = 1;
585 /* before unlocking, we must clear 'crypto_lock_rand' */
586 crypto_lock_rand = 0;
588 CRYPTO_w_unlock(CRYPTO_LOCK_RAND);