Home
last modified time | relevance | path

Searched defs:mutex (Results 1 – 25 of 88) sorted by relevance

1234

/Zephyr-latest/lib/libc/common/source/thrd/
Dmtx.c13 int mtx_init(mtx_t *mutex, int type) in mtx_init()
52 void mtx_destroy(mtx_t *mutex) in mtx_destroy()
57 int mtx_lock(mtx_t *mutex) in mtx_lock()
67 int mtx_timedlock(mtx_t *restrict mutex, const struct timespec *restrict time_point) in mtx_timedlock()
79 int mtx_trylock(mtx_t *mutex) in mtx_trylock()
91 int mtx_unlock(mtx_t *mutex) in mtx_unlock()
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dmutex.c26 struct cv2_mutex *mutex; in osMutexNew() local
66 struct cv2_mutex *mutex = (struct cv2_mutex *) mutex_id; in osMutexAcquire() local
100 struct cv2_mutex *mutex = (struct cv2_mutex *) mutex_id; in osMutexRelease() local
122 struct cv2_mutex *mutex = (struct cv2_mutex *)mutex_id; in osMutexDelete() local
144 struct cv2_mutex *mutex = (struct cv2_mutex *)mutex_id; in osMutexGetOwner() local
160 struct cv2_mutex *mutex = (struct cv2_mutex *)mutex_id; in osMutexGetName() local
/Zephyr-latest/lib/os/
Dmutex.c12 static struct k_mutex *get_k_mutex(struct sys_mutex *mutex) in get_k_mutex()
33 int z_impl_z_sys_mutex_kernel_lock(struct sys_mutex *mutex, k_timeout_t timeout) in z_impl_z_sys_mutex_kernel_lock()
44 static inline int z_vrfy_z_sys_mutex_kernel_lock(struct sys_mutex *mutex, in z_vrfy_z_sys_mutex_kernel_lock()
55 int z_impl_z_sys_mutex_kernel_unlock(struct sys_mutex *mutex) in z_impl_z_sys_mutex_kernel_unlock()
66 static inline int z_vrfy_z_sys_mutex_kernel_unlock(struct sys_mutex *mutex) in z_vrfy_z_sys_mutex_kernel_unlock()
/Zephyr-latest/kernel/
Dmutex.c55 int z_impl_k_mutex_init(struct k_mutex *mutex) in z_impl_k_mutex_init()
74 static inline int z_vrfy_k_mutex_init(struct k_mutex *mutex) in z_vrfy_k_mutex_init()
91 static bool adjust_owner_prio(struct k_mutex *mutex, int32_t new_prio) in adjust_owner_prio()
105 int z_impl_k_mutex_lock(struct k_mutex *mutex, k_timeout_t timeout) in z_impl_k_mutex_lock()
202 static inline int z_vrfy_k_mutex_lock(struct k_mutex *mutex, in z_vrfy_k_mutex_lock()
211 int z_impl_k_mutex_unlock(struct k_mutex *mutex) in z_impl_k_mutex_unlock()
287 static inline int z_vrfy_k_mutex_unlock(struct k_mutex *mutex) in z_vrfy_k_mutex_unlock()
Dcondvar.c109 int z_impl_k_condvar_wait(struct k_condvar *condvar, struct k_mutex *mutex, in z_impl_k_condvar_wait()
128 int z_vrfy_k_condvar_wait(struct k_condvar *condvar, struct k_mutex *mutex, in z_vrfy_k_condvar_wait()
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/
Dcmsis_mutex.c19 struct k_mutex *mutex; in osMutexCreate() local
45 struct k_mutex *mutex = (struct k_mutex *) mutex_id; in osMutexWait() local
78 struct k_mutex *mutex = (struct k_mutex *) mutex_id; in osMutexRelease() local
100 struct k_mutex *mutex = (struct k_mutex *) mutex_id; in osMutexDelete() local
/Zephyr-latest/include/zephyr/sys/
Dmutex.h68 static inline void sys_mutex_init(struct sys_mutex *mutex) in sys_mutex_init()
102 static inline int sys_mutex_lock(struct sys_mutex *mutex, k_timeout_t timeout) in sys_mutex_lock()
125 static inline int sys_mutex_unlock(struct sys_mutex *mutex) in sys_mutex_unlock()
/Zephyr-latest/tests/posix/common/src/
Dmutex.c15 static pthread_mutex_t mutex; variable
88 ZTEST(mutex, test_mutex_prioceiling_stubs) in ZTEST() argument
107 ZTEST(mutex, test_mutex_normal) in ZTEST() argument
119 ZTEST(mutex, test_mutex_recursive) in ZTEST() argument
129 ZTEST(mutex, test_mutex_resource_exhausted) in ZTEST() argument
153 ZTEST(mutex, test_mutex_resource_leak) in ZTEST() argument
192 ZTEST(mutex, test_mutex_timedlock) in ZTEST() argument
/Zephyr-latest/samples/arch/smp/pktqueue/src/
Dpktqueue.c11 struct k_mutex *mutex) in phdr_desc_enqueue()
31 struct k_mutex *mutex) in phdr_desc_dequeue()
/Zephyr-latest/modules/lvgl/
Dlvgl_zephyr_osal.c49 lv_result_t lv_mutex_init(lv_mutex_t *mutex) in lv_mutex_init()
55 lv_result_t lv_mutex_lock(lv_mutex_t *mutex) in lv_mutex_lock()
68 lv_result_t lv_mutex_lock_isr(lv_mutex_t *mutex) in lv_mutex_lock_isr()
81 lv_result_t lv_mutex_unlock(lv_mutex_t *mutex) in lv_mutex_unlock()
94 lv_result_t lv_mutex_delete(lv_mutex_t *mutex) in lv_mutex_delete()
/Zephyr-latest/lib/libc/arcmwdt/
Dthreading.c56 void _mwmutex_lock(_lock_t mutex) in _mwmutex_lock()
62 void _mwmutex_unlock(_lock_t mutex) in _mwmutex_unlock()
/Zephyr-latest/lib/libc/armstdc/src/
Dthreading_weak.c22 int __weak z_impl_k_mutex_init(struct k_mutex *mutex) in z_impl_k_mutex_init()
27 int __weak z_impl_k_mutex_lock(struct k_mutex *mutex, k_timeout_t timeout) in z_impl_k_mutex_lock()
32 int __weak z_impl_k_mutex_unlock(struct k_mutex *mutex) in z_impl_k_mutex_unlock()
/Zephyr-latest/tests/kernel/mutex/sys_mutex/
DCMakeLists.txt5 project(mutex) project
/Zephyr-latest/drivers/display/
Ddisplay_sdl_bottom.c17 bool use_accelerator, void **window, void **renderer, void **mutex, in sdl_display_init_bottom()
106 const uint16_t y, void *renderer, void *mutex, void *texture, in sdl_display_write_bottom()
139 void *mutex, void *texture, void *read_texture) in sdl_display_read_bottom()
182 void sdl_display_cleanup_bottom(void **window, void **renderer, void **mutex, void **texture, in sdl_display_cleanup_bottom()
/Zephyr-latest/drivers/misc/ethos_u/
Dethos_u.c29 struct k_mutex *mutex; in ethosu_mutex_create() local
42 int ethosu_mutex_lock(void *mutex) in ethosu_mutex_lock()
55 int ethosu_mutex_unlock(void *mutex) in ethosu_mutex_unlock()
/Zephyr-latest/tests/kernel/obj_tracking/src/
Dmain.c35 struct k_mutex mutex; in ZTEST() local
/Zephyr-latest/subsys/tracing/test/
Dtracing_string_format_test.c237 void sys_trace_k_condvar_wait_enter(struct k_condvar *condvar, struct k_mutex *mutex, in sys_trace_k_condvar_wait_enter()
243 void sys_trace_k_condvar_wait_exit(struct k_condvar *condvar, struct k_mutex *mutex, in sys_trace_k_condvar_wait_exit()
279 void sys_trace_k_mutex_init(struct k_mutex *mutex, int ret) in sys_trace_k_mutex_init()
284 void sys_trace_k_mutex_lock_enter(struct k_mutex *mutex, k_timeout_t timeout) in sys_trace_k_mutex_lock_enter()
289 void sys_trace_k_mutex_lock_exit(struct k_mutex *mutex, k_timeout_t timeout, int ret) in sys_trace_k_mutex_lock_exit()
295 void sys_trace_k_mutex_lock_blocking(struct k_mutex *mutex, k_timeout_t timeout) in sys_trace_k_mutex_lock_blocking()
300 void sys_trace_k_mutex_unlock_enter(struct k_mutex *mutex) in sys_trace_k_mutex_unlock_enter()
306 void sys_trace_k_mutex_unlock_exit(struct k_mutex *mutex, int ret) in sys_trace_k_mutex_unlock_exit()
/Zephyr-latest/drivers/sensor/espressif/esp32_temp/
Desp32_temp.c24 struct k_mutex mutex; member
/Zephyr-latest/drivers/flash/
Dflash_gd32.c21 struct k_sem mutex; member
/Zephyr-latest/include/zephyr/fs/
Dlittlefs.h55 struct k_mutex mutex; member
/Zephyr-latest/drivers/i2c/
Di2c_b91.c27 struct k_sem mutex; member
/Zephyr-latest/drivers/wifi/nxp/
Dnxp_wifi_drv.h72 struct k_mutex mutex; member
/Zephyr-latest/lib/posix/options/
Dmutex.c419 int pthread_mutex_getprioceiling(const pthread_mutex_t *mutex, int *prioceiling) in pthread_mutex_getprioceiling()
427 int pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int prioceiling, int *old_ceiling) in pthread_mutex_setprioceiling()
/Zephyr-latest/include/zephyr/sys/internal/
Dkobject_internal.h34 struct k_mutex *mutex; member
/Zephyr-latest/modules/hal_infineon/abstraction-rtos/source/COMPONENT_ZEPHYR/
Dcyabs_rtos_zephyr.c331 cy_rslt_t cy_rtos_init_mutex2(cy_mutex_t *mutex, bool recursive) in cy_rtos_init_mutex2()
350 cy_rslt_t cy_rtos_get_mutex(cy_mutex_t *mutex, cy_time_t timeout_ms) in cy_rtos_get_mutex()
373 cy_rslt_t cy_rtos_set_mutex(cy_mutex_t *mutex) in cy_rtos_set_mutex()
392 cy_rslt_t cy_rtos_deinit_mutex(cy_mutex_t *mutex) in cy_rtos_deinit_mutex()

1234