/linux-master/kernel/sched/ |
H A D | wait.c | 8 void __init_waitqueue_head(struct wait_queue_head *wq_head, const char *name, struct lock_class_key *key) argument 10 spin_lock_init(&wq_head->lock); 11 lockdep_set_class_and_name(&wq_head->lock, key, name); 12 INIT_LIST_HEAD(&wq_head->head); 17 void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument 22 spin_lock_irqsave(&wq_head->lock, flags); 23 __add_wait_queue(wq_head, wq_entry); 24 spin_unlock_irqrestore(&wq_head->lock, flags); 28 void add_wait_queue_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument 33 spin_lock_irqsave(&wq_head 39 add_wait_queue_priority(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument 50 remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument 73 __wake_up_common(struct wait_queue_head *wq_head, unsigned int mode, int nr_exclusive, int wake_flags, void *key) argument 99 __wake_up_common_lock(struct wait_queue_head *wq_head, unsigned int mode, int nr_exclusive, int wake_flags, void *key) argument 124 __wake_up(struct wait_queue_head *wq_head, unsigned int mode, int nr_exclusive, void *key) argument 131 __wake_up_on_current_cpu(struct wait_queue_head *wq_head, unsigned int mode, void *key) argument 139 __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr) argument 145 __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key) argument 167 __wake_up_sync_key(struct wait_queue_head *wq_head, unsigned int mode, void *key) argument 193 __wake_up_locked_sync_key(struct wait_queue_head *wq_head, unsigned int mode, void *key) argument 203 __wake_up_sync(struct wait_queue_head *wq_head, unsigned int mode) argument 209 __wake_up_pollfree(struct wait_queue_head *wq_head) argument 229 prepare_to_wait(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state) argument 244 prepare_to_wait_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state) argument 270 prepare_to_wait_event(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state) argument 356 finish_wait(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument [all...] |
H A D | wait_bit.c | 41 __wait_on_bit(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, argument 47 prepare_to_wait(wq_head, &wbq_entry->wq_entry, mode); 52 finish_wait(wq_head, &wbq_entry->wq_entry); 61 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); local 64 return __wait_on_bit(wq_head, &wq_entry, action, mode); 72 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); local 77 return __wait_on_bit(wq_head, &wq_entry, action, mode); 82 __wait_on_bit_lock(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, argument 88 prepare_to_wait_exclusive(wq_head, &wbq_entry->wq_entry, mode); 98 finish_wait(wq_head, 114 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); local 121 __wake_up_bit(struct wait_queue_head *wq_head, void *word, int bit) argument [all...] |
/linux-master/include/linux/ |
H A D | wait.h | 62 extern void __init_waitqueue_head(struct wait_queue_head *wq_head, const char *name, struct lock_class_key *); 64 #define init_waitqueue_head(wq_head) \ 68 __init_waitqueue_head((wq_head), #wq_head, &__key); \ 97 * @wq_head: the waitqueue to test for waiters 110 * @cond = true; prepare_to_wait(&wq_head, &wait, state); 112 * if (waitqueue_active(wq_head)) if (@cond) 113 * wake_up(wq_head); break; 116 * finish_wait(&wq_head, &wait); 125 static inline int waitqueue_active(struct wait_queue_head *wq_head) argument 138 wq_has_single_sleeper(struct wait_queue_head *wq_head) argument 151 wq_has_sleeper(struct wait_queue_head *wq_head) argument 169 __add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument 186 __add_wait_queue_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument 192 __add_wait_queue_entry_tail(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument 198 __add_wait_queue_entry_tail_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument 205 __remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) argument 260 wake_up_pollfree(struct wait_queue_head *wq_head) argument [all...] |
H A D | wait_bit.h | 26 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_action_f *action, unsigned int mode); 28 int __wait_on_bit_lock(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, wait_bit_action_f *action, unsigned int mode);
|
/linux-master/fs/xfs/ |
H A D | xfs_drain.c | 60 static inline bool has_waiters(struct wait_queue_head *wq_head) argument 67 return waitqueue_active(wq_head);
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | intel_context_types.h | 291 /** @wq_head: pointer to the actual head in work queue */ 292 u32 *wq_head; member in struct:intel_context::__anon643::__anon645
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | reporter_rx.c | 243 u16 wq_head; local 251 wq_head = mlx5e_rqwq_get_head(rq); 258 devlink_fmsg_u32_pair_put(fmsg, "cc", wq_head);
|
/linux-master/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_submission.c | 506 ce->parallel.guc.wqi_head = READ_ONCE(*ce->parallel.guc.wq_head); 2780 ce->parallel.guc.wq_head = &pdesc->head; 2854 ce->parallel.guc.wq_head = &wq_desc->head; 5496 READ_ONCE(*ce->parallel.guc.wq_head));
|