Lines Matching refs:entropy

516 	type entropy[CHACHA_BLOCK_SIZE * 3 / (2 * sizeof(type))];		\
545 if (batch->position >= ARRAY_SIZE(batch->entropy) || \
547 _get_random_bytes(batch->entropy, sizeof(batch->entropy)); \
552 ret = batch->entropy[batch->position]; \
553 batch->entropy[batch->position] = 0; \
824 unsigned long entropy; in random_init() local
832 i < BLAKE2S_BLOCK_SIZE; i += sizeof(entropy)) { in random_init()
833 if (!arch_get_random_seed_long_early(&entropy) && in random_init()
834 !arch_get_random_long_early(&entropy)) { in random_init()
835 entropy = random_get_entropy(); in random_init()
836 arch_bytes -= sizeof(entropy); in random_init()
838 _mix_pool_bytes(&entropy, sizeof(entropy)); in random_init()
863 unsigned long entropy = random_get_entropy(); in add_device_randomness() local
867 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_device_randomness()
878 void add_hwgenerator_randomness(const void *buf, size_t len, size_t entropy) in add_hwgenerator_randomness() argument
881 credit_init_bits(entropy); in add_hwgenerator_randomness()
1002 unsigned long entropy = random_get_entropy(); in add_interrupt_randomness() local
1007 fast_mix(fast_pool->pool, entropy, in add_interrupt_randomness()
1040 unsigned long entropy = random_get_entropy(), now = jiffies, flags; in add_timer_randomness() local
1049 fast_mix(this_cpu_ptr(&irq_randomness)->pool, entropy, num); in add_timer_randomness()
1052 _mix_pool_bytes(&entropy, sizeof(entropy)); in add_timer_randomness()
1170 unsigned long entropy; in try_to_generate_entropy() member
1174 stack.entropy = random_get_entropy(); in try_to_generate_entropy()
1177 if (stack.entropy == random_get_entropy()) in try_to_generate_entropy()
1184 mix_pool_bytes(&stack.entropy, sizeof(stack.entropy)); in try_to_generate_entropy()
1186 stack.entropy = random_get_entropy(); in try_to_generate_entropy()
1191 mix_pool_bytes(&stack.entropy, sizeof(stack.entropy)); in try_to_generate_entropy()