Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/crypto/
Dcrypto_mtls_shim.c324 int ctx_idx; in mtls_session_setup() local
352 ctx_idx = mtls_get_unused_session_index(); in mtls_session_setup()
353 if (ctx_idx < 0) { in mtls_session_setup()
361 aes_ctx = &mtls_sessions[ctx_idx].mtls_aes; in mtls_session_setup()
375 mtls_sessions[ctx_idx].in_use = false; in mtls_session_setup()
380 aes_ctx = &mtls_sessions[ctx_idx].mtls_aes; in mtls_session_setup()
394 mtls_sessions[ctx_idx].in_use = false; in mtls_session_setup()
399 ccm_ctx = &mtls_sessions[ctx_idx].mtls_ccm; in mtls_session_setup()
405 mtls_sessions[ctx_idx].in_use = false; in mtls_session_setup()
417 gcm_ctx = &mtls_sessions[ctx_idx].mtls_gcm; in mtls_session_setup()
[all …]
Dcrypto_npcx_sha.c138 int ctx_idx; in npcx_hash_session_setup() local
152 ctx_idx = npcx_get_unused_session_index(); in npcx_hash_session_setup()
153 if (ctx_idx < 0) { in npcx_hash_session_setup()
158 npcx_sessions[ctx_idx].algo = algo; in npcx_hash_session_setup()
160 ctx->drv_sessn_state = &npcx_sessions[ctx_idx]; in npcx_hash_session_setup()
164 npcx_ctx = &npcx_sessions[ctx_idx].npcx_sha_ctx; in npcx_hash_session_setup()
Dcrypto_intel_sha.c287 int ctx_idx; in intel_sha_device_set_hash_type() local
290 ctx_idx = intel_sha_get_unused_session_idx(); in intel_sha_device_set_hash_type()
292 if (ctx_idx < 0) { in intel_sha_device_set_hash_type()
296 ctx->drv_sessn_state = &sha_sessions[ctx_idx]; in intel_sha_device_set_hash_type()
302 sha_sessions[ctx_idx].state.part.state = SHA_FIRST; in intel_sha_device_set_hash_type()
303 sha_sessions[ctx_idx].state.part.hrsm = SHA_HRSM_DISABLE; in intel_sha_device_set_hash_type()
304 sha_sessions[ctx_idx].algo = algo; in intel_sha_device_set_hash_type()
Dcrypto_stm32.c333 int ctx_idx, ret; in crypto_stm32_session_setup() local
374 ctx_idx = crypto_stm32_get_unused_session_index(dev); in crypto_stm32_session_setup()
375 if (ctx_idx < 0) { in crypto_stm32_session_setup()
379 session = &crypto_stm32_sessions[ctx_idx]; in crypto_stm32_session_setup()
/Zephyr-latest/tests/bluetooth/controller/ctrl_tx_buffer_alloc/src/
Dmain.c67 for (int ctx_idx = 0; ctx_idx < CONFIG_BT_CTLR_LLCP_CONN; ctx_idx++) { in ZTEST() local
68 ctxs[ctx_idx] = llcp_create_local_procedure(PROC_VERSION_EXCHANGE); in ZTEST()