Searched refs:BITS_PER_WORD (Results 1 – 1 of 1) sorted by relevance
30 #define BITS_PER_WORD (sizeof(entropy[0]) * 8) macro31 #define BITS_IN_POOL (WORDS_IN_POOL * BITS_PER_WORD)32 #define ENTROPY_MIN_WORD (entropy_bit_index / BITS_PER_WORD)34 #define _ENTROPY_FREE_WORD (ENTROPY_FREE_BIT / BITS_PER_WORD)51 entropy_bit_size += BITS_PER_WORD; in trng_fill_entropy()77 const unsigned int rshift = entropy_bit_index % BITS_PER_WORD; in trng_pack_entropy()78 const unsigned int lshift = BITS_PER_WORD - rshift; in trng_pack_entropy()79 const int to_fill = ((nbits + BITS_PER_WORD - 1) / BITS_PER_WORD); in trng_pack_entropy()158 if (bits_to_discard < (BITS_PER_WORD - rshift)) { in trng_pack_entropy()160 (~0ULL << ((bits_to_discard+rshift) % BITS_PER_WORD)); in trng_pack_entropy()[all …]