Lines Matching refs:lock
62 _LOCK_T lock = NULL; in ZTEST() local
65 __retarget_lock_init(&lock); in ZTEST()
66 zassert_not_null(lock, "non-recursive lock init failed"); in ZTEST()
69 __retarget_lock_acquire(lock); in ZTEST()
70 zassert_equal(__retarget_lock_try_acquire(lock), 0, in ZTEST()
74 __retarget_lock_release(lock); in ZTEST()
75 zassert_not_equal(__retarget_lock_try_acquire(lock), 0, in ZTEST()
79 __retarget_lock_close(lock); in ZTEST()
84 _LOCK_T lock = p1; in retargetable_lock_mutex_thread_acq() local
91 ret = __retarget_lock_try_acquire_recursive(lock); in retargetable_lock_mutex_thread_acq()
97 _LOCK_T lock = p1; in retargetable_lock_mutex_thread_rel() local
104 ret = __retarget_lock_try_acquire_recursive(lock); in retargetable_lock_mutex_thread_rel()
116 _LOCK_T lock = NULL; in ZTEST() local
120 __retarget_lock_init_recursive(&lock); in ZTEST()
121 zassert_not_null(lock, "recursive lock init failed"); in ZTEST()
124 __retarget_lock_acquire_recursive(lock); in ZTEST()
128 retargetable_lock_mutex_thread_acq, lock, in ZTEST()
135 __retarget_lock_release_recursive(lock); in ZTEST()
139 retargetable_lock_mutex_thread_rel, lock, in ZTEST()
146 __retarget_lock_close_recursive(lock); in ZTEST()