Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/char/
Drandom.c586 struct fast_pool { struct
598 static void fast_mix(struct fast_pool *f) in fast_mix() argument
1194 static DEFINE_PER_CPU(struct fast_pool, irq_randomness);
1217 static __u32 get_reg(struct fast_pool *f, struct pt_regs *regs) in get_reg()
1235 struct fast_pool *fast_pool = this_cpu_ptr(&irq_randomness); in add_interrupt_randomness() local
1245 cycles = get_reg(fast_pool, regs); in add_interrupt_randomness()
1248 fast_pool->pool[0] ^= cycles ^ j_high ^ irq; in add_interrupt_randomness()
1249 fast_pool->pool[1] ^= now ^ c_high; in add_interrupt_randomness()
1251 fast_pool->pool[2] ^= ip; in add_interrupt_randomness()
1252 fast_pool->pool[3] ^= (sizeof(ip) > 4) ? ip >> 32 : in add_interrupt_randomness()
[all …]