Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/char/
H A Drandom.c74 * crng_init is protected by base_crng->lock, and only increases
225 } base_crng = { variable
226 .lock = __SPIN_LOCK_UNLOCKED(base_crng.lock)
253 * We copy the new key into the base_crng, overwriting the old one, in crng_reseed()
258 spin_lock_irqsave(&base_crng.lock, flags); in crng_reseed()
259 memcpy(base_crng.key, key, sizeof(base_crng.key)); in crng_reseed()
260 next_gen = base_crng.generation + 1; in crng_reseed()
263 WRITE_ONCE(base_crng.generation, next_gen); in crng_reseed()
264 WRITE_ONCE(base_crng in crng_reseed()
[all...]
/kernel/linux/linux-6.6/drivers/char/
H A Drandom.c76 * crng_init is protected by base_crng->lock, and only increases
210 } base_crng = { variable
211 .lock = __SPIN_LOCK_UNLOCKED(base_crng.lock)
263 * We copy the new key into the base_crng, overwriting the old one, in crng_reseed()
268 spin_lock_irqsave(&base_crng.lock, flags); in crng_reseed()
269 memcpy(base_crng.key, key, sizeof(base_crng.key)); in crng_reseed()
270 next_gen = base_crng.generation + 1; in crng_reseed()
273 WRITE_ONCE(base_crng.generation, next_gen); in crng_reseed()
276 spin_unlock_irqrestore(&base_crng in crng_reseed()
[all...]

Completed in 3 milliseconds