| /hal_nxp-latest/mcux/middleware/mcux-secure-subsystem/port/kw45_k4w1/ |
| D | sss_init.c | 191 void mcux_mbedtls_mutex_init(mbedtls_threading_mutex_t *mutex) in mcux_mbedtls_mutex_init() argument 193 mutex->mutex = xSemaphoreCreateMutex(); in mcux_mbedtls_mutex_init() 195 if (mutex->mutex != NULL) in mcux_mbedtls_mutex_init() 197 mutex->is_valid = 1; in mcux_mbedtls_mutex_init() 201 mutex->is_valid = 0; in mcux_mbedtls_mutex_init() 209 void mcux_mbedtls_mutex_free(mbedtls_threading_mutex_t *mutex) in mcux_mbedtls_mutex_free() argument 211 if (mutex->is_valid == 1) in mcux_mbedtls_mutex_free() 213 vSemaphoreDelete(mutex->mutex); in mcux_mbedtls_mutex_free() 214 mutex->is_valid = 0; in mcux_mbedtls_mutex_free() 224 int mcux_mbedtls_mutex_lock(mbedtls_threading_mutex_t *mutex) in mcux_mbedtls_mutex_lock() argument [all …]
|
| /hal_nxp-latest/mcux/mcux-sdk/components/srtm/port/ |
| D | srtm_mutex_freertos.c | 41 void SRTM_Mutex_Destroy(srtm_mutex_t mutex) in SRTM_Mutex_Destroy() argument 43 assert(mutex != NULL); in SRTM_Mutex_Destroy() 45 vSemaphoreDelete(mutex); in SRTM_Mutex_Destroy() 48 srtm_status_t SRTM_Mutex_Lock(srtm_mutex_t mutex) in SRTM_Mutex_Lock() argument 50 assert(mutex != NULL); in SRTM_Mutex_Lock() 52 if (xSemaphoreTake(mutex, portMAX_DELAY) == pdFALSE) in SRTM_Mutex_Lock() 60 srtm_status_t SRTM_Mutex_Unlock(srtm_mutex_t mutex) in SRTM_Mutex_Unlock() argument 62 assert(mutex != NULL); in SRTM_Mutex_Unlock() 64 if (xSemaphoreGive(mutex) == pdFALSE) in SRTM_Mutex_Unlock()
|
| /hal_nxp-latest/mcux/mcux-sdk/utilities/debug_console/debug_console/ |
| D | fsl_debug_console.c | 122 #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 …]
|
| /hal_nxp-latest/mcux/mcux-sdk/utilities/debug_console/ |
| D | fsl_debug_console.c | 122 #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 …]
|
| /hal_nxp-latest/mcux/mcux-sdk/components/srtm/srtm/ |
| D | srtm_peercore.c | 38 srtm_mutex_t mutex = SRTM_Mutex_Create(&core->mutexStatic); in SRTM_PeerCore_Create() local 40 srtm_mutex_t mutex = SRTM_Mutex_Create(); in SRTM_PeerCore_Create() local 43 assert((core != NULL) && (mutex != NULL)); in SRTM_PeerCore_Create() 52 core->mutex = mutex; in SRTM_PeerCore_Create() 83 SRTM_Mutex_Destroy(core->mutex); in SRTM_PeerCore_Destroy() 200 (void)SRTM_Mutex_Lock(core->mutex); in SRTM_PeerCore_AddChannel() 202 (void)SRTM_Mutex_Unlock(core->mutex); in SRTM_PeerCore_AddChannel() 221 (void)SRTM_Mutex_Lock(core->mutex); in SRTM_PeerCore_RemoveChannel() 223 (void)SRTM_Mutex_Unlock(core->mutex); in SRTM_PeerCore_RemoveChannel()
|
| D | srtm_dispatcher.c | 106 (void)SRTM_Mutex_Lock(disp->mutex); /* Protect waitingReqs */ in SRTM_Dispatcher_DequeueMessage() 114 (void)SRTM_Mutex_Unlock(disp->mutex); in SRTM_Dispatcher_DequeueMessage() 204 srtm_mutex_t mutex = SRTM_Mutex_Create(&disp->mutexStatic); in SRTM_Dispatcher_Create() local 210 srtm_mutex_t mutex = SRTM_Mutex_Create(); in SRTM_Dispatcher_Create() local 219 …assert((disp != NULL) && (mutex != NULL) && (startSig != NULL) && (stopSig != NULL) && (queueSig !… in SRTM_Dispatcher_Create() 228 disp->mutex = mutex; in SRTM_Dispatcher_Create() 288 SRTM_Mutex_Destroy(disp->mutex); in SRTM_Dispatcher_Destroy() 399 (void)SRTM_Mutex_Lock(disp->mutex); in SRTM_Dispatcher_AddPeerCore() 401 (void)SRTM_Mutex_Unlock(disp->mutex); in SRTM_Dispatcher_AddPeerCore() 425 (void)SRTM_Mutex_Lock(disp->mutex); in SRTM_Dispatcher_RemovePeerCore() [all …]
|
| D | srtm_mutex.h | 52 void SRTM_Mutex_Destroy(srtm_mutex_t mutex); 60 srtm_status_t SRTM_Mutex_Lock(srtm_mutex_t mutex); 68 srtm_status_t SRTM_Mutex_Unlock(srtm_mutex_t mutex);
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/i2c/ |
| D | fsl_i2c_freertos.c | 53 handle->mutex = xSemaphoreCreateMutexStatic(&handle->mutexBuffer); in I2C_RTOS_Init() 55 handle->mutex = xSemaphoreCreateMutex(); in I2C_RTOS_Init() 57 if (handle->mutex == NULL) in I2C_RTOS_Init() 68 vSemaphoreDelete(handle->mutex); in I2C_RTOS_Init() 92 vSemaphoreDelete(handle->mutex); in I2C_RTOS_Deinit() 111 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in I2C_RTOS_Transfer() 119 (void)xSemaphoreGive(handle->mutex); in I2C_RTOS_Transfer() 127 (void)xSemaphoreGive(handle->mutex); in I2C_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/ecspi/ |
| D | fsl_ecspi_freertos.c | 53 handle->mutex = xSemaphoreCreateMutexStatic(&handle->mutexBuffer); in ECSPI_RTOS_Init() 55 handle->mutex = xSemaphoreCreateMutex(); in ECSPI_RTOS_Init() 57 if (handle->mutex == NULL) in ECSPI_RTOS_Init() 69 vSemaphoreDelete(handle->mutex); in ECSPI_RTOS_Init() 92 vSemaphoreDelete(handle->mutex); in ECSPI_RTOS_Deinit() 111 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in ECSPI_RTOS_Transfer() 119 (void)xSemaphoreGive(handle->mutex); in ECSPI_RTOS_Transfer() 130 (void)xSemaphoreGive(handle->mutex); in ECSPI_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/ii2c/ |
| D | fsl_i2c_freertos.c | 53 handle->mutex = xSemaphoreCreateMutexStatic(&handle->mutexBuffer); in I2C_RTOS_Init() 55 handle->mutex = xSemaphoreCreateMutex(); in I2C_RTOS_Init() 57 if (handle->mutex == NULL) in I2C_RTOS_Init() 68 vSemaphoreDelete(handle->mutex); in I2C_RTOS_Init() 92 vSemaphoreDelete(handle->mutex); in I2C_RTOS_Deinit() 111 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in I2C_RTOS_Transfer() 119 (void)xSemaphoreGive(handle->mutex); in I2C_RTOS_Transfer() 127 (void)xSemaphoreGive(handle->mutex); in I2C_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/dspi/ |
| D | fsl_dspi_freertos.c | 54 handle->mutex = xSemaphoreCreateMutexStatic(&handle->mutexBuffer); in DSPI_RTOS_Init() 56 handle->mutex = xSemaphoreCreateMutex(); in DSPI_RTOS_Init() 58 if (handle->mutex == NULL) in DSPI_RTOS_Init() 69 vSemaphoreDelete(handle->mutex); in DSPI_RTOS_Init() 92 vSemaphoreDelete(handle->mutex); in DSPI_RTOS_Deinit() 111 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in DSPI_RTOS_Transfer() 119 (void)xSemaphoreGive(handle->mutex); in DSPI_RTOS_Transfer() 130 (void)xSemaphoreGive(handle->mutex); in DSPI_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/spi/ |
| D | fsl_spi_freertos.c | 53 handle->mutex = xSemaphoreCreateMutexStatic(&handle->mutexBuffer); in SPI_RTOS_Init() 55 handle->mutex = xSemaphoreCreateMutex(); in SPI_RTOS_Init() 57 if (handle->mutex == NULL) in SPI_RTOS_Init() 69 vSemaphoreDelete(handle->mutex); in SPI_RTOS_Init() 92 vSemaphoreDelete(handle->mutex); in SPI_RTOS_Deinit() 111 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in SPI_RTOS_Transfer() 119 (void)xSemaphoreGive(handle->mutex); in SPI_RTOS_Transfer() 133 (void)xSemaphoreGive(handle->mutex); in SPI_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/flexcomm/i2c/ |
| D | fsl_i2c_freertos.c | 53 handle->mutex = xSemaphoreCreateMutex(); in I2C_RTOS_Init() 54 if (handle->mutex == NULL) in I2C_RTOS_Init() 62 vSemaphoreDelete(handle->mutex); in I2C_RTOS_Init() 86 vSemaphoreDelete(handle->mutex); in I2C_RTOS_Deinit() 105 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in I2C_RTOS_Transfer() 113 (void)xSemaphoreGive(handle->mutex); in I2C_RTOS_Transfer() 121 (void)xSemaphoreGive(handle->mutex); in I2C_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/lpflexcomm/ |
| D | fsl_lpi2c_freertos.c | 52 handle->mutex = xSemaphoreCreateMutex(); in LPI2C_RTOS_Init() 53 if (handle->mutex == NULL) in LPI2C_RTOS_Init() 61 vSemaphoreDelete(handle->mutex); in LPI2C_RTOS_Init() 84 vSemaphoreDelete(handle->mutex); in LPI2C_RTOS_Deinit() 102 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in LPI2C_RTOS_Transfer() 110 (void)xSemaphoreGive(handle->mutex); in LPI2C_RTOS_Transfer() 118 (void)xSemaphoreGive(handle->mutex); in LPI2C_RTOS_Transfer()
|
| D | fsl_lpspi_freertos.c | 52 handle->mutex = xSemaphoreCreateMutex(); in LPSPI_RTOS_Init() 53 if (handle->mutex == NULL) in LPSPI_RTOS_Init() 61 vSemaphoreDelete(handle->mutex); in LPSPI_RTOS_Init() 84 vSemaphoreDelete(handle->mutex); in LPSPI_RTOS_Deinit() 103 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in LPSPI_RTOS_Transfer() 112 (void)xSemaphoreGive(handle->mutex); in LPSPI_RTOS_Transfer() 126 (void)xSemaphoreGive(handle->mutex); in LPSPI_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/lpflexcomm/lpi2c/ |
| D | fsl_lpi2c_freertos.c | 52 handle->mutex = xSemaphoreCreateMutex(); in LPI2C_RTOS_Init() 53 if (handle->mutex == NULL) in LPI2C_RTOS_Init() 61 vSemaphoreDelete(handle->mutex); in LPI2C_RTOS_Init() 84 vSemaphoreDelete(handle->mutex); in LPI2C_RTOS_Deinit() 102 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in LPI2C_RTOS_Transfer() 110 (void)xSemaphoreGive(handle->mutex); in LPI2C_RTOS_Transfer() 118 (void)xSemaphoreGive(handle->mutex); in LPI2C_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/lpi2c/ |
| D | fsl_lpi2c_freertos.c | 53 handle->mutex = xSemaphoreCreateMutex(); in LPI2C_RTOS_Init() 54 if (handle->mutex == NULL) in LPI2C_RTOS_Init() 62 vSemaphoreDelete(handle->mutex); in LPI2C_RTOS_Init() 86 vSemaphoreDelete(handle->mutex); in LPI2C_RTOS_Deinit() 105 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in LPI2C_RTOS_Transfer() 113 (void)xSemaphoreGive(handle->mutex); in LPI2C_RTOS_Transfer() 121 (void)xSemaphoreGive(handle->mutex); in LPI2C_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/lpspi/ |
| D | fsl_lpspi_freertos.c | 53 handle->mutex = xSemaphoreCreateMutex(); in LPSPI_RTOS_Init() 54 if (handle->mutex == NULL) in LPSPI_RTOS_Init() 62 vSemaphoreDelete(handle->mutex); in LPSPI_RTOS_Init() 85 vSemaphoreDelete(handle->mutex); in LPSPI_RTOS_Deinit() 104 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in LPSPI_RTOS_Transfer() 112 (void)xSemaphoreGive(handle->mutex); in LPSPI_RTOS_Transfer() 123 (void)xSemaphoreGive(handle->mutex); in LPSPI_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/lpflexcomm/lpspi/ |
| D | fsl_lpspi_freertos.c | 52 handle->mutex = xSemaphoreCreateMutex(); in LPSPI_RTOS_Init() 53 if (handle->mutex == NULL) in LPSPI_RTOS_Init() 61 vSemaphoreDelete(handle->mutex); in LPSPI_RTOS_Init() 84 vSemaphoreDelete(handle->mutex); in LPSPI_RTOS_Deinit() 103 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in LPSPI_RTOS_Transfer() 112 (void)xSemaphoreGive(handle->mutex); in LPSPI_RTOS_Transfer() 126 (void)xSemaphoreGive(handle->mutex); in LPSPI_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/drivers/flexcomm/spi/ |
| D | fsl_spi_freertos.c | 55 handle->mutex = xSemaphoreCreateMutex(); in SPI_RTOS_Init() 56 if (handle->mutex == NULL) in SPI_RTOS_Init() 64 vSemaphoreDelete(handle->mutex); in SPI_RTOS_Init() 87 vSemaphoreDelete(handle->mutex); in SPI_RTOS_Deinit() 106 if (xSemaphoreTake(handle->mutex, portMAX_DELAY) != pdTRUE) in SPI_RTOS_Transfer() 115 (void)xSemaphoreGive(handle->mutex); in SPI_RTOS_Transfer() 129 (void)xSemaphoreGive(handle->mutex); in SPI_RTOS_Transfer()
|
| /hal_nxp-latest/mcux/mcux-sdk/CMSIS/RTOS2/RTX/Source/ |
| D | rtx_lib.c | 721 typedef void *mutex; typedef 729 int _mutex_initialize(mutex *m); 730 int _mutex_initialize(mutex *m) { in _mutex_initialize() 745 void _mutex_acquire(mutex *m); 746 void _mutex_acquire(mutex *m) { in _mutex_acquire() 754 void _mutex_release(mutex *m); 755 void _mutex_release(mutex *m) { in _mutex_release() 763 void _mutex_free(mutex *m); 764 void _mutex_free(mutex *m) { in _mutex_free()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/osa/ |
| D | fsl_os_abstraction_free_rtos.c | 689 QueueHandle_t mutex; in OSA_MutexCreate() member 694 …xMutexHandle.mutex = xSemaphoreCreateRecursiveMutexStatic((StaticQueue_t *)(void *)((uint8_t *)mut… in OSA_MutexCreate() 696 xMutexHandle.mutex = xSemaphoreCreateRecursiveMutex(); in OSA_MutexCreate() 698 if (NULL != xMutexHandle.mutex) in OSA_MutexCreate() 720 QueueHandle_t mutex = (QueueHandle_t)(void *)(uint32_t *)(*(uint32_t *)mutexHandle); in OSA_MutexLock() local 732 if (((BaseType_t)0) == (BaseType_t)xSemaphoreTakeRecursive(mutex, timeoutTicks)) in OSA_MutexLock() 751 QueueHandle_t mutex = (QueueHandle_t)(void *)(uint32_t *)(*(uint32_t *)mutexHandle); in OSA_MutexUnlock() local 753 if (((BaseType_t)0) == (BaseType_t)xSemaphoreGiveRecursive(mutex)) in OSA_MutexUnlock() 773 QueueHandle_t mutex = (QueueHandle_t)(void *)(uint32_t *)(*(uint32_t *)mutexHandle); in OSA_MutexDestroy() local 775 vSemaphoreDelete(mutex); in OSA_MutexDestroy()
|
| /hal_nxp-latest/mcux/mcux-sdk/components/log/ |
| D | fsl_component_log.c | 86 SemaphoreHandle_t mutex; member 383 s_logContext.mutex = xSemaphoreCreateRecursiveMutex(); in LOG_Init() 384 if (NULL == s_logContext.mutex) in LOG_Init() 401 if (NULL != s_logContext.mutex) in LOG_Deinit() 403 vSemaphoreDelete(s_logContext.mutex); in LOG_Deinit() 404 s_logContext.mutex = NULL; in LOG_Deinit() 537 if (((BaseType_t)0) == (BaseType_t)xSemaphoreTakeRecursive(s_logContext.mutex, portMAX_DELAY)) in LOG_Printf() 574 if (((BaseType_t)0) == (BaseType_t)xSemaphoreGiveRecursive(s_logContext.mutex)) in LOG_Printf()
|
| /hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-usb/output/source/device/class/ |
| D | usb_device_cdc_acm.c | 783 cdcAcmHandle->bulkIn.mutex = (osa_mutex_handle_t)&cdcAcmHandle->bulkIn.mutexBuffer[0]; in USB_DeviceCdcAcmInit() 784 if (KOSA_StatusSuccess != OSA_MutexCreate((cdcAcmHandle->bulkIn.mutex))) in USB_DeviceCdcAcmInit() 790 cdcAcmHandle->bulkOut.mutex = (osa_mutex_handle_t)&cdcAcmHandle->bulkOut.mutexBuffer[0]; in USB_DeviceCdcAcmInit() 791 if (KOSA_StatusSuccess != OSA_MutexCreate((cdcAcmHandle->bulkOut.mutex))) in USB_DeviceCdcAcmInit() 797 cdcAcmHandle->interruptIn.mutex = (osa_mutex_handle_t)&cdcAcmHandle->interruptIn.mutexBuffer[0]; in USB_DeviceCdcAcmInit() 798 if (KOSA_StatusSuccess != OSA_MutexCreate((cdcAcmHandle->interruptIn.mutex))) in USB_DeviceCdcAcmInit() 828 if (KOSA_StatusSuccess != OSA_MutexDestroy((cdcAcmHandle->bulkIn.mutex))) in USB_DeviceCdcAcmDeinit() 834 if (KOSA_StatusSuccess != OSA_MutexDestroy((cdcAcmHandle->bulkOut.mutex))) in USB_DeviceCdcAcmDeinit() 840 if (KOSA_StatusSuccess != OSA_MutexDestroy((cdcAcmHandle->interruptIn.mutex))) in USB_DeviceCdcAcmDeinit()
|
| /hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-usb/host/ |
| D | usb_host_ohci.h | 368 #define USB_HostOhciLock() (void)OSA_MutexLock(usbHostState->mutex, USB_OSA_WAIT_TIMEOUT) 370 #define USB_HostOhciUnlock() (void)OSA_MutexUnlock(usbHostState->mutex) 464 osa_mutex_handle_t mutex; /*!< OHCI layer mutex*/ member
|