Lines Matching refs:input_pool

515 static struct entropy_store input_pool = {  variable
518 .lock = __SPIN_LOCK_UNLOCKED(input_pool.lock),
722 if (r == &input_pool) { in credit_entropy_bits()
821 _extract_entropy(&input_pool, &crng->state[4], sizeof(__u32) * 12, 0); in crng_initialize_primary()
996 crng_reseed(crng, crng == &primary_crng ? &input_pool : NULL); in _extract_crng()
1123 spin_lock_irqsave(&input_pool.lock, flags); in add_device_randomness()
1124 _mix_pool_bytes(&input_pool, buf, size); in add_device_randomness()
1125 _mix_pool_bytes(&input_pool, &time, sizeof(time)); in add_device_randomness()
1126 spin_unlock_irqrestore(&input_pool.lock, flags); in add_device_randomness()
1155 r = &input_pool; in add_timer_randomness()
1203 trace_add_input_randomness(ENTROPY_BITS(&input_pool)); in add_input_randomness()
1283 r = &input_pool; in add_interrupt_randomness()
1305 trace_add_disk_randomness(disk_devt(disk), ENTROPY_BITS(&input_pool)); in add_disk_randomness()
1571 credit_entropy_bits(&input_pool, 1); in entropy_timer()
1595 mix_pool_bytes(&input_pool, &stack.now, sizeof(stack.now)); in try_to_generate_entropy()
1602 mix_pool_bytes(&input_pool, &stack.now, sizeof(stack.now)); in try_to_generate_entropy()
1777 init_std_data(&input_pool); in rand_initialize()
1812 trace_urandom_read(8 * nbytes, 0, ENTROPY_BITS(&input_pool)); in urandom_read_nowarn()
1856 if (ENTROPY_BITS(&input_pool) < random_write_wakeup_bits) in random_poll()
1896 ret = write_pool(&input_pool, buffer, count); in random_write()
1912 ent_count = ENTROPY_BITS(&input_pool); in random_ioctl()
1921 return credit_entropy_bits_safe(&input_pool, ent_count); in random_ioctl()
1931 retval = write_pool(&input_pool, (const char __user *)p, in random_ioctl()
1935 return credit_entropy_bits_safe(&input_pool, ent_count); in random_ioctl()
1944 input_pool.entropy_count = 0; in random_ioctl()
1951 crng_reseed(&primary_crng, &input_pool); in random_ioctl()
2094 .data = &input_pool.entropy_count,
2275 struct entropy_store *poolp = &input_pool; in add_hwgenerator_randomness()
2287 ENTROPY_BITS(&input_pool) <= random_write_wakeup_bits); in add_hwgenerator_randomness()