Lines Matching refs:work_color
204 int work_color; /* L: current color */ member
262 int work_color; /* WQ: current work color */ member
1502 pwq->nr_in_flight[pwq->work_color]++; in __queue_work()
1503 work_flags = work_color_to_flags(pwq->work_color); in __queue_work()
2676 unsigned int work_color; in insert_wq_barrier() local
2701 work_color = worker->current_color; in insert_wq_barrier()
2708 work_color = get_work_color(*bits); in insert_wq_barrier()
2712 pwq->nr_in_flight[work_color]++; in insert_wq_barrier()
2713 work_flags |= work_color_to_flags(work_color); in insert_wq_barrier()
2751 int flush_color, int work_color) in flush_workqueue_prep_pwqs() argument
2776 if (work_color >= 0) { in flush_workqueue_prep_pwqs()
2777 WARN_ON_ONCE(work_color != work_next_color(pwq->work_color)); in flush_workqueue_prep_pwqs()
2778 pwq->work_color = work_color; in flush_workqueue_prep_pwqs()
2817 next_color = work_next_color(wq->work_color); in __flush_workqueue()
2826 this_flusher.flush_color = wq->work_color; in __flush_workqueue()
2827 wq->work_color = next_color; in __flush_workqueue()
2836 wq->work_color)) { in __flush_workqueue()
2846 flush_workqueue_prep_pwqs(wq, -1, wq->work_color); in __flush_workqueue()
2895 wq->flush_color != work_next_color(wq->work_color)); in __flush_workqueue()
2909 tmp->flush_color = wq->work_color; in __flush_workqueue()
2911 wq->work_color = work_next_color(wq->work_color); in __flush_workqueue()
2915 flush_workqueue_prep_pwqs(wq, -1, wq->work_color); in __flush_workqueue()
2919 WARN_ON_ONCE(wq->flush_color != wq->work_color); in __flush_workqueue()
2927 WARN_ON_ONCE(wq->flush_color == wq->work_color); in __flush_workqueue()
3825 pwq->work_color = wq->work_color; in link_pwq()