/Zephyr-latest/subsys/portability/cmsis_rtos_v1/ |
D | cmsis_mutex.c | 11 K_MEM_SLAB_DEFINE(cmsis_mutex_slab, sizeof(struct k_mutex), 19 struct k_mutex *mutex; in osMutexCreate() 30 (void)memset(mutex, 0, sizeof(struct k_mutex)); in osMutexCreate() 45 struct k_mutex *mutex = (struct k_mutex *) mutex_id; in osMutexWait() 78 struct k_mutex *mutex = (struct k_mutex *) mutex_id; in osMutexRelease() 100 struct k_mutex *mutex = (struct k_mutex *) mutex_id; in osMutexDelete()
|
/Zephyr-latest/kernel/ |
D | mutex.c | 55 int z_impl_k_mutex_init(struct k_mutex *mutex) in z_impl_k_mutex_init() 68 SYS_PORT_TRACING_OBJ_INIT(k_mutex, mutex, 0); 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() 113 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_mutex, lock, mutex, timeout); in z_impl_k_mutex_lock() 132 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mutex, lock, mutex, timeout, 0); in z_impl_k_mutex_lock() 140 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mutex, lock, mutex, timeout, -EBUSY); in z_impl_k_mutex_lock() 145 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_mutex, lock, mutex, timeout); in z_impl_k_mutex_lock() 164 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mutex, lock, mutex, timeout, 0); in z_impl_k_mutex_lock() [all …]
|
/Zephyr-latest/tests/kernel/mutex/mutex_api/src/ |
D | test_mutex_apis.c | 20 static struct k_mutex tmutex; 40 zassert_false(k_mutex_lock((struct k_mutex *)p1, K_FOREVER) == 0, in tThread_entry_lock_forever() 47 zassert_true(k_mutex_lock((struct k_mutex *)p1, K_NO_WAIT) != 0); in tThread_entry_lock_no_wait() 53 zassert_true(k_mutex_lock((struct k_mutex *)p1, in tThread_entry_lock_timeout_fail() 60 zassert_true(k_mutex_lock((struct k_mutex *)p1, in tThread_entry_lock_timeout_pass() 63 k_mutex_unlock((struct k_mutex *)p1); in tThread_entry_lock_timeout_pass() 66 static void tmutex_test_lock(struct k_mutex *pmutex, in tmutex_test_lock() 81 static void tmutex_test_lock_timeout(struct k_mutex *pmutex, in tmutex_test_lock_timeout() 100 static void tmutex_test_lock_unlock(struct k_mutex *pmutex) in tmutex_test_lock_unlock() 119 zassert_true(k_mutex_lock((struct k_mutex *)p1, K_FOREVER) == 0, in tThread_T1_priority_inheritance() [all …]
|
/Zephyr-latest/lib/libc/picolibc/ |
D | locks.c | 35 *lock = malloc(sizeof(struct k_mutex)); in __retarget_lock_init_recursive() 41 k_mutex_init((struct k_mutex *)*lock); in __retarget_lock_init_recursive() 71 k_mutex_lock((struct k_mutex *)lock, K_FOREVER); in __retarget_lock_acquire_recursive() 84 return !k_mutex_lock((struct k_mutex *)lock, K_NO_WAIT); in __retarget_lock_try_acquire_recursive() 97 k_mutex_unlock((struct k_mutex *)lock); in __retarget_lock_release_recursive()
|
/Zephyr-latest/lib/libc/arcmwdt/ |
D | threading.c | 17 #define ARCMWDT_DYN_LOCK_SZ (sizeof(struct k_mutex)) 43 k_mutex_init((struct k_mutex *)*mutex_ptr); in _mwmutex_create() 59 k_mutex_lock((struct k_mutex *)mutex, K_FOREVER); in _mwmutex_lock() 65 k_mutex_unlock((struct k_mutex *)mutex); in _mwmutex_unlock()
|
/Zephyr-latest/lib/libc/armstdc/src/ |
D | threading_weak.c | 22 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/lib/os/ |
D | mutex.c | 12 static struct k_mutex *get_k_mutex(struct sys_mutex *mutex) in get_k_mutex() 35 struct k_mutex *kernel_mutex = get_k_mutex(mutex); in z_impl_z_sys_mutex_kernel_lock() 57 struct k_mutex *kernel_mutex = get_k_mutex(mutex); in z_impl_z_sys_mutex_kernel_unlock()
|
/Zephyr-latest/samples/arch/smp/pktqueue/src/ |
D | pktqueue.h | 24 struct k_mutex *mutex); 27 struct k_mutex *mutex);
|
D | pktqueue.c | 11 struct k_mutex *mutex) in phdr_desc_enqueue() 31 struct k_mutex *mutex) in phdr_desc_dequeue()
|
/Zephyr-latest/subsys/tracing/ |
D | tracing_tracking.c | 22 struct k_mutex *_track_list_k_mutex; 82 void sys_track_k_mutex_init(struct k_mutex *mutex) in sys_track_k_mutex_init() 84 SYS_PORT_TRACING_TYPE_MASK(k_mutex, in sys_track_k_mutex_init() 150 SYS_PORT_TRACING_TYPE_MASK(k_mutex, in sys_track_static_init() 151 SYS_TRACK_STATIC_INIT(k_mutex, 0)); in sys_track_static_init()
|
/Zephyr-latest/lib/posix/options/ |
D | mutex.c | 32 static struct k_mutex posix_mutex_pool[CONFIG_MAX_PTHREAD_MUTEX_COUNT]; 44 static inline size_t posix_mutex_to_offset(struct k_mutex *m) in posix_mutex_to_offset() 54 static struct k_mutex *get_posix_mutex(pthread_mutex_t mu) in get_posix_mutex() 80 struct k_mutex *to_posix_mutex(pthread_mutex_t *mu) in to_posix_mutex() 84 struct k_mutex *m; in to_posix_mutex() 114 struct k_mutex *m = NULL; in acquire_mutex() 225 struct k_mutex *m; in pthread_mutex_init() 266 struct k_mutex *m; in pthread_mutex_unlock() 294 struct k_mutex *m; in pthread_mutex_destroy()
|
/Zephyr-latest/tests/kernel/mutex/mutex_error_case/src/ |
D | test_mutex_error.c | 16 static struct k_mutex mutex; 67 k_mutex_init((struct k_mutex *)&sem); in tThread_entry_negative() 75 k_mutex_lock((struct k_mutex *)&pipe, K_NO_WAIT); in tThread_entry_negative() 83 k_mutex_unlock((struct k_mutex *)&queue); in tThread_entry_negative()
|
/Zephyr-latest/drivers/misc/ethos_u/ |
D | ethos_u.c | 29 struct k_mutex *mutex; in ethosu_mutex_create() 46 status = k_mutex_lock((struct k_mutex *)mutex, K_FOREVER); in ethosu_mutex_lock() 57 k_mutex_unlock((struct k_mutex *)mutex); in ethosu_mutex_unlock()
|
/Zephyr-latest/tests/lib/newlib/thread_safety/src/ |
D | locks.c | 43 extern struct k_mutex __lock___sinit_recursive_mutex; 44 extern struct k_mutex __lock___sfp_recursive_mutex; 45 extern struct k_mutex __lock___atexit_recursive_mutex; 46 extern struct k_mutex __lock___malloc_recursive_mutex; 47 extern struct k_mutex __lock___env_recursive_mutex;
|
/Zephyr-latest/modules/lvgl/include/ |
D | lvgl_zephyr_osal.h | 22 typedef struct k_mutex lv_mutex_t;
|
/Zephyr-latest/subsys/tracing/test/ |
D | tracing_string_format_test.c | 237 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/subsys/settings/src/ |
D | settings_init.c | 18 extern struct k_mutex settings_lock;
|
/Zephyr-latest/modules/openthread/platform/ |
D | hdlc_interface.hpp | 180 struct k_mutex spinel_hdlc_wr_lock; 181 struct k_mutex spinel_hdlc_rd_lock;
|
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/ |
D | fmac_main.h | 45 struct k_mutex vif_lock; 111 struct k_mutex rpu_lock;
|
/Zephyr-latest/drivers/ipm/ |
D | ipm_sedi.h | 40 struct k_mutex device_write_lock;
|
/Zephyr-latest/soc/st/stm32/stm32wbax/hci_if/ |
D | ll_sys_if_adapt.c | 15 extern struct k_mutex ble_ctlr_stack_mutex;
|
/Zephyr-latest/modules/fatfs/ |
D | zfs_ffsystem.c | 35 static struct k_mutex fs_reentrant_mutex[FF_VOLUMES + 1];
|
/Zephyr-latest/tests/integration/kernel/src/ |
D | main.c | 259 k_mutex_lock((struct k_mutex *)p1, K_FOREVER); in thread_entry_fn_mutex() 261 k_mutex_unlock((struct k_mutex *)p1); in thread_entry_fn_mutex() 270 k_mutex_lock((struct k_mutex *)p1, K_FOREVER); in thread_entry_fn_mutex_2() 272 k_mutex_unlock((struct k_mutex *)p1); in thread_entry_fn_mutex_2()
|
/Zephyr-latest/include/zephyr/modem/ |
D | cmux.h | 98 struct k_mutex receive_rb_lock; 158 struct k_mutex transmit_rb_lock;
|
/Zephyr-latest/include/zephyr/net/ |
D | ethernet_bridge.h | 45 struct k_mutex lock;
|