Lines Matching defs:work_color
272 int work_color; /* L: current color */
354 int work_color; /* WQ: current work color */
2380 pwq->nr_in_flight[pwq->work_color]++;
2381 work_flags = work_color_to_flags(pwq->work_color);
3888 unsigned int work_color;
3918 work_color = worker->current_color;
3925 work_color = get_work_color(*bits);
3929 pwq->nr_in_flight[work_color]++;
3930 work_flags |= work_color_to_flags(work_color);
3939 * @work_color: new work color, < 0 for no-op
3955 * If @work_color is non-negative, all pwqs should have the same
3956 * work_color which is previous to @work_color and all will be
3957 * advanced to @work_color.
3967 int flush_color, int work_color)
4004 if (work_color >= 0) {
4005 WARN_ON_ONCE(work_color != work_next_color(pwq->work_color));
4006 pwq->work_color = work_color;
4078 next_color = work_next_color(wq->work_color);
4082 * Color space is not full. The current work_color
4083 * becomes our flush_color and work_color is advanced
4087 this_flusher.flush_color = wq->work_color;
4088 wq->work_color = next_color;
4097 wq->work_color)) {
4107 flush_workqueue_prep_pwqs(wq, -1, wq->work_color);
4156 wq->flush_color != work_next_color(wq->work_color));
4165 * flushers, advance work_color and append to
4170 tmp->flush_color = wq->work_color;
4172 wq->work_color = work_next_color(wq->work_color);
4176 flush_workqueue_prep_pwqs(wq, -1, wq->work_color);
4180 WARN_ON_ONCE(wq->flush_color != wq->work_color);
4188 WARN_ON_ONCE(wq->flush_color == wq->work_color);
5285 /* set the matching work_color */
5286 pwq->work_color = wq->work_color;