Home
last modified time | relevance | path

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

/linux/drivers/char/
H A Drandom.c629 } input_pool = { variable
634 .lock = __SPIN_LOCK_UNLOCKED(input_pool.lock),
639 blake2s_update(&input_pool.hash, buf, len); in _mix_pool_bytes()
651 spin_lock_irqsave(&input_pool.lock, flags); in mix_pool_bytes()
653 spin_unlock_irqrestore(&input_pool.lock, flags); in mix_pool_bytes()
684 spin_lock_irqsave(&input_pool.lock, flags); in extract_entropy()
687 blake2s_final(&input_pool.hash, seed); in extract_entropy()
692 blake2s_init_key(&input_pool.hash, BLAKE2S_HASH_SIZE, next_key, sizeof(next_key)); in extract_entropy()
694 spin_unlock_irqrestore(&input_pool.lock, flags); in extract_entropy()
724 orig = READ_ONCE(input_pool.init_bits); in _credit_init_bits()
[all …]