Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/char/
Drandom.c188 } base_crng = { variable
189 .lock = __SPIN_LOCK_UNLOCKED(base_crng.lock)
221 spin_lock_irqsave(&base_crng.lock, flags); in crng_reseed()
222 memcpy(base_crng.key, key, sizeof(base_crng.key)); in crng_reseed()
223 next_gen = base_crng.generation + 1; in crng_reseed()
226 WRITE_ONCE(base_crng.generation, next_gen); in crng_reseed()
227 WRITE_ONCE(base_crng.birth, jiffies); in crng_reseed()
230 spin_unlock_irqrestore(&base_crng.lock, flags); in crng_reseed()
308 spin_lock_irqsave(&base_crng.lock, flags); in crng_make_state()
312 extract_entropy(base_crng.key, sizeof(base_crng.key)); in crng_make_state()
[all …]