Lines Matching refs:entropy

508 	type entropy[CHACHA_BLOCK_SIZE * 3 / (2 * sizeof(type))];		\
537 if (batch->position >= ARRAY_SIZE(batch->entropy) || \
539 _get_random_bytes(batch->entropy, sizeof(batch->entropy)); \
544 ret = batch->entropy[batch->position]; \
545 batch->entropy[batch->position] = 0; \
838 unsigned long flags, entropy = random_get_entropy(); in random_pm_notification() local
849 _mix_pool_bytes(&entropy, sizeof(entropy)); in random_pm_notification()
869 unsigned long entropy[BLAKE2S_BLOCK_SIZE / sizeof(long)]; in random_init_early() local
877 for (i = 0, arch_bits = sizeof(entropy) * 8; i < ARRAY_SIZE(entropy);) { in random_init_early()
878 longs = arch_get_random_seed_longs(entropy, ARRAY_SIZE(entropy) - i); in random_init_early()
880 _mix_pool_bytes(entropy, sizeof(*entropy) * longs); in random_init_early()
884 longs = arch_get_random_longs(entropy, ARRAY_SIZE(entropy) - i); in random_init_early()
886 _mix_pool_bytes(entropy, sizeof(*entropy) * longs); in random_init_early()
890 arch_bits -= sizeof(*entropy) * 8; in random_init_early()
910 unsigned long entropy = random_get_entropy(); in random_init() local
914 _mix_pool_bytes(&entropy, sizeof(entropy)); in random_init()
930 WARN(!entropy, "Missing cycle counter and fallback timer; RNG " in random_init()
944 unsigned long entropy = random_get_entropy(); in add_device_randomness() local
948 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_device_randomness()
959 void add_hwgenerator_randomness(const void *buf, size_t len, size_t entropy, bool sleep_after) in add_hwgenerator_randomness() argument
962 credit_init_bits(entropy); in add_hwgenerator_randomness()
968 if (sleep_after && !kthread_should_stop() && (crng_ready() || !entropy)) in add_hwgenerator_randomness()
1116 unsigned long entropy = random_get_entropy(); in add_interrupt_randomness() local
1121 fast_mix(fast_pool->pool, entropy, in add_interrupt_randomness()
1154 unsigned long entropy = random_get_entropy(), now = jiffies, flags; in add_timer_randomness() local
1163 fast_mix(this_cpu_ptr(&irq_randomness)->pool, entropy, num); in add_timer_randomness()
1166 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_timer_randomness()
1260 unsigned long entropy; member
1280 unsigned long entropy = random_get_entropy(); in entropy_timer() local
1282 mix_pool_bytes(&entropy, sizeof(entropy)); in entropy_timer()
1302 stack->entropy = random_get_entropy(); in try_to_generate_entropy()
1303 if (stack->entropy != last) in try_to_generate_entropy()
1305 last = stack->entropy; in try_to_generate_entropy()
1353 mix_pool_bytes(&stack->entropy, sizeof(stack->entropy)); in try_to_generate_entropy()
1355 stack->entropy = random_get_entropy(); in try_to_generate_entropy()
1357 mix_pool_bytes(&stack->entropy, sizeof(stack->entropy)); in try_to_generate_entropy()