Home
last modified time | relevance | path

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

/hal_silabs-3.5.0/gecko/se_manager/src/
Dsli_se_manager_osal_cmsis_rtos2.h116 sl_status_t se_manager_osal_init_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_init_mutex() argument
118 if (mutex == NULL) { in se_manager_osal_init_mutex()
124 memset(&mutex->mutex_attr, 0, sizeof(mutex->mutex_attr)); in se_manager_osal_init_mutex()
125 mutex->mutex_attr.cb_mem = &mutex->static_sem_object; in se_manager_osal_init_mutex()
126 mutex->mutex_attr.cb_size = sizeof(mutex->static_sem_object); in se_manager_osal_init_mutex()
127 mutex->mutex_ID = osMutexNew(&mutex->mutex_attr); in se_manager_osal_init_mutex()
129 mutex->mutex_ID = osMutexNew(NULL); in se_manager_osal_init_mutex()
132 return (mutex->mutex_ID == NULL ? SL_STATUS_FAIL : SL_STATUS_OK); in se_manager_osal_init_mutex()
137 sl_status_t se_manager_osal_free_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_free_mutex() argument
139 if (mutex == NULL) { in se_manager_osal_free_mutex()
[all …]
Dsli_se_manager_osal_zephyr.h52 sl_status_t se_manager_osal_init_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_init_mutex() argument
56 err = k_mutex_init(mutex); in se_manager_osal_init_mutex()
62 sl_status_t se_manager_osal_free_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_free_mutex() argument
69 sl_status_t se_manager_osal_take_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_take_mutex() argument
78 err = k_mutex_lock(mutex, K_FOREVER); in se_manager_osal_take_mutex()
84 sl_status_t se_manager_osal_take_mutex_non_blocking(se_manager_osal_mutex_t *mutex) in se_manager_osal_take_mutex_non_blocking() argument
93 err = k_mutex_lock(mutex, K_NO_WAIT); in se_manager_osal_take_mutex_non_blocking()
99 sl_status_t se_manager_osal_give_mutex(se_manager_osal_mutex_t *mutex) in se_manager_osal_give_mutex() argument
101 int err = k_mutex_unlock(mutex); in se_manager_osal_give_mutex()
Dsli_se_manager_osal.h69 __STATIC_INLINE sl_status_t se_manager_osal_init_mutex(se_manager_osal_mutex_t *mutex);
78 __STATIC_INLINE sl_status_t se_manager_osal_free_mutex(se_manager_osal_mutex_t *mutex);
87 __STATIC_INLINE sl_status_t se_manager_osal_take_mutex(se_manager_osal_mutex_t *mutex);
96 __STATIC_INLINE sl_status_t se_manager_osal_take_mutex_non_blocking(se_manager_osal_mutex_t *mutex);
105 __STATIC_INLINE sl_status_t se_manager_osal_give_mutex(se_manager_osal_mutex_t *mutex);
/hal_silabs-3.5.0/gecko/util/se_manager/src/
Dsli_se_manager_osal.h69 __STATIC_INLINE sl_status_t se_manager_osal_init_mutex(se_manager_osal_mutex_t *mutex);
78 __STATIC_INLINE sl_status_t se_manager_osal_free_mutex(se_manager_osal_mutex_t *mutex);
87 __STATIC_INLINE sl_status_t se_manager_osal_take_mutex(se_manager_osal_mutex_t *mutex);
96 __STATIC_INLINE sl_status_t se_manager_osal_take_mutex_non_blocking(se_manager_osal_mutex_t *mutex);
105 __STATIC_INLINE sl_status_t se_manager_osal_give_mutex(se_manager_osal_mutex_t *mutex);