Searched refs:alloc_index (Results 1 – 1 of 1) sorted by relevance
105 uint32_t alloc_index; member107 } scratch = {.buf = {0}, .alloc_index = 0};126 if (requested_size > (sizeof(scratch.buf) - scratch.alloc_index)) { in tfm_crypto_alloc_scratch()131 *buf = (void *)&scratch.buf[scratch.alloc_index]; in tfm_crypto_alloc_scratch()134 scratch.alloc_index += requested_size; in tfm_crypto_alloc_scratch()142 (void)memset(scratch.buf, 0, scratch.alloc_index); in tfm_crypto_clear_scratch()143 scratch.alloc_index = 0; in tfm_crypto_clear_scratch()