Lines Matching refs:fast_pool
557 struct fast_pool { struct
570 static void fast_mix(struct fast_pool *f, const void *in, int nbytes) in fast_mix() argument
745 static DEFINE_PER_CPU(struct fast_pool, irq_randomness);
750 struct fast_pool *fast_pool = &__get_cpu_var(irq_randomness); in add_interrupt_randomness() local
763 fast_mix(fast_pool, input, sizeof(input)); in add_interrupt_randomness()
765 if ((fast_pool->count & 1023) && in add_interrupt_randomness()
766 !time_after(now, fast_pool->last + HZ)) in add_interrupt_randomness()
769 fast_pool->last = now; in add_interrupt_randomness()
772 __mix_pool_bytes(r, &fast_pool->pool, sizeof(fast_pool->pool), NULL); in add_interrupt_randomness()
780 if (fast_pool->last_timer_intr) in add_interrupt_randomness()
782 fast_pool->last_timer_intr = 1; in add_interrupt_randomness()
784 fast_pool->last_timer_intr = 0; in add_interrupt_randomness()