Lines Matching refs:primary_crng
451 static struct crng_state primary_crng = { variable
452 .lock = __SPIN_LOCK_UNLOCKED(primary_crng.lock),
726 crng_reseed(&primary_crng, r); in credit_entropy_bits()
873 if (!spin_trylock_irqsave(&primary_crng.lock, flags)) in crng_fast_load()
876 spin_unlock_irqrestore(&primary_crng.lock, flags); in crng_fast_load()
879 p = (unsigned char *) &primary_crng.state[4]; in crng_fast_load()
884 spin_unlock_irqrestore(&primary_crng.lock, flags); in crng_fast_load()
914 char * dest_buf = (char *) &primary_crng.state[4]; in crng_slow_load()
916 if (!spin_trylock_irqsave(&primary_crng.lock, flags)) in crng_slow_load()
919 spin_unlock_irqrestore(&primary_crng.lock, flags); in crng_slow_load()
934 spin_unlock_irqrestore(&primary_crng.lock, flags); in crng_slow_load()
952 _extract_crng(&primary_crng, buf.block); in crng_reseed()
953 _crng_backtrack_protect(&primary_crng, buf.block, in crng_reseed()
967 if (crng == &primary_crng && crng_init < 2) { in crng_reseed()
996 crng_reseed(crng, crng == &primary_crng ? &input_pool : NULL); in _extract_crng()
1015 crng = &primary_crng; in extract_crng()
1052 crng = &primary_crng; in crng_backtrack_protect()
1778 crng_initialize_primary(&primary_crng); in rand_initialize()
1827 spin_lock_irqsave(&primary_crng.lock, flags); in urandom_read()
1829 spin_unlock_irqrestore(&primary_crng.lock, flags); in urandom_read()
1951 crng_reseed(&primary_crng, &input_pool); in random_ioctl()