Lines Matching refs:pw

74 	struct padata_work *pw;  in padata_work_alloc()  local
81 pw = list_first_entry(&padata_free_works, struct padata_work, pw_list); in padata_work_alloc()
82 list_del(&pw->pw_list); in padata_work_alloc()
83 return pw; in padata_work_alloc()
94 static void __ref padata_work_init(struct padata_work *pw, work_func_t work_fn, in padata_work_init() argument
98 INIT_WORK_ONSTACK(&pw->pw_work, work_fn); in padata_work_init()
100 INIT_WORK(&pw->pw_work, work_fn); in padata_work_init()
101 pw->pw_data = data; in padata_work_init()
112 struct padata_work *pw = padata_work_alloc(); in padata_work_alloc_mt() local
114 if (!pw) in padata_work_alloc_mt()
116 padata_work_init(pw, padata_mt_helper, data, 0); in padata_work_alloc_mt()
117 list_add(&pw->pw_list, head); in padata_work_alloc_mt()
124 static void padata_work_free(struct padata_work *pw) in padata_work_free() argument
127 list_add(&pw->pw_list, &padata_free_works); in padata_work_free()
147 struct padata_work *pw = container_of(parallel_work, struct padata_work, in padata_parallel_worker() local
149 struct padata_priv *padata = pw->pw_data; in padata_parallel_worker()
154 padata_work_free(pw); in padata_parallel_worker()
181 struct padata_work *pw; in padata_do_parallel() local
215 pw = padata_work_alloc(); in padata_do_parallel()
218 if (!pw) { in padata_do_parallel()
225 if (pw) { in padata_do_parallel()
226 padata_work_init(pw, padata_parallel_worker, padata, 0); in padata_do_parallel()
227 queue_work(pinst->parallel_wq, &pw->pw_work); in padata_do_parallel()
444 struct padata_work *pw = container_of(w, struct padata_work, pw_work); in padata_mt_helper() local
445 struct padata_mt_job_state *ps = pw->pw_data; in padata_mt_helper()
486 struct padata_work my_work, *pw; in padata_do_multithreaded() local
531 list_for_each_entry(pw, &works, pw_list) in padata_do_multithreaded()
538 queue_work_node(nid, system_unbound_wq, &pw->pw_work); in padata_do_multithreaded()
540 queue_work(system_unbound_wq, &pw->pw_work); in padata_do_multithreaded()