Lines Matching refs:k_mutex

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()
196 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mutex, lock, mutex, timeout, -EAGAIN); 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()
217 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_mutex, unlock, mutex); in z_impl_k_mutex_unlock()
220 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mutex, unlock, mutex, -EINVAL); in z_impl_k_mutex_unlock()
228 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mutex, unlock, mutex, -EPERM); in z_impl_k_mutex_unlock()
281 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_mutex, unlock, mutex, 0); 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()
301 offsetof(struct k_mutex, obj_core)); in init_mutex_obj_core_list()
305 STRUCT_SECTION_FOREACH(k_mutex, mutex) { in init_mutex_obj_core_list()