Searched refs:mutex_id (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v1/src/ |
D | mutex.c | 51 osMutexId mutex_id = 0; in ZTEST() local 55 status = osMutexDelete(mutex_id); in ZTEST() 59 mutex_id = osMutexCreate(osMutex(Mutex_1)); in ZTEST() 60 zassert_true(mutex_id != NULL, "Mutex1 creation failed"); in ZTEST() 63 status = osMutexRelease(mutex_id); in ZTEST() 66 status = osMutexWait(mutex_id, 0); in ZTEST() 70 status = osMutexWait(mutex_id, 0); in ZTEST() 73 status = osMutexRelease(mutex_id); in ZTEST() 77 status = osMutexRelease(mutex_id); in ZTEST() 81 status = osMutexRelease(mutex_id); in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v2/src/ |
D | mutex.c | 55 osMutexId_t mutex_id = 0; in ZTEST() local 61 status = osMutexDelete(mutex_id); in ZTEST() 65 mutex_id = osMutexNew(&mutex_attr); in ZTEST() 66 zassert_true(mutex_id != NULL, "Mutex1 creation failed"); in ZTEST() 68 name = osMutexGetName(mutex_id); in ZTEST() 72 status = osMutexRelease(mutex_id); in ZTEST() 78 id = osMutexGetOwner(mutex_id); in ZTEST() 81 status = osMutexAcquire(mutex_id, 0); in ZTEST() 84 id = osMutexGetOwner(mutex_id); in ZTEST() 88 status = osMutexAcquire(mutex_id, 0); in ZTEST() [all …]
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/ |
D | mutex.c | 64 osStatus_t osMutexAcquire(osMutexId_t mutex_id, uint32_t timeout) in osMutexAcquire() argument 66 struct cv2_mutex *mutex = (struct cv2_mutex *) mutex_id; in osMutexAcquire() 69 if (mutex_id == NULL) { in osMutexAcquire() 98 osStatus_t osMutexRelease(osMutexId_t mutex_id) in osMutexRelease() argument 100 struct cv2_mutex *mutex = (struct cv2_mutex *) mutex_id; in osMutexRelease() 102 if (mutex_id == NULL) { in osMutexRelease() 120 osStatus_t osMutexDelete(osMutexId_t mutex_id) in osMutexDelete() argument 122 struct cv2_mutex *mutex = (struct cv2_mutex *)mutex_id; in osMutexDelete() 124 if (mutex_id == NULL) { in osMutexDelete() 142 osThreadId_t osMutexGetOwner(osMutexId_t mutex_id) in osMutexGetOwner() argument [all …]
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/ |
D | cmsis_mutex.c | 43 osStatus osMutexWait(osMutexId mutex_id, uint32_t timeout) in osMutexWait() argument 45 struct k_mutex *mutex = (struct k_mutex *) mutex_id; in osMutexWait() 48 if (mutex_id == NULL) { in osMutexWait() 76 osStatus osMutexRelease(osMutexId mutex_id) in osMutexRelease() argument 78 struct k_mutex *mutex = (struct k_mutex *) mutex_id; in osMutexRelease() 80 if (mutex_id == NULL) { in osMutexRelease() 98 osStatus osMutexDelete(osMutexId mutex_id) in osMutexDelete() argument 100 struct k_mutex *mutex = (struct k_mutex *) mutex_id; in osMutexDelete() 102 if (mutex_id == NULL) { in osMutexDelete()
|
/Zephyr-latest/include/zephyr/portability/ |
D | cmsis_os2.h | 576 const char *osMutexGetName(osMutexId_t mutex_id); 582 osStatus_t osMutexAcquire(osMutexId_t mutex_id, uint32_t timeout); 587 osStatus_t osMutexRelease(osMutexId_t mutex_id); 592 osThreadId_t osMutexGetOwner(osMutexId_t mutex_id); 597 osStatus_t osMutexDelete(osMutexId_t mutex_id);
|
D | cmsis_os.h | 469 osStatus osMutexWait (osMutexId mutex_id, uint32_t millisec); 475 osStatus osMutexRelease (osMutexId mutex_id); 481 osStatus osMutexDelete (osMutexId mutex_id);
|
/Zephyr-latest/subsys/tracing/ctf/ |
D | ctf_top.h | 360 static inline void ctf_top_mutex_init(uint32_t mutex_id, int32_t ret) in ctf_top_mutex_init() argument 362 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_MUTEX_INIT), mutex_id, ret); in ctf_top_mutex_init() 365 static inline void ctf_top_mutex_lock_enter(uint32_t mutex_id, uint32_t timeout) in ctf_top_mutex_lock_enter() argument 367 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_MUTEX_LOCK_ENTER), mutex_id, in ctf_top_mutex_lock_enter() 371 static inline void ctf_top_mutex_lock_blocking(uint32_t mutex_id, in ctf_top_mutex_lock_blocking() argument 374 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_MUTEX_LOCK_BLOCKING), mutex_id, in ctf_top_mutex_lock_blocking() 378 static inline void ctf_top_mutex_lock_exit(uint32_t mutex_id, uint32_t timeout, in ctf_top_mutex_lock_exit() argument 381 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_MUTEX_LOCK_EXIT), mutex_id, in ctf_top_mutex_lock_exit() 385 static inline void ctf_top_mutex_unlock_enter(uint32_t mutex_id) in ctf_top_mutex_unlock_enter() argument 387 CTF_EVENT(CTF_LITERAL(uint8_t, CTF_EVENT_MUTEX_UNLOCK_ENTER), mutex_id); in ctf_top_mutex_unlock_enter() [all …]
|
/Zephyr-latest/doc/services/portability/ |
D | cmsis_rtos_v2.rst | 41 ``osErrorResource`` (mutex specified by parameter mutex_id
|