Lines Matching refs:stack
1056 * The size of the copied stack pool is explicitly 2 longs so that we
1073 * Copy the pool to the stack so that the mixer always has a
1244 * activity will be touching the stack of the CPU that is generating entropy.
1270 struct entropy_timer_state *stack = PTR_ALIGN((void *)stack_bytes, SMP_CACHE_BYTES);
1276 stack->entropy = random_get_entropy();
1277 if (stack->entropy != last)
1279 last = stack->entropy;
1281 stack->samples_per_bit = DIV_ROUND_UP(NUM_TRIAL_SAMPLES, num_different + 1);
1282 if (stack->samples_per_bit > MAX_SAMPLES_PER_BIT)
1285 atomic_set(&stack->samples, 0);
1286 timer_setup_on_stack(&stack->timer, entropy_timer, 0);
1292 if (!timer_pending(&stack->timer) && try_to_del_timer_sync(&stack->timer) >= 0) {
1319 stack->timer.expires = jiffies;
1321 add_timer_on(&stack->timer, cpu);
1325 mix_pool_bytes(&stack->entropy, sizeof(stack->entropy));
1327 stack->entropy = random_get_entropy();
1329 mix_pool_bytes(&stack->entropy, sizeof(stack->entropy));
1331 del_timer_sync(&stack->timer);
1332 destroy_timer_on_stack(&stack->timer);