Lines Matching refs:flags

20     unsigned long flags;
22 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE;
23 spin_lock_irqsave(&wq_head->lock, flags);
25 spin_unlock_irqrestore(&wq_head->lock, flags);
31 unsigned long flags;
33 wq_entry->flags |= WQ_FLAG_EXCLUSIVE;
34 spin_lock_irqsave(&wq_head->lock, flags);
36 spin_unlock_irqrestore(&wq_head->lock, flags);
42 unsigned long flags;
44 spin_lock_irqsave(&wq_head->lock, flags);
46 spin_unlock_irqrestore(&wq_head->lock, flags);
74 if (bookmark && (bookmark->flags & WQ_FLAG_BOOKMARK)) {
78 bookmark->flags = 0;
89 unsigned flags = curr->flags;
92 if (flags & WQ_FLAG_BOOKMARK) {
100 if (ret && (flags & WQ_FLAG_EXCLUSIVE) && !--nr_exclusive) {
105 bookmark->flags = WQ_FLAG_BOOKMARK;
117 unsigned long flags;
120 bookmark.flags = 0;
126 spin_lock_irqsave(&wq_head->lock, flags);
128 spin_unlock_irqrestore(&wq_head->lock, flags);
129 } while (bookmark.flags & WQ_FLAG_BOOKMARK);
248 unsigned long flags;
250 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE;
251 spin_lock_irqsave(&wq_head->lock, flags);
256 spin_unlock_irqrestore(&wq_head->lock, flags);
263 unsigned long flags;
266 wq_entry->flags |= WQ_FLAG_EXCLUSIVE;
267 spin_lock_irqsave(&wq_head->lock, flags);
273 spin_unlock_irqrestore(&wq_head->lock, flags);
278 void init_wait_entry(struct wait_queue_entry *wq_entry, int flags)
280 wq_entry->flags = flags;
289 unsigned long flags;
292 spin_lock_irqsave(&wq_head->lock, flags);
310 if (wq_entry->flags & WQ_FLAG_EXCLUSIVE) {
318 spin_unlock_irqrestore(&wq_head->lock, flags);
380 unsigned long flags;
397 spin_lock_irqsave(&wq_head->lock, flags);
399 spin_unlock_irqrestore(&wq_head->lock, flags);
417 return (current->flags & PF_KTHREAD) && kthread_should_stop();
430 * p->state = mode; wq_entry->flags |= WQ_FLAG_WOKEN;
432 * if (!(wq_entry->flags & WQ_FLAG_WOKEN)) <full barrier>
435 * wq_entry->flags &= ~WQ_FLAG_WOKEN; ~~~~~~~~~~~~~~~~~~
438 * remove_wait_queue(&wq_head, &wait); wq_entry->flags |= WQ_FLAG_WOKEN;
445 * either we see the store to wq_entry->flags in woken_wake_function()
449 if (!(wq_entry->flags & WQ_FLAG_WOKEN) && !is_kthread_should_stop()) {
457 * being true or the store to wq_entry->flags in woken_wake_function()
460 smp_store_mb(wq_entry->flags, wq_entry->flags & ~WQ_FLAG_WOKEN); /* B */
470 wq_entry->flags |= WQ_FLAG_WOKEN;