Home
last modified time | relevance | path

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

/linux/drivers/char/
H A Drandom.c642 } input_pool = { variable
647 .lock = __SPIN_LOCK_UNLOCKED(input_pool.lock),
652 blake2s_update(&input_pool.hash, buf, len); in _mix_pool_bytes()
664 spin_lock_irqsave(&input_pool.lock, flags); in mix_pool_bytes()
666 spin_unlock_irqrestore(&input_pool.lock, flags); in mix_pool_bytes()
697 spin_lock_irqsave(&input_pool.lock, flags); in extract_entropy()
700 blake2s_final(&input_pool.hash, seed); in extract_entropy()
705 blake2s_init_key(&input_pool.hash, BLAKE2S_HASH_SIZE, next_key, sizeof(next_key)); in extract_entropy()
707 spin_unlock_irqrestore(&input_pool.lock, flags); in extract_entropy()
737 orig = READ_ONCE(input_pool.init_bits); in _credit_init_bits()
[all …]