Lines Matching refs:job
41 struct padata_mt_job *job; member
437 struct padata_mt_job *job = ps->job; in padata_mt_helper() local
442 while (job->size > 0) { in padata_mt_helper()
445 start = job->start; in padata_mt_helper()
448 size = min(size, job->size); in padata_mt_helper()
451 job->start = end; in padata_mt_helper()
452 job->size -= size; in padata_mt_helper()
455 job->thread_fn(start, end, job->fn_arg); in padata_mt_helper()
473 void __init padata_do_multithreaded(struct padata_mt_job *job) in padata_do_multithreaded() argument
482 if (job->size == 0) in padata_do_multithreaded()
486 nworks = max(job->size / job->min_chunk, 1ul); in padata_do_multithreaded()
487 nworks = min(nworks, job->max_threads); in padata_do_multithreaded()
491 job->thread_fn(job->start, job->start + job->size, job->fn_arg); in padata_do_multithreaded()
497 ps.job = job; in padata_do_multithreaded()
507 ps.chunk_size = job->size / (ps.nworks * load_balance_factor); in padata_do_multithreaded()
508 ps.chunk_size = max(ps.chunk_size, job->min_chunk); in padata_do_multithreaded()
509 ps.chunk_size = roundup(ps.chunk_size, job->align); in padata_do_multithreaded()