Lines Matching refs:flags
19 unsigned long flags; in add_wait_queue() local
21 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue()
22 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue()
24 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue()
30 unsigned long flags; in add_wait_queue_exclusive() local
32 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive()
33 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive()
35 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive()
41 unsigned long flags; in add_wait_queue_priority() local
43 wq_entry->flags |= WQ_FLAG_EXCLUSIVE | WQ_FLAG_PRIORITY; in add_wait_queue_priority()
44 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_priority()
46 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_priority()
52 unsigned long flags; in remove_wait_queue() local
54 spin_lock_irqsave(&wq_head->lock, flags); in remove_wait_queue()
56 spin_unlock_irqrestore(&wq_head->lock, flags); in remove_wait_queue()
86 unsigned flags = curr->flags; in __wake_up_common() local
92 if (ret && (flags & WQ_FLAG_EXCLUSIVE) && !--nr_exclusive) in __wake_up_common()
102 unsigned long flags; in __wake_up_common_lock() local
105 spin_lock_irqsave(&wq_head->lock, flags); in __wake_up_common_lock()
108 spin_unlock_irqrestore(&wq_head->lock, flags); in __wake_up_common_lock()
231 unsigned long flags; in prepare_to_wait() local
233 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in prepare_to_wait()
234 spin_lock_irqsave(&wq_head->lock, flags); in prepare_to_wait()
238 spin_unlock_irqrestore(&wq_head->lock, flags); in prepare_to_wait()
246 unsigned long flags; in prepare_to_wait_exclusive() local
249 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in prepare_to_wait_exclusive()
250 spin_lock_irqsave(&wq_head->lock, flags); in prepare_to_wait_exclusive()
256 spin_unlock_irqrestore(&wq_head->lock, flags); in prepare_to_wait_exclusive()
261 void init_wait_entry(struct wait_queue_entry *wq_entry, int flags) in init_wait_entry() argument
263 wq_entry->flags = flags; in init_wait_entry()
272 unsigned long flags; in prepare_to_wait_event() local
275 spin_lock_irqsave(&wq_head->lock, flags); in prepare_to_wait_event()
293 if (wq_entry->flags & WQ_FLAG_EXCLUSIVE) in prepare_to_wait_event()
300 spin_unlock_irqrestore(&wq_head->lock, flags); in prepare_to_wait_event()
358 unsigned long flags; in finish_wait() local
375 spin_lock_irqsave(&wq_head->lock, flags); in finish_wait()
377 spin_unlock_irqrestore(&wq_head->lock, flags); in finish_wait()
422 if (!(wq_entry->flags & WQ_FLAG_WOKEN) && !kthread_should_stop_or_park()) in wait_woken()
432 smp_store_mb(wq_entry->flags, wq_entry->flags & ~WQ_FLAG_WOKEN); /* B */ in wait_woken()
442 wq_entry->flags |= WQ_FLAG_WOKEN; in woken_wake_function()