Searched refs:cur_buf_idx (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/crypto/caam/
H A Dcaamrng.c74 unsigned int cur_buf_idx; member in struct:caam_rng_ctx
163 next_buf_idx = ctx->cur_buf_idx + max; caam_read()
165 __func__, ctx->current_buf, ctx->cur_buf_idx); caam_read()
169 memcpy(data, bd->buf + ctx->cur_buf_idx, max); caam_read()
170 ctx->cur_buf_idx = next_buf_idx; caam_read()
175 copied_idx = RN_BUF_SIZE - ctx->cur_buf_idx; caam_read()
176 memcpy(data, bd->buf + ctx->cur_buf_idx, copied_idx); caam_read()
177 ctx->cur_buf_idx = 0; caam_read()
286 ctx->cur_buf_idx = 0; caam_init_rng()

Completed in 110 milliseconds