Lines Matching refs:flags

20 	unsigned long flags;  in add_wait_queue()  local
22 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue()
23 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue()
25 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue()
31 unsigned long flags; in add_wait_queue_exclusive() local
33 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive()
34 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive()
36 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive()
42 unsigned long flags; in add_wait_queue_priority() local
44 wq_entry->flags |= WQ_FLAG_EXCLUSIVE | WQ_FLAG_PRIORITY; in add_wait_queue_priority()
45 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_priority()
47 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_priority()
53 unsigned long flags; in remove_wait_queue() local
55 spin_lock_irqsave(&wq_head->lock, flags); in remove_wait_queue()
57 spin_unlock_irqrestore(&wq_head->lock, flags); in remove_wait_queue()
90 if (bookmark && (bookmark->flags & WQ_FLAG_BOOKMARK)) { in __wake_up_common()
94 bookmark->flags = 0; in __wake_up_common()
102 unsigned flags = curr->flags; in __wake_up_common() local
105 if (flags & WQ_FLAG_BOOKMARK) in __wake_up_common()
111 if (ret && (flags & WQ_FLAG_EXCLUSIVE) && !--nr_exclusive) in __wake_up_common()
116 bookmark->flags = WQ_FLAG_BOOKMARK; in __wake_up_common()
128 unsigned long flags; in __wake_up_common_lock() local
131 bookmark.flags = 0; in __wake_up_common_lock()
137 spin_lock_irqsave(&wq_head->lock, flags); in __wake_up_common_lock()
140 spin_unlock_irqrestore(&wq_head->lock, flags); in __wake_up_common_lock()
141 } while (bookmark.flags & WQ_FLAG_BOOKMARK); in __wake_up_common_lock()
263 unsigned long flags; in prepare_to_wait() local
265 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in prepare_to_wait()
266 spin_lock_irqsave(&wq_head->lock, flags); in prepare_to_wait()
270 spin_unlock_irqrestore(&wq_head->lock, flags); in prepare_to_wait()
278 unsigned long flags; in prepare_to_wait_exclusive() local
281 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in prepare_to_wait_exclusive()
282 spin_lock_irqsave(&wq_head->lock, flags); in prepare_to_wait_exclusive()
288 spin_unlock_irqrestore(&wq_head->lock, flags); in prepare_to_wait_exclusive()
293 void init_wait_entry(struct wait_queue_entry *wq_entry, int flags) in init_wait_entry() argument
295 wq_entry->flags = flags; in init_wait_entry()
304 unsigned long flags; in prepare_to_wait_event() local
307 spin_lock_irqsave(&wq_head->lock, flags); in prepare_to_wait_event()
325 if (wq_entry->flags & WQ_FLAG_EXCLUSIVE) in prepare_to_wait_event()
332 spin_unlock_irqrestore(&wq_head->lock, flags); in prepare_to_wait_event()
390 unsigned long flags; in finish_wait() local
407 spin_lock_irqsave(&wq_head->lock, flags); in finish_wait()
409 spin_unlock_irqrestore(&wq_head->lock, flags); in finish_wait()
427 return (current->flags & PF_KTHREAD) && kthread_should_stop(); in is_kthread_should_stop()
459 if (!(wq_entry->flags & WQ_FLAG_WOKEN) && !is_kthread_should_stop()) in wait_woken()
469 smp_store_mb(wq_entry->flags, wq_entry->flags & ~WQ_FLAG_WOKEN); /* B */ in wait_woken()
479 wq_entry->flags |= WQ_FLAG_WOKEN; in woken_wake_function()