Lines Matching refs:futex_data
24 return obj->data.futex_data; in k_futex_find_data()
32 struct z_futex_data *futex_data; in z_impl_k_futex_wake() local
34 futex_data = k_futex_find_data(futex); in z_impl_k_futex_wake()
35 if (futex_data == NULL) { in z_impl_k_futex_wake()
39 key = k_spin_lock(&futex_data->lock); in z_impl_k_futex_wake()
42 thread = z_unpend_first_thread(&futex_data->wait_q); in z_impl_k_futex_wake()
50 z_reschedule(&futex_data->lock, key); in z_impl_k_futex_wake()
70 struct z_futex_data *futex_data; in z_impl_k_futex_wait() local
72 futex_data = k_futex_find_data(futex); in z_impl_k_futex_wait()
73 if (futex_data == NULL) { in z_impl_k_futex_wait()
81 key = k_spin_lock(&futex_data->lock); in z_impl_k_futex_wait()
83 ret = z_pend_curr(&futex_data->lock, in z_impl_k_futex_wait()
84 key, &futex_data->wait_q, timeout); in z_impl_k_futex_wait()