Lines Matching refs:entropy
464 type entropy[CHACHA_BLOCK_SIZE * 3 / (2 * sizeof(type))]; \
493 if (batch->position >= ARRAY_SIZE(batch->entropy) || \
495 _get_random_bytes(batch->entropy, sizeof(batch->entropy)); \
500 ret = batch->entropy[batch->position]; \
501 batch->entropy[batch->position] = 0; \
754 unsigned long flags, entropy = random_get_entropy(); in random_pm_notification() local
765 _mix_pool_bytes(&entropy, sizeof(entropy)); in random_pm_notification()
785 unsigned long entropy[BLAKE2S_BLOCK_SIZE / sizeof(long)]; in random_init_early() local
793 for (i = 0, arch_bits = sizeof(entropy) * 8; i < ARRAY_SIZE(entropy);) { in random_init_early()
794 longs = arch_get_random_seed_longs_early(entropy, ARRAY_SIZE(entropy) - i); in random_init_early()
796 _mix_pool_bytes(entropy, sizeof(*entropy) * longs); in random_init_early()
800 longs = arch_get_random_longs_early(entropy, ARRAY_SIZE(entropy) - i); in random_init_early()
802 _mix_pool_bytes(entropy, sizeof(*entropy) * longs); in random_init_early()
806 arch_bits -= sizeof(*entropy) * 8; in random_init_early()
826 unsigned long entropy = random_get_entropy(); in random_init() local
830 _mix_pool_bytes(&entropy, sizeof(entropy)); in random_init()
847 WARN(!entropy, "Missing cycle counter and fallback timer; RNG " in random_init()
861 unsigned long entropy = random_get_entropy(); in add_device_randomness() local
865 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_device_randomness()
876 void add_hwgenerator_randomness(const void *buf, size_t len, size_t entropy) in add_hwgenerator_randomness() argument
879 credit_init_bits(entropy); in add_hwgenerator_randomness()
885 if (!kthread_should_stop() && (crng_ready() || !entropy)) in add_hwgenerator_randomness()
1033 unsigned long entropy = random_get_entropy(); in add_interrupt_randomness() local
1038 fast_mix(fast_pool->pool, entropy, in add_interrupt_randomness()
1071 unsigned long entropy = random_get_entropy(), now = jiffies, flags; in add_timer_randomness() local
1080 fast_mix(this_cpu_ptr(&irq_randomness)->pool, entropy, num); in add_timer_randomness()
1083 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_timer_randomness()
1177 unsigned long entropy; member
1217 stack.entropy = random_get_entropy(); in try_to_generate_entropy()
1218 if (stack.entropy != last) in try_to_generate_entropy()
1220 last = stack.entropy; in try_to_generate_entropy()
1231 mix_pool_bytes(&stack.entropy, sizeof(stack.entropy)); in try_to_generate_entropy()
1233 stack.entropy = random_get_entropy(); in try_to_generate_entropy()
1238 mix_pool_bytes(&stack.entropy, sizeof(stack.entropy)); in try_to_generate_entropy()