Lines Matching refs:entropy
486 type entropy[CHACHA_BLOCK_SIZE * 3 / (2 * sizeof(type))]; \
515 if (batch->position >= ARRAY_SIZE(batch->entropy) || \
517 _get_random_bytes(batch->entropy, sizeof(batch->entropy)); \
522 ret = batch->entropy[batch->position]; \
523 batch->entropy[batch->position] = 0; \
812 unsigned long flags, entropy = random_get_entropy(); in random_pm_notification() local
823 _mix_pool_bytes(&entropy, sizeof(entropy)); in random_pm_notification()
843 unsigned long entropy[BLAKE2S_BLOCK_SIZE / sizeof(long)]; in random_init_early() local
851 for (i = 0, arch_bits = sizeof(entropy) * 8; i < ARRAY_SIZE(entropy);) { in random_init_early()
852 longs = arch_get_random_seed_longs(entropy, ARRAY_SIZE(entropy) - i); in random_init_early()
854 _mix_pool_bytes(entropy, sizeof(*entropy) * longs); in random_init_early()
858 longs = arch_get_random_longs(entropy, ARRAY_SIZE(entropy) - i); in random_init_early()
860 _mix_pool_bytes(entropy, sizeof(*entropy) * longs); in random_init_early()
864 arch_bits -= sizeof(*entropy) * 8; in random_init_early()
884 unsigned long entropy = random_get_entropy(); in random_init() local
888 _mix_pool_bytes(&entropy, sizeof(entropy)); in random_init()
905 WARN(!entropy, "Missing cycle counter and fallback timer; RNG " in random_init()
919 unsigned long entropy = random_get_entropy(); in add_device_randomness() local
923 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_device_randomness()
934 void add_hwgenerator_randomness(const void *buf, size_t len, size_t entropy, bool sleep_after) in add_hwgenerator_randomness() argument
937 credit_init_bits(entropy); in add_hwgenerator_randomness()
943 if (sleep_after && !kthread_should_stop() && (crng_ready() || !entropy)) in add_hwgenerator_randomness()
1091 unsigned long entropy = random_get_entropy(); in add_interrupt_randomness() local
1096 fast_mix(fast_pool->pool, entropy, in add_interrupt_randomness()
1129 unsigned long entropy = random_get_entropy(), now = jiffies, flags; in add_timer_randomness() local
1138 fast_mix(this_cpu_ptr(&irq_randomness)->pool, entropy, num); in add_timer_randomness()
1141 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_timer_randomness()
1235 unsigned long entropy; member
1255 unsigned long entropy = random_get_entropy(); in entropy_timer() local
1257 mix_pool_bytes(&entropy, sizeof(entropy)); in entropy_timer()
1276 stack->entropy = random_get_entropy(); in try_to_generate_entropy()
1277 if (stack->entropy != last) in try_to_generate_entropy()
1279 last = stack->entropy; in try_to_generate_entropy()
1325 mix_pool_bytes(&stack->entropy, sizeof(stack->entropy)); in try_to_generate_entropy()
1327 stack->entropy = random_get_entropy(); in try_to_generate_entropy()
1329 mix_pool_bytes(&stack->entropy, sizeof(stack->entropy)); in try_to_generate_entropy()