Lines Matching refs:nbits
23 static uintptr_t trng_rnd32(uint32_t nbits, void *handle) in trng_rnd32() argument
28 if (nbits == 0U || nbits > TRNG_RND32_ENTROPY_MAXBITS) { in trng_rnd32()
32 if (!trng_pack_entropy(nbits, &ent[0])) { in trng_rnd32()
36 if ((nbits % 32U) != 0U) { in trng_rnd32()
37 mask >>= 32U - (nbits % 32U); in trng_rnd32()
40 switch ((nbits - 1U) / 32U) { in trng_rnd32()
59 static uintptr_t trng_rnd64(uint32_t nbits, void *handle) in trng_rnd64() argument
64 if (nbits == 0U || nbits > TRNG_RND64_ENTROPY_MAXBITS) { in trng_rnd64()
68 if (!trng_pack_entropy(nbits, &ent[0])) { in trng_rnd64()
73 if ((nbits % 64U) != 0U) { in trng_rnd64()
74 mask >>= 64U - (nbits % 64U); in trng_rnd64()
77 switch ((nbits - 1U) / 64U) { in trng_rnd64()