Lines Matching refs:w
11 struct mutex_waiter *w; in __ww_waiter_first() local
13 w = list_first_entry(&lock->wait_list, struct mutex_waiter, list); in __ww_waiter_first()
14 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_first()
17 return w; in __ww_waiter_first()
21 __ww_waiter_next(struct mutex *lock, struct mutex_waiter *w) in __ww_waiter_next() argument
23 w = list_next_entry(w, list); in __ww_waiter_next()
24 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_next()
27 return w; in __ww_waiter_next()
31 __ww_waiter_prev(struct mutex *lock, struct mutex_waiter *w) in __ww_waiter_prev() argument
33 w = list_prev_entry(w, list); in __ww_waiter_prev()
34 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_prev()
37 return w; in __ww_waiter_prev()
43 struct mutex_waiter *w; in __ww_waiter_last() local
45 w = list_last_entry(&lock->wait_list, struct mutex_waiter, list); in __ww_waiter_last()
46 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_last()
49 return w; in __ww_waiter_last()
103 __ww_waiter_next(struct rt_mutex *lock, struct rt_mutex_waiter *w) in __ww_waiter_next() argument
105 struct rb_node *n = rb_next(&w->tree_entry); in __ww_waiter_next()
112 __ww_waiter_prev(struct rt_mutex *lock, struct rt_mutex_waiter *w) in __ww_waiter_prev() argument
114 struct rb_node *n = rb_prev(&w->tree_entry); in __ww_waiter_prev()