Home
last modified time | relevance | path

Searched refs:wq_head (Results 1 – 6 of 6) sorted by relevance

/linux/include/linux/
A Dwait.h66 #define init_waitqueue_head(wq_head) \ argument
70 __init_waitqueue_head((wq_head), #wq_head, &__key); \
129 return !list_empty(&wq_head->head); in waitqueue_active()
142 return list_is_singular(&wq_head->head); in wq_has_single_sleeper()
163 return waitqueue_active(wq_head); in wq_has_sleeper()
173 struct list_head *head = &wq_head->head; in __add_wait_queue()
191 __add_wait_queue(wq_head, wq_entry); in __add_wait_queue_exclusive()
270 if (waitqueue_active(wq_head)) in wake_up_pollfree()
271 __wake_up_pollfree(wq_head); in wake_up_pollfree()
320 finish_wait(&wq_head, &__wq_entry); \
[all …]
A Dwait_bit.h26 void __wake_up_bit(struct wait_queue_head *wq_head, void *word, int bit);
27 int __wait_on_bit(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, wait_bit…
28 int __wait_on_bit_lock(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, wai…
/linux/kernel/sched/
A Dwait.c11 spin_lock_init(&wq_head->lock); in __init_waitqueue_head()
13 INIT_LIST_HEAD(&wq_head->head); in __init_waitqueue_head()
23 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue()
24 __add_wait_queue(wq_head, wq_entry); in add_wait_queue()
34 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive()
46 __add_wait_queue(wq_head, wq_entry); in add_wait_queue_priority()
56 __remove_wait_queue(wq_head, wq_entry); in remove_wait_queue()
88 lockdep_assert_held(&wq_head->lock); in __wake_up_common()
98 if (&curr->entry == &wq_head->head) in __wake_up_common()
115 (&next->entry != &wq_head->head)) { in __wake_up_common()
[all …]
A Dwait_bit.c47 prepare_to_wait(wq_head, &wbq_entry->wq_entry, mode); in __wait_on_bit()
52 finish_wait(wq_head, &wbq_entry->wq_entry); in __wait_on_bit()
61 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); in out_of_line_wait_on_bit() local
64 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit()
72 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); in out_of_line_wait_on_bit_timeout() local
77 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit_timeout()
98 finish_wait(wq_head, &wbq_entry->wq_entry); in __wait_on_bit_lock()
102 finish_wait(wq_head, &wbq_entry->wq_entry); in __wait_on_bit_lock()
114 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); in out_of_line_wait_on_bit_lock() local
125 if (waitqueue_active(wq_head)) in __wake_up_bit()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dreporter_rx.c267 u16 wq_head; in mlx5e_rx_reporter_build_diagnose_output_rq_common() local
275 wq_head = mlx5e_rqwq_get_head(rq); in mlx5e_rx_reporter_build_diagnose_output_rq_common()
298 err = devlink_fmsg_u32_pair_put(fmsg, "cc", wq_head); in mlx5e_rx_reporter_build_diagnose_output_rq_common()
/linux/tools/memory-model/Documentation/
A Drecipes.txt506 * @cond = true; prepare_to_wait(&wq_head, &wait, state);
508 * if (waitqueue_active(wq_head)) if (@cond)
509 * wake_up(wq_head); break;
512 * finish_wait(&wq_head, &wait);
515 On CPU1, prepare_to_wait() contains both a store to wq_head and a call

Completed in 21 milliseconds