Searched refs:wq_entry (Results 1 – 11 of 11) sorted by relevance
/linux/kernel/sched/ |
A D | wait.c | 22 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue() 24 __add_wait_queue(wq_head, wq_entry); in add_wait_queue() 33 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive() 46 __add_wait_queue(wq_head, wq_entry); in add_wait_queue_priority() 267 if (list_empty(&wq_entry->entry)) in prepare_to_wait() 295 wq_entry->flags = flags; in init_wait_entry() 296 wq_entry->private = current; in init_wait_entry() 298 INIT_LIST_HEAD(&wq_entry->entry); in init_wait_entry() 321 list_del_init(&wq_entry->entry); in prepare_to_wait_event() 408 list_del_init(&wq_entry->entry); in finish_wait() [all …]
|
A D | wait_bit.c | 24 …struct wait_bit_queue_entry *wait_bit = container_of(wq_entry, struct wait_bit_queue_entry, wq_ent… in wake_bit_function() 47 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() 62 DEFINE_WAIT_BIT(wq_entry, word, bit); in out_of_line_wait_on_bit() 73 DEFINE_WAIT_BIT(wq_entry, word, bit); in out_of_line_wait_on_bit_timeout() 75 wq_entry.key.timeout = jiffies + timeout; 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() 115 DEFINE_WAIT_BIT(wq_entry, word, bit); in out_of_line_wait_on_bit_lock() 165 container_of(wq_entry, struct wait_bit_queue_entry, wq_entry); in var_wake_function() [all …]
|
/linux/include/linux/ |
A D | wait.h | 84 wq_entry->flags = 0; in init_waitqueue_entry() 85 wq_entry->private = p; in init_waitqueue_entry() 86 wq_entry->func = default_wake_function; in init_waitqueue_entry() 92 wq_entry->flags = 0; in init_waitqueue_func_entry() 93 wq_entry->private = NULL; in init_waitqueue_func_entry() 94 wq_entry->func = func; in init_waitqueue_func_entry() 181 list_add(&wq_entry->entry, head); in __add_wait_queue() 190 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in __add_wait_queue_exclusive() 191 __add_wait_queue(wq_head, wq_entry); in __add_wait_queue_exclusive() 202 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in __add_wait_queue_entry_tail_exclusive() [all …]
|
A 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/kernel/locking/ |
A D | percpu-rwsem.c | 117 static int percpu_rwsem_wake_function(struct wait_queue_entry *wq_entry, in percpu_rwsem_wake_function() argument 121 bool reader = wq_entry->flags & WQ_FLAG_CUSTOM; in percpu_rwsem_wake_function() 129 p = get_task_struct(wq_entry->private); in percpu_rwsem_wake_function() 130 list_del_init(&wq_entry->entry); in percpu_rwsem_wake_function() 131 smp_store_release(&wq_entry->private, NULL); in percpu_rwsem_wake_function() 141 DEFINE_WAIT_FUNC(wq_entry, percpu_rwsem_wake_function); in percpu_rwsem_wait() 151 wq_entry.flags |= WQ_FLAG_EXCLUSIVE | reader * WQ_FLAG_CUSTOM; in percpu_rwsem_wait() 152 __add_wait_queue_entry_tail(&sem->waiters, &wq_entry); in percpu_rwsem_wait() 158 if (!smp_load_acquire(&wq_entry.private)) in percpu_rwsem_wait()
|
/linux/drivers/tee/optee/ |
A D | rpc.c | 15 struct wq_entry { struct 147 static struct wq_entry *wq_entry_get(struct optee_wait_queue *wq, u32 key) in wq_entry_get() 149 struct wq_entry *w; in wq_entry_get() 170 struct wq_entry *w = wq_entry_get(wq, key); in wq_sleep() 183 struct wq_entry *w = wq_entry_get(wq, key); in wq_wakeup()
|
/linux/fs/ |
A D | inode.c | 2065 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); in __wait_on_freeing_inode() 2069 finish_wait(wq, &wait.wq_entry); in __wait_on_freeing_inode() 2225 prepare_to_wait(wq, &q.wq_entry, TASK_UNINTERRUPTIBLE); in __inode_dio_wait() 2229 finish_wait(wq, &q.wq_entry); in __inode_dio_wait()
|
/linux/block/ |
A D | blk-iocost.c | 1430 static int iocg_wake_fn(struct wait_queue_entry *wq_entry, unsigned mode, in iocg_wake_fn() argument 1433 struct iocg_wait *wait = container_of(wq_entry, struct iocg_wait, wait); in iocg_wake_fn() 1452 default_wake_function(wq_entry, mode, flags, key); in iocg_wake_fn() 1453 list_del_init_careful(&wq_entry->entry); in iocg_wake_fn()
|
/linux/fs/ext4/ |
A D | fast_commit.c | 237 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); in ext4_fc_wait_committing_inode() 240 finish_wait(wq, &wait.wq_entry); in ext4_fc_wait_committing_inode()
|
/linux/fs/jbd2/ |
A D | journal.c | 3057 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); in jbd2_journal_release_jbd_inode() 3060 finish_wait(wq, &wait.wq_entry); in jbd2_journal_release_jbd_inode()
|
/linux/fs/xfs/ |
A D | xfs_inode.c | 2707 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE); in __xfs_iunpin_wait() 2711 finish_wait(wq, &wait.wq_entry); in __xfs_iunpin_wait()
|
Completed in 51 milliseconds