Searched refs:alloc_index (Results 1 – 1 of 1) sorted by relevance
97 uint32_t alloc_index; member99 } scratch = {.buf = {0}, .alloc_index = 0};123 if (requested_size > (sizeof(scratch.buf) - scratch.alloc_index)) { in tfm_crypto_alloc_scratch()128 *buf = (void *)&scratch.buf[scratch.alloc_index]; in tfm_crypto_alloc_scratch()131 scratch.alloc_index += requested_size; in tfm_crypto_alloc_scratch()139 (void)memset(scratch.buf, 0, scratch.alloc_index); in tfm_crypto_clear_scratch()140 scratch.alloc_index = 0; in tfm_crypto_clear_scratch()