Lines Matching refs:work_color
203 int work_color; /* L: current color */ member
261 int work_color; /* WQ: current work color */ member
1504 pwq->nr_in_flight[pwq->work_color]++; in __queue_work()
1505 work_flags = work_color_to_flags(pwq->work_color); in __queue_work()
2684 unsigned int work_color; in insert_wq_barrier() local
2709 work_color = worker->current_color; in insert_wq_barrier()
2716 work_color = get_work_color(*bits); in insert_wq_barrier()
2720 pwq->nr_in_flight[work_color]++; in insert_wq_barrier()
2721 work_flags |= work_color_to_flags(work_color); in insert_wq_barrier()
2759 int flush_color, int work_color) in flush_workqueue_prep_pwqs() argument
2784 if (work_color >= 0) { in flush_workqueue_prep_pwqs()
2785 WARN_ON_ONCE(work_color != work_next_color(pwq->work_color)); in flush_workqueue_prep_pwqs()
2786 pwq->work_color = work_color; in flush_workqueue_prep_pwqs()
2825 next_color = work_next_color(wq->work_color); in flush_workqueue()
2834 this_flusher.flush_color = wq->work_color; in flush_workqueue()
2835 wq->work_color = next_color; in flush_workqueue()
2844 wq->work_color)) { in flush_workqueue()
2854 flush_workqueue_prep_pwqs(wq, -1, wq->work_color); in flush_workqueue()
2903 wq->flush_color != work_next_color(wq->work_color)); in flush_workqueue()
2917 tmp->flush_color = wq->work_color; in flush_workqueue()
2919 wq->work_color = work_next_color(wq->work_color); in flush_workqueue()
2923 flush_workqueue_prep_pwqs(wq, -1, wq->work_color); in flush_workqueue()
2927 WARN_ON_ONCE(wq->flush_color != wq->work_color); in flush_workqueue()
2935 WARN_ON_ONCE(wq->flush_color == wq->work_color); in flush_workqueue()
3826 pwq->work_color = wq->work_color; in link_pwq()