Lines Matching refs:flags
25 unsigned long flags; in add_wait_queue() local
27 wait->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue()
28 spin_lock_irqsave(&q->lock, flags); in add_wait_queue()
30 spin_unlock_irqrestore(&q->lock, flags); in add_wait_queue()
36 unsigned long flags; in add_wait_queue_exclusive() local
38 wait->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive()
39 spin_lock_irqsave(&q->lock, flags); in add_wait_queue_exclusive()
41 spin_unlock_irqrestore(&q->lock, flags); in add_wait_queue_exclusive()
47 unsigned long flags; in remove_wait_queue() local
49 spin_lock_irqsave(&q->lock, flags); in remove_wait_queue()
51 spin_unlock_irqrestore(&q->lock, flags); in remove_wait_queue()
71 unsigned flags = curr->flags; in __wake_up_common() local
74 (flags & WQ_FLAG_EXCLUSIVE) && !--nr_exclusive) in __wake_up_common()
92 unsigned long flags; in __wake_up() local
94 spin_lock_irqsave(&q->lock, flags); in __wake_up()
96 spin_unlock_irqrestore(&q->lock, flags); in __wake_up()
135 unsigned long flags; in __wake_up_sync_key() local
144 spin_lock_irqsave(&q->lock, flags); in __wake_up_sync_key()
146 spin_unlock_irqrestore(&q->lock, flags); in __wake_up_sync_key()
174 unsigned long flags; in prepare_to_wait() local
176 wait->flags &= ~WQ_FLAG_EXCLUSIVE; in prepare_to_wait()
177 spin_lock_irqsave(&q->lock, flags); in prepare_to_wait()
181 spin_unlock_irqrestore(&q->lock, flags); in prepare_to_wait()
188 unsigned long flags; in prepare_to_wait_exclusive() local
190 wait->flags |= WQ_FLAG_EXCLUSIVE; in prepare_to_wait_exclusive()
191 spin_lock_irqsave(&q->lock, flags); in prepare_to_wait_exclusive()
195 spin_unlock_irqrestore(&q->lock, flags); in prepare_to_wait_exclusive()
201 unsigned long flags; in prepare_to_wait_event() local
209 spin_lock_irqsave(&q->lock, flags); in prepare_to_wait_event()
211 if (wait->flags & WQ_FLAG_EXCLUSIVE) in prepare_to_wait_event()
217 spin_unlock_irqrestore(&q->lock, flags); in prepare_to_wait_event()
234 unsigned long flags; in finish_wait() local
251 spin_lock_irqsave(&q->lock, flags); in finish_wait()
253 spin_unlock_irqrestore(&q->lock, flags); in finish_wait()
279 unsigned long flags; in abort_exclusive_wait() local
282 spin_lock_irqsave(&q->lock, flags); in abort_exclusive_wait()
287 spin_unlock_irqrestore(&q->lock, flags); in abort_exclusive_wait()
303 return (current->flags & PF_KTHREAD) && kthread_should_stop(); in is_kthread_should_stop()
334 if (!(wait->flags & WQ_FLAG_WOKEN) && !is_kthread_should_stop()) in wait_woken()
344 smp_store_mb(wait->flags, wait->flags & ~WQ_FLAG_WOKEN); /* B */ in wait_woken()
360 wait->flags |= WQ_FLAG_WOKEN; in woken_wake_function()
372 if (wait_bit->key.flags != key->flags || in wake_bit_function()
374 test_bit(key->bit_nr, key->flags)) in wake_bit_function()
394 if (test_bit(q->key.bit_nr, q->key.flags)) in __wait_on_bit()
396 } while (test_bit(q->key.bit_nr, q->key.flags) && !ret); in __wait_on_bit()
432 if (!test_bit(q->key.bit_nr, q->key.flags)) in __wait_on_bit_lock()
439 } while (test_and_set_bit(q->key.bit_nr, q->key.flags)); in __wait_on_bit_lock()
516 atomic_t *val = key->flags; in wake_atomic_t_function()
518 if (wait_bit->key.flags != key->flags || in wake_atomic_t_function()
539 val = q->key.flags; in __wait_on_atomic_t()