Lines Matching refs:fast_pool
993 struct fast_pool { struct
1002 static DEFINE_PER_CPU(struct fast_pool, irq_randomness) = { argument
1054 struct fast_pool *fast_pool = container_of(work, struct fast_pool, mix); in mix_interrupt_randomness() local
1067 if (fast_pool != this_cpu_ptr(&irq_randomness)) { in mix_interrupt_randomness()
1076 memcpy(pool, fast_pool->pool, sizeof(pool)); in mix_interrupt_randomness()
1077 count = fast_pool->count; in mix_interrupt_randomness()
1078 fast_pool->count = 0; in mix_interrupt_randomness()
1079 fast_pool->last = jiffies; in mix_interrupt_randomness()
1092 struct fast_pool *fast_pool = this_cpu_ptr(&irq_randomness); in add_interrupt_randomness() local
1096 fast_mix(fast_pool->pool, entropy, in add_interrupt_randomness()
1098 new_count = ++fast_pool->count; in add_interrupt_randomness()
1103 if (new_count < 1024 && !time_is_before_jiffies(fast_pool->last + HZ)) in add_interrupt_randomness()
1106 fast_pool->count |= MIX_INFLIGHT; in add_interrupt_randomness()
1107 if (!timer_pending(&fast_pool->mix)) { in add_interrupt_randomness()
1108 fast_pool->mix.expires = jiffies; in add_interrupt_randomness()
1109 add_timer_on(&fast_pool->mix, raw_smp_processor_id()); in add_interrupt_randomness()