Searched refs:rngp (Results 1 – 3 of 3) sorted by relevance
120 static uint16_t rng_pool_get(struct rng_pool *rngp, uint8_t *buf, uint16_t len) in rng_pool_get() argument122 uint32_t last = rngp->last; in rng_pool_get()123 uint32_t mask = rngp->mask; in rng_pool_get()130 first = rngp->first_alloc; in rng_pool_get()137 other_read_in_progress = (rngp->first_read ^ first); in rng_pool_get()148 rngp->first_alloc = (first + len) & mask; in rng_pool_get()152 *dst++ = rngp->buffer[first]; in rng_pool_get()163 rngp->first_read = rngp->first_alloc; in rng_pool_get()169 if (available <= rngp->threshold) { in rng_pool_get()176 static int rng_pool_put(struct rng_pool *rngp, uint8_t byte) in rng_pool_put() argument[all …]
137 static uint16_t rng_pool_get(struct rng_pool *rngp, uint8_t *buf, uint16_t len) in rng_pool_get() argument139 uint32_t last = rngp->last; in rng_pool_get()140 uint32_t mask = rngp->mask; in rng_pool_get()147 first = rngp->first_alloc; in rng_pool_get()154 other_read_in_progress = (rngp->first_read ^ first); in rng_pool_get()165 rngp->first_alloc = (first + len) & mask; in rng_pool_get()169 *dst++ = rngp->buffer[first]; in rng_pool_get()180 rngp->first_read = rngp->first_alloc; in rng_pool_get()186 if (available <= rngp->threshold) { in rng_pool_get()193 static int rng_pool_put(struct rng_pool *rngp, uint8_t byte) in rng_pool_put() argument[all …]
446 static uint16_t rng_pool_get(struct rng_pool *rngp, uint8_t *buf, in rng_pool_get() argument449 uint32_t last = rngp->last; in rng_pool_get()450 uint32_t mask = rngp->mask; in rng_pool_get()457 first = rngp->first_alloc; in rng_pool_get()464 other_read_in_progress = (rngp->first_read ^ first); in rng_pool_get()475 rngp->first_alloc = (first + len) & mask; in rng_pool_get()479 *dst++ = rngp->buffer[first]; in rng_pool_get()490 rngp->first_read = rngp->first_alloc; in rng_pool_get()496 if (available <= rngp->threshold) { in rng_pool_get()512 static int rng_pool_put(struct rng_pool *rngp, uint8_t byte) in rng_pool_put() argument[all …]