Home
last modified time | relevance | path

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

/linux/kernel/sched/
H A Dwait.c9 void __init_waitqueue_head(struct wait_queue_head *wq_head, const char *name, struct lock_class_key… in __init_waitqueue_head() argument
11 spin_lock_init(&wq_head->lock); in __init_waitqueue_head()
12 lockdep_set_class_and_name(&wq_head->lock, key, name); in __init_waitqueue_head()
13 INIT_LIST_HEAD(&wq_head->head); in __init_waitqueue_head()
18 void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) in add_wait_queue() argument
23 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue()
24 __add_wait_queue(wq_head, wq_entry); in add_wait_queue()
25 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue()
29 void add_wait_queue_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) in add_wait_queue_exclusive() argument
34 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive()
[all …]
H A Dwait_bit.c44 __wait_on_bit(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, in __wait_on_bit() argument
50 prepare_to_wait(wq_head, &wbq_entry->wq_entry, mode); in __wait_on_bit()
55 finish_wait(wq_head, &wbq_entry->wq_entry); in __wait_on_bit()
64 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); in out_of_line_wait_on_bit() local
67 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit()
75 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); in out_of_line_wait_on_bit_timeout() local
80 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit_timeout()
85 __wait_on_bit_lock(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, in __wait_on_bit_lock() argument
91 prepare_to_wait_exclusive(wq_head, &wbq_entry->wq_entry, mode); in __wait_on_bit_lock()
101 finish_wait(wq_head, &wbq_entry->wq_entry); in __wait_on_bit_lock()
[all …]
/linux/fs/
H A Dinode.c544 struct wait_queue_head *wq_head; in wait_on_new_inode() local
552 wq_head = inode_bit_waitqueue(&wqe, inode, __I_NEW); in wait_on_new_inode()
554 prepare_to_wait_event(wq_head, &wqe.wq_entry, TASK_UNINTERRUPTIBLE); in wait_on_new_inode()
561 finish_wait(wq_head, &wqe.wq_entry); in wait_on_new_inode()
623 struct wait_queue_head *wq_head; in inode_wait_for_lru_isolating() local
629 wq_head = inode_bit_waitqueue(&wqe, inode, __I_LRU_ISOLATING); in inode_wait_for_lru_isolating()
631 prepare_to_wait_event(wq_head, &wqe.wq_entry, TASK_UNINTERRUPTIBLE); in inode_wait_for_lru_isolating()
642 finish_wait(wq_head, &wqe.wq_entry); in inode_wait_for_lru_isolating()
2540 struct wait_queue_head *wq_head; in __wait_on_freeing_inode() local
2553 wq_head = inode_bit_waitqueue(&wqe, inode, __I_NEW); in __wait_on_freeing_inode()
[all …]
H A Dfs-writeback.c1598 struct wait_queue_head *wq_head; in inode_wait_for_writeback() local
1605 wq_head = inode_bit_waitqueue(&wqe, inode, __I_SYNC); in inode_wait_for_writeback()
1607 prepare_to_wait_event(wq_head, &wqe.wq_entry, TASK_UNINTERRUPTIBLE); in inode_wait_for_writeback()
1615 finish_wait(wq_head, &wqe.wq_entry); in inode_wait_for_writeback()
1627 struct wait_queue_head *wq_head; in inode_sleep_on_writeback() local
1632 wq_head = inode_bit_waitqueue(&wqe, inode, __I_SYNC); in inode_sleep_on_writeback()
1633 prepare_to_wait_event(wq_head, &wqe.wq_entry, TASK_UNINTERRUPTIBLE); in inode_sleep_on_writeback()
1639 finish_wait(wq_head, &wqe.wq_entry); in inode_sleep_on_writeback()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dreporter_rx.c263 u16 wq_head; in mlx5e_rx_reporter_build_diagnose_output_rq_common() local
271 wq_head = mlx5e_rqwq_get_head(rq); in mlx5e_rx_reporter_build_diagnose_output_rq_common()
278 devlink_fmsg_u32_pair_put(fmsg, "cc", wq_head); in mlx5e_rx_reporter_build_diagnose_output_rq_common()
/linux/tools/memory-model/Documentation/
H A Drecipes.txt510 * @cond = true; prepare_to_wait(&wq_head, &wait, state);
512 * if (waitqueue_active(wq_head)) if (@cond)
513 * wake_up(wq_head); break;
516 * finish_wait(&wq_head, &wait);
519 On CPU1, prepare_to_wait() contains both a store to wq_head and a call