Home
last modified time | relevance | path

Searched refs:BITS_PER_WORD (Results 1 – 1 of 1) sorted by relevance

/trusted-firmware-a/services/std_svc/trng/
A Dtrng_entropy_pool.c30 #define BITS_PER_WORD (sizeof(entropy[0]) * 8) macro
31 #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()
124 if (lshift != BITS_PER_WORD) { in trng_pack_entropy()
129 const uint64_t mask = ~0ULL >> (BITS_PER_WORD - (nbits % BITS_PER_WORD)); in trng_pack_entropy()

Completed in 3 milliseconds