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()
931 WARN(!entropy, "Missing cycle counter and fallback timer; RNG " in random_init()
945 unsigned long entropy = random_get_entropy(); in add_device_randomness() local
949 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_device_randomness()
960 void add_hwgenerator_randomness(const void *buf, size_t len, size_t entropy, bool sleep_after) in add_hwgenerator_randomness() argument
963 credit_init_bits(entropy); in add_hwgenerator_randomness()
969 if (sleep_after && !kthread_should_stop() && (crng_ready() || !entropy)) in add_hwgenerator_randomness()
1117 unsigned long entropy = random_get_entropy(); in add_interrupt_randomness() local
1122 fast_mix(fast_pool->pool, entropy, in add_interrupt_randomness()
1155 unsigned long entropy = random_get_entropy(), now = jiffies, flags; in add_timer_randomness() local
1164 fast_mix(this_cpu_ptr(&irq_randomness)->pool, entropy, num); in add_timer_randomness()
1167 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_timer_randomness()
1261 unsigned long entropy; member
1281 unsigned long entropy = random_get_entropy(); in entropy_timer() local
1283 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()
1351 mix_pool_bytes(&stack->entropy, sizeof(stack->entropy)); in try_to_generate_entropy()
1353 stack->entropy = random_get_entropy(); in try_to_generate_entropy()
1355 mix_pool_bytes(&stack->entropy, sizeof(stack->entropy)); in try_to_generate_entropy()