Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/drivers/crypto/caam/
A Dcaam_rng.c141 cache_operation(TEE_CACHEINVALIDATE, rng->data, rng->size); in rng_data_done()
178 rng->jobctx.context = rng; in prepare_gen_desc()
193 cache_operation(TEE_CACHEFLUSH, rng->data, rng->size); in do_rng_start()
198 ret = caam_jr_enqueue(&rng->jobctx, &rng->job_id); in do_rng_start()
306 rng_privdata->dataidx, rng->size - rng->rdindex, in do_rng_read()
310 if ((rng->size - rng->rdindex) <= remlen) { in do_rng_read()
316 memcpy(rngbuf, &rng->data[rng->rdindex], in do_rng_read()
317 rng->size - rng->rdindex); in do_rng_read()
319 remlen -= rng->size - rng->rdindex; in do_rng_read()
320 rngbuf += rng->size - rng->rdindex; in do_rng_read()
[all …]
/optee_os-3.20.0/core/arch/arm/plat-k3/drivers/
A Dsa2ul_rng.c65 static vaddr_t rng; variable
78 io_write32(rng + RNG_ALARMMASK, 0x0); in sa2ul_rng_read128()
79 io_write32(rng + RNG_ALARMSTOP, 0x0); in sa2ul_rng_read128()
91 *word0 = io_read32(rng + RNG_OUTPUT_0); in sa2ul_rng_read128()
92 *word1 = io_read32(rng + RNG_OUTPUT_1); in sa2ul_rng_read128()
93 *word2 = io_read32(rng + RNG_OUTPUT_2); in sa2ul_rng_read128()
94 *word3 = io_read32(rng + RNG_OUTPUT_3); in sa2ul_rng_read128()
96 io_write32(rng + RNG_INTACK, RNG_READY); in sa2ul_rng_read128()
135 io_write32(rng + RNG_CONFIG, val); in sa2ul_rng_init()
138 io_write32(rng + RNG_FRODETUNE, 0x0); in sa2ul_rng_init()
[all …]
/optee_os-3.20.0/core/drivers/
A Ddra7_rng.c74 static vaddr_t rng; variable
86 io_write32(rng + RNG_ALARMMASK, 0x0); in dra7_rng_read64()
87 io_write32(rng + RNG_ALARMSTOP, 0x0); in dra7_rng_read64()
99 *low_word = io_read32(rng + RNG_OUTPUT_L); in dra7_rng_read64()
100 *high_word = io_read32(rng + RNG_OUTPUT_H); in dra7_rng_read64()
102 io_write32(rng + RNG_INTACK, RNG_READY); in dra7_rng_read64()
158 io_write32(rng + RNG_CONFIG, val); in dra7_rng_init()
161 io_write32(rng + RNG_FRODETUNE, 0x0); in dra7_rng_init()
164 io_write32(rng + RNG_FROENABLE, 0xffffff); in dra7_rng_init()
178 io_write32(rng + RNG_ALARMCNT, val); in dra7_rng_init()
[all …]
A Dimx_rngb.c79 rng->error = io_read32(rng->base.va + RNG_ESR); in wait_for_irq()
88 static void irq_clear(struct imx_rng *rng) in irq_clear() argument
90 io_setbits32(rng->base.va + RNG_CR, in irq_clear()
92 io_setbits32(rng->base.va + RNG_CMD, in irq_clear()
98 io_clrbits32(rng->base.va + RNG_CR, in irq_unmask()
102 static void rng_seed(struct imx_rng *rng) in rng_seed() argument
106 irq_clear(rng); in rng_seed()
108 irq_unmask(rng); in rng_seed()
111 wait_for_irq(rng); in rng_seed()
112 irq_clear(rng); in rng_seed()
[all …]
A Dhi16xx_rng.c44 vaddr_t rng = (vaddr_t)phys_to_virt(RNG_BASE, MEM_AREA_IO_SEC, in hi16xx_rng_init() local
53 io_write32(rng + RNG_SEED, time.seconds * 1000 + time.millis); in hi16xx_rng_init()
59 io_write32(rng + RNG_CTRL, RNG_EN | RNG_RING_EN | RNG_SEED_SEL); in hi16xx_rng_init()
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Drng.c15 sss_se05x_rng_context_t rng = { }; in do_rng_read() local
17 sss_se05x_rng_context_init(&rng, se050_session); in do_rng_read()
18 status = sss_se05x_rng_get_random(&rng, buf, blen); in do_rng_read()
19 sss_se05x_rng_context_free(&rng); in do_rng_read()
A Dsub.mk12 srcs-$(CFG_NXP_SE05X_RNG_DRV) += rng.c
/optee_os-3.20.0/core/arch/arm/dts/
A Dstm32mp151.dtsi1336 rng1: rng@54003000 {
1337 compatible = "st,stm32-rng";

Completed in 8 milliseconds