Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 10 of 10) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/TestAL/pal/linux/
Dtest_pal_semphr.c22 pthread_mutex_t mutex; member
79 if (pthread_mutex_init(&pLocal->mutex, NULL)) { in Test_PalBinarySemaphoreCreate()
97 if (pthread_mutex_destroy(&pLocal->mutex)) in Test_PalBinarySemaphoreDestroy()
112 pthread_mutex_lock(&pLocal->mutex); in Test_PalBinarySemaphoreTake()
116 pthread_cond_wait(&pLocal->cvar, &pLocal->mutex); in Test_PalBinarySemaphoreTake()
125 &pLocal->mutex, (const struct timespec *)&ts)) { in Test_PalBinarySemaphoreTake()
126 pthread_mutex_unlock(&pLocal->mutex); in Test_PalBinarySemaphoreTake()
134 pthread_mutex_unlock(&pLocal->mutex); in Test_PalBinarySemaphoreTake()
143 pthread_mutex_lock(&pLocal->mutex); in Test_PalBinarySemaphoreGive()
146 pthread_mutex_unlock(&pLocal->mutex); in Test_PalBinarySemaphoreGive()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nxp/common/Native_Driver/utilities/debug_console/
Dfsl_debug_console.c122 #define DEBUG_CONSOLE_CREATE_MUTEX_SEMAPHORE(mutex, stack) ((mutex) = xSemaphoreCreateMutexStatic(s… argument
124 #define DEBUG_CONSOLE_CREATE_MUTEX_SEMAPHORE(mutex) ((mutex) = xSemaphoreCreateMutex()) argument
126 #define DEBUG_CONSOLE_DESTROY_MUTEX_SEMAPHORE(mutex) \ argument
129 if(NULL != (mutex)) \
131 vSemaphoreDelete(mutex); \
132 (mutex) = NULL; \
136 #define DEBUG_CONSOLE_GIVE_MUTEX_SEMAPHORE(mutex) \ argument
140 (void)xSemaphoreGive(mutex); \
144 #define DEBUG_CONSOLE_TAKE_MUTEX_SEMAPHORE_BLOCKING(mutex) \ argument
148 (void)xSemaphoreTake(mutex, portMAX_DELAY); \
[all …]
/trusted-firmware-m-3.4.0/interface/src/
Dtfm_ns_interface.c.example12 * In this example, NS OS calls mutex in tfm_ns_interface_dispatch() to
21 /* Include NS RTOS specific mutex declarations */
22 #include "mutex.h"
31 /* NS RTOS specific mutex creation/initialization */
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/accelerator/
Drsa_alt.h85 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex); /*!< Thread-safety mutex. */
Drsa_alt.c987 mbedtls_mutex_init( &ctx->MBEDTLS_PRIVATE(mutex) ); in mbedtls_rsa_init()
1235 if( ( ret = mbedtls_mutex_lock( &ctx->MBEDTLS_PRIVATE(mutex) ) ) != 0 ) in mbedtls_rsa_public()
1262 if( mbedtls_mutex_unlock( &ctx->mutex ) != 0 ) in mbedtls_rsa_public()
1333 if( ( ret = mbedtls_mutex_lock( &ctx->MBEDTLS_PRIVATE(mutex) ) ) != 0 ) in mbedtls_rsa_private()
1373 if( mbedtls_mutex_unlock( &ctx->MBEDTLS_PRIVATE(mutex) ) != 0 ) in mbedtls_rsa_private()
2736 mbedtls_mutex_free( &ctx->MBEDTLS_PRIVATE(mutex) ); in mbedtls_rsa_free()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/mbedtls/
Drsa_alt.h63 mbedtls_threading_mutex_t MBEDTLS_PRIVATE(mutex); /*!< Thread-safety mutex */
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rnd_dma/
Dllf_rnd_fetrng.c55 #define MUTEX_LOCK_AND_RETURN_UPON_ERROR(mutex) argument
56 #define MUTEX_UNLOCK(mutex) argument
Dllf_rnd_trng90b.c59 #define MUTEX_LOCK_AND_RETURN_UPON_ERROR(mutex) argument
60 #define MUTEX_UNLOCK(mutex) argument
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Drsa_alt.c306 mbedtls_mutex_init( &ctx->MBEDTLS_PRIVATE(mutex) ); in mbedtls_rsa_init()
1619 if ( (ret = mbedtls_mutex_lock(&ctx->MBEDTLS_PRIVATE(mutex)) ) != 0) in mbedtls_rsa_public()
1660 if( mbedtls_mutex_unlock( &ctx->MBEDTLS_PRIVATE(mutex) ) != 0 ) in mbedtls_rsa_public()
1705 if( ( ret = mbedtls_mutex_lock( &ctx->MBEDTLS_PRIVATE(mutex) ) ) != 0 ) in mbedtls_rsa_private()
1743 if( mbedtls_mutex_unlock( &ctx->MBEDTLS_PRIVATE(mutex) ) != 0 ) in mbedtls_rsa_private()
2771 mbedtls_mutex_free( &ctx->MBEDTLS_PRIVATE(mutex) ); in mbedtls_rsa_free()
/trusted-firmware-m-3.4.0/docs/integration_guide/
Dindex.rst72 Armv8-M TrustZone based platforms. In this example, NS OS calls mutex in