Searched refs:mtx (Results 1 – 9 of 9) sorted by relevance
/Zephyr-latest/tests/lib/c_lib/thrd/src/ |
D | mtx.c | 95 mtx_t *mtx = (mtx_t *)arg; in mtx_timedlock_fn() local 100 return mtx_timedlock(mtx, &time_point); in mtx_timedlock_fn() 136 mtx_t *mtx = (mtx_t *)arg; in mtx_trylock_fn() local 138 return mtx_trylock(mtx); in mtx_trylock_fn() 159 mtx_t mtx = (mtx_t)BIOS_FOOD; in ZTEST() local 162 zassert_not_equal(thrd_success, mtx_unlock(&mtx)); in ZTEST() 164 zassert_equal(thrd_success, mtx_init(&mtx, mtx_plain)); in ZTEST() 165 zassert_equal(thrd_success, mtx_lock(&mtx)); in ZTEST() 166 zassert_equal(thrd_success, mtx_unlock(&mtx)); in ZTEST() 167 mtx_destroy(&mtx); in ZTEST()
|
/Zephyr-latest/lib/libc/common/source/thrd/ |
D | cnd.c | 51 int cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, const struct timespec *restrict ts) in cnd_timedwait() argument 53 switch (pthread_cond_timedwait(cond, mtx, ts)) { in cnd_timedwait() 63 int cnd_wait(cnd_t *cond, mtx_t *mtx) in cnd_wait() argument 65 switch (pthread_cond_wait(cond, mtx)) { in cnd_wait()
|
/Zephyr-latest/drivers/can/ |
D | can_loopback.c | 39 struct k_mutex mtx; member 91 k_mutex_lock(&data->mtx, K_FOREVER); in tx_thread() 101 k_mutex_unlock(&data->mtx); in tx_thread() 189 k_mutex_lock(&data->mtx, K_FOREVER); in can_loopback_add_rx_filter() 194 k_mutex_unlock(&data->mtx); in can_loopback_add_rx_filter() 203 k_mutex_unlock(&data->mtx); in can_loopback_add_rx_filter() 220 k_mutex_lock(&data->mtx, K_FOREVER); in can_loopback_remove_rx_filter() 222 k_mutex_unlock(&data->mtx); in can_loopback_remove_rx_filter() 421 k_mutex_init(&data->mtx); in can_loopback_init()
|
/Zephyr-latest/lib/libc/common/include/ |
D | threads.h | 60 int cnd_wait(cnd_t *cond, mtx_t *mtx); 61 int cnd_timedwait(cnd_t *ZRESTRICT cond, mtx_t *ZRESTRICT mtx, const struct timespec *ZRESTRICT ts);
|
/Zephyr-latest/subsys/ipc/ipc_service/backends/ |
D | ipc_rpmsg_static_vrings.c | 180 k_mutex_lock(&rpmsg_inst->mtx, K_FOREVER); in ns_bind_cb() 184 k_mutex_unlock(&rpmsg_inst->mtx); in ns_bind_cb() 193 k_mutex_unlock(&rpmsg_inst->mtx); in ns_bind_cb() 205 k_mutex_unlock(&rpmsg_inst->mtx); in ns_bind_cb() 380 k_mutex_lock(&rpmsg_inst->mtx, K_FOREVER); in register_ept_on_host() 384 k_mutex_unlock(&rpmsg_inst->mtx); in register_ept_on_host() 398 k_mutex_unlock(&rpmsg_inst->mtx); in register_ept_on_host() 406 k_mutex_unlock(&rpmsg_inst->mtx); in register_ept_on_host() 793 k_mutex_init(&data->rpmsg_inst.mtx); in backend_init()
|
/Zephyr-latest/include/zephyr/ipc/ |
D | ipc_rpmsg.h | 86 struct k_mutex mtx; member
|
/Zephyr-latest/lib/libc/common/ |
D | CMakeLists.txt | 17 source/thrd/mtx.c
|
/Zephyr-latest/tests/posix/common/src/ |
D | mutex.c | 183 pthread_mutex_t *mtx = (pthread_mutex_t *)arg; in test_mutex_timedlock_fn() local 188 return INT_TO_POINTER(pthread_mutex_timedlock(mtx, &time_point)); in test_mutex_timedlock_fn()
|
/Zephyr-latest/drivers/sdhc/ |
D | sam_hsmci.c | 75 struct k_mutex mtx; member 623 ret = k_mutex_lock(&dev_data->mtx, K_MSEC(cmd->timeout_ms)); in sam_hsmci_request() 658 k_mutex_unlock(&dev_data->mtx); in sam_hsmci_request()
|