Lines Matching +full:fifo +full:- +full:enable
4 * SPDX-License-Identifier: Apache-2.0
17 * Select the correct Crypto ACC FIFO memory base address.
20 * ACC RNGOUT FIFO memory base address, like it does for register address definitions.
23 * appropriate FIFO memory base address.
35 #define S2_FIFO_LEVEL (CRYPTOACC_RNGCTRL->FIFOLEVEL)
36 #define S2_CTRL (CRYPTOACC_RNGCTRL->RNGCTRL)
39 #define S2_FIFO_LEVEL (CRYPTOACC->NDRNG_FIFOLEVEL)
40 #define S2_CTRL (CRYPTOACC->NDRNG_CONTROL)
55 *data++ = TRNG0->FIFO; in entropy_gecko_trng_read()
56 len -= 4; in entropy_gecko_trng_read()
60 * and FIFO data is available. in entropy_gecko_trng_read()
62 tmp = TRNG0->FIFO; in entropy_gecko_trng_read()
81 available = TRNG0->FIFOLEVEL * 4; in entropy_gecko_trng_get_entropy()
86 return -EINVAL; in entropy_gecko_trng_get_entropy()
92 length -= count; in entropy_gecko_trng_get_entropy()
108 size_t available = TRNG0->FIFOLEVEL * 4; in entropy_gecko_trng_get_entropy_isr()
114 return -ENODATA; in entropy_gecko_trng_get_entropy_isr()
121 /* Allowed to busy-wait */ in entropy_gecko_trng_get_entropy_isr()
134 /* Enable the TRNG0 clock. */ in entropy_gecko_trng_init()
138 /* Enable TRNG0. */ in entropy_gecko_trng_init()
139 TRNG0->CONTROL = TRNG_CONTROL_ENABLE; in entropy_gecko_trng_init()
141 /* Enable the CRYPTO ACC clock. */ in entropy_gecko_trng_init()
144 /* Enable TRNG */ in entropy_gecko_trng_init()