Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/crypto/
A Drng_fortuna.c179 unsigned int next_begin; in push_ring_buffer() local
185 next_begin = (ring_buffer.begin + 1) % ARRAY_SIZE(ring_buffer.elem); in push_ring_buffer()
186 if (next_begin == atomic_load_uint(&ring_buffer.end)) in push_ring_buffer()
189 ring_buffer.elem[next_begin].snum = snum; in push_ring_buffer()
190 ring_buffer.elem[next_begin].pnum = pnum; in push_ring_buffer()
191 ring_buffer.elem[next_begin].dlen = dl; in push_ring_buffer()
192 memcpy(ring_buffer.elem[next_begin].data, data, dl); in push_ring_buffer()
194 atomic_store_uint(&ring_buffer.begin, next_begin); in push_ring_buffer()

Completed in 3 milliseconds