/Linux-v4.19/kernel/sched/ |
D | wait.c | 17 void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) in add_wait_queue() argument 21 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue() 23 __add_wait_queue(wq_head, wq_entry); in add_wait_queue() 28 void add_wait_queue_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) in add_wait_queue_exclusive() argument 32 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive() 34 __add_wait_queue_entry_tail(wq_head, wq_entry); in add_wait_queue_exclusive() 39 void remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) in remove_wait_queue() argument 44 __remove_wait_queue(wq_head, wq_entry); in remove_wait_queue() 225 prepare_to_wait(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state) in prepare_to_wait() argument 229 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in prepare_to_wait() [all …]
|
D | wait_bit.c | 20 int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *arg) in wake_bit_function() argument 23 …struct wait_bit_queue_entry *wait_bit = container_of(wq_entry, struct wait_bit_queue_entry, wq_ent… in wake_bit_function() 30 return autoremove_wake_function(wq_entry, mode, sync, key); in wake_bit_function() 46 prepare_to_wait(wq_head, &wbq_entry->wq_entry, mode); in __wait_on_bit() 51 finish_wait(wq_head, &wbq_entry->wq_entry); in __wait_on_bit() 61 DEFINE_WAIT_BIT(wq_entry, word, bit); in out_of_line_wait_on_bit() 63 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit() 72 DEFINE_WAIT_BIT(wq_entry, word, bit); in out_of_line_wait_on_bit_timeout() 74 wq_entry.key.timeout = jiffies + timeout; in out_of_line_wait_on_bit_timeout() 76 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit_timeout() [all …]
|
/Linux-v4.19/include/linux/ |
D | wait.h | 16 typedef int (*wait_queue_func_t)(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void … 17 int default_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key); 79 static inline void init_waitqueue_entry(struct wait_queue_entry *wq_entry, struct task_struct *p) in init_waitqueue_entry() argument 81 wq_entry->flags = 0; in init_waitqueue_entry() 82 wq_entry->private = p; in init_waitqueue_entry() 83 wq_entry->func = default_wake_function; in init_waitqueue_entry() 87 init_waitqueue_func_entry(struct wait_queue_entry *wq_entry, wait_queue_func_t func) in init_waitqueue_func_entry() argument 89 wq_entry->flags = 0; in init_waitqueue_func_entry() 90 wq_entry->private = NULL; in init_waitqueue_func_entry() 91 wq_entry->func = func; in init_waitqueue_func_entry() [all …]
|
D | wait_bit.h | 18 struct wait_queue_entry wq_entry; member 36 int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key); 41 .wq_entry = { \ 45 LIST_HEAD_INIT((name).wq_entry.entry), \ 253 &__wbq_entry.wq_entry, \ 265 finish_wait(__wq_head, &__wbq_entry.wq_entry); \
|
/Linux-v4.19/drivers/tee/optee/ |
D | rpc.c | 24 struct wq_entry { struct 61 static struct wq_entry *wq_entry_get(struct optee_wait_queue *wq, u32 key) in wq_entry_get() 63 struct wq_entry *w; in wq_entry_get() 84 struct wq_entry *w = wq_entry_get(wq, key); in wq_sleep() 97 struct wq_entry *w = wq_entry_get(wq, key); in wq_wakeup()
|
/Linux-v4.19/fs/ |
D | inode.c | 1910 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); in __wait_on_freeing_inode() 1914 finish_wait(wq, &wait.wq_entry); in __wait_on_freeing_inode() 2053 prepare_to_wait(wq, &q.wq_entry, TASK_UNINTERRUPTIBLE); in __inode_dio_wait() 2057 finish_wait(wq, &q.wq_entry); in __inode_dio_wait()
|
/Linux-v4.19/fs/xfs/ |
D | xfs_icache.c | 262 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); in xfs_inew_wait() 267 finish_wait(wq, &wait.wq_entry); in xfs_inew_wait()
|
D | xfs_inode.c | 609 prepare_to_wait_exclusive(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); in __xfs_iflock() 614 finish_wait(wq, &wait.wq_entry); in __xfs_iflock() 2480 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); in __xfs_iunpin_wait() 2484 finish_wait(wq, &wait.wq_entry); in __xfs_iunpin_wait()
|
/Linux-v4.19/fs/jbd2/ |
D | journal.c | 2608 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); in jbd2_journal_release_jbd_inode() 2611 finish_wait(wq, &wait.wq_entry); in jbd2_journal_release_jbd_inode()
|