Searched refs:entropy_count (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/include/trace/events/ |
D | random.h | 64 TP_PROTO(const char *pool_name, int bits, int entropy_count, 67 TP_ARGS(pool_name, bits, entropy_count, IP), 72 __field( int, entropy_count ) 79 __entry->entropy_count = entropy_count; 85 __entry->entropy_count, (void *)__entry->IP) 224 TP_PROTO(const char *pool_name, int nbytes, int entropy_count, 227 TP_ARGS(pool_name, nbytes, entropy_count, IP), 232 __field( int, entropy_count ) 239 __entry->entropy_count = entropy_count; 244 __entry->pool_name, __entry->nbytes, __entry->entropy_count, [all …]
|
/Linux-v5.10/drivers/char/ |
D | random.c | 372 #define ENTROPY_BITS(r) ((r)->entropy_count >> ENTROPY_SHIFT) 502 int entropy_count; member 663 int entropy_count, orig, has_initialized = 0; in credit_entropy_bits() local 671 entropy_count = orig = READ_ONCE(r->entropy_count); in credit_entropy_bits() 674 entropy_count += nfrac; in credit_entropy_bits() 704 ((pool_size - entropy_count)*anfrac*3) >> s; in credit_entropy_bits() 706 entropy_count += add; in credit_entropy_bits() 708 } while (unlikely(entropy_count < pool_size-2 && pnfrac)); in credit_entropy_bits() 711 if (WARN_ON(entropy_count < 0)) { in credit_entropy_bits() 713 r->name, entropy_count); in credit_entropy_bits() [all …]
|
/Linux-v5.10/include/uapi/linux/ |
D | random.h | 42 int entropy_count; member
|
/Linux-v5.10/tools/testing/selftests/wireguard/qemu/ |
D | init.c | 61 int entropy_count; in seed_rng() member 65 .entropy_count = sizeof(entropy.buffer) * 8, in seed_rng()
|