Home
last modified time | relevance | path

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

/Linux-v5.4/arch/s390/crypto/
Darch_random.c49 static unsigned int arch_rng_buf_idx; variable
61 arch_rng_buf_idx -= nbytes; in s390_arch_random_generate()
62 if (arch_rng_buf_idx < ARCH_RNG_BUF_SIZE) { in s390_arch_random_generate()
63 memcpy(buf, arch_rng_buf + arch_rng_buf_idx, nbytes); in s390_arch_random_generate()
81 if (arch_rng_buf_idx > ARCH_RNG_BUF_SIZE) { in arch_rng_refill_buffer()
93 arch_rng_buf_idx = ARCH_RNG_BUF_SIZE; in arch_rng_refill_buffer()
95 delay += (ARCH_REFILL_TICKS * arch_rng_buf_idx) / ARCH_RNG_BUF_SIZE; in arch_rng_refill_buffer()