Searched refs:input_pool (Results 1 – 1 of 1) sorted by relevance
| /linux/drivers/char/ |
| H A D | random.c | 632 } input_pool = { variable 637 .lock = __SPIN_LOCK_UNLOCKED(input_pool.lock), 642 blake2s_update(&input_pool.hash, buf, len); in _mix_pool_bytes() 654 spin_lock_irqsave(&input_pool.lock, flags); in mix_pool_bytes() 656 spin_unlock_irqrestore(&input_pool.lock, flags); in mix_pool_bytes() 687 spin_lock_irqsave(&input_pool.lock, flags); in extract_entropy() 690 blake2s_final(&input_pool.hash, seed); in extract_entropy() 695 blake2s_init_key(&input_pool.hash, BLAKE2S_HASH_SIZE, next_key, sizeof(next_key)); in extract_entropy() 697 spin_unlock_irqrestore(&input_pool.lock, flags); in extract_entropy() 727 orig = READ_ONCE(input_pool.init_bits); in _credit_init_bits() [all …]
|