Lines Matching refs:max_workers
46 assert(next < wq->max_workers); in get_submit_worker()
48 sw = __get_submit_worker(wq, next, wq->max_workers - 1, &best); in get_submit_worker()
59 if (sw->index + 1 < wq->max_workers) in get_submit_worker()
72 for (i = 0; i < wq->max_workers; i++) { in all_sw_idle()
240 for (i = 0; i < wq->max_workers; i++) { in workqueue_exit()
251 for (i = 0; i < wq->max_workers; i++) { in workqueue_exit()
261 } while (shutdown && shutdown != wq->max_workers); in workqueue_exit()
305 struct workqueue_ops *ops, unsigned int max_workers, in workqueue_init() argument
312 wq->max_workers = max_workers; in workqueue_init()
325 wq->workers = smalloc(wq->max_workers * sizeof(struct submit_worker)); in workqueue_init()
329 for (i = 0; i < wq->max_workers; i++) in workqueue_init()
333 wq->max_workers = i; in workqueue_init()
334 if (!wq->max_workers) in workqueue_init()
346 for (i = 0; i < wq->max_workers; i++) { in workqueue_init()
356 if (error || running == wq->max_workers) { in workqueue_init()