Lines Matching +full:address +full:- +full:length
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.
22 * Solution: Check which register base address is used for the Crypto ACC peripheral and select an
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()
62 tmp = TRNG0->FIFO; in entropy_gecko_trng_read()
72 uint16_t length) in entropy_gecko_trng_get_entropy() argument
79 while (length) { in entropy_gecko_trng_get_entropy()
81 available = TRNG0->FIFOLEVEL * 4; in entropy_gecko_trng_get_entropy()
86 return -EINVAL; in entropy_gecko_trng_get_entropy()
89 count = SL_MIN(length, available); 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()
139 TRNG0->CONTROL = TRNG_CONTROL_ENABLE; in entropy_gecko_trng_init()