Lines Matching refs:work_color
259 int work_color; /* L: current color */ member
340 int work_color; /* WQ: current work color */ member
2328 pwq->nr_in_flight[pwq->work_color]++; in __queue_work()
2329 work_flags = work_color_to_flags(pwq->work_color); in __queue_work()
3766 unsigned int work_color; in insert_wq_barrier() local
3796 work_color = worker->current_color; in insert_wq_barrier()
3803 work_color = get_work_color(*bits); in insert_wq_barrier()
3807 pwq->nr_in_flight[work_color]++; in insert_wq_barrier()
3808 work_flags |= work_color_to_flags(work_color); in insert_wq_barrier()
3845 int flush_color, int work_color) in flush_workqueue_prep_pwqs() argument
3882 if (work_color >= 0) { in flush_workqueue_prep_pwqs()
3883 WARN_ON_ONCE(work_color != work_next_color(pwq->work_color)); in flush_workqueue_prep_pwqs()
3884 pwq->work_color = work_color; in flush_workqueue_prep_pwqs()
3956 next_color = work_next_color(wq->work_color); in __flush_workqueue()
3965 this_flusher.flush_color = wq->work_color; in __flush_workqueue()
3966 wq->work_color = next_color; in __flush_workqueue()
3975 wq->work_color)) { in __flush_workqueue()
3985 flush_workqueue_prep_pwqs(wq, -1, wq->work_color); in __flush_workqueue()
4034 wq->flush_color != work_next_color(wq->work_color)); in __flush_workqueue()
4048 tmp->flush_color = wq->work_color; in __flush_workqueue()
4050 wq->work_color = work_next_color(wq->work_color); in __flush_workqueue()
4054 flush_workqueue_prep_pwqs(wq, -1, wq->work_color); in __flush_workqueue()
4058 WARN_ON_ONCE(wq->flush_color != wq->work_color); in __flush_workqueue()
4066 WARN_ON_ONCE(wq->flush_color == wq->work_color); in __flush_workqueue()
5148 pwq->work_color = wq->work_color; in link_pwq()