• Home
  • Raw
  • Download

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()
86 static void padata_work_init(struct padata_work *pw, work_func_t work_fn, in padata_work_init() argument
90 INIT_WORK_ONSTACK(&pw->pw_work, work_fn); in padata_work_init()
92 INIT_WORK(&pw->pw_work, work_fn); in padata_work_init()
93 pw->pw_data = data; in padata_work_init()
104 struct padata_work *pw = padata_work_alloc(); in padata_work_alloc_mt() local
106 if (!pw) in padata_work_alloc_mt()
108 padata_work_init(pw, padata_mt_helper, data, 0); in padata_work_alloc_mt()
109 list_add(&pw->pw_list, head); in padata_work_alloc_mt()
116 static void padata_work_free(struct padata_work *pw) in padata_work_free() argument
119 list_add(&pw->pw_list, &padata_free_works); in padata_work_free()
139 struct padata_work *pw = container_of(parallel_work, struct padata_work, in padata_parallel_worker() local
141 struct padata_priv *padata = pw->pw_data; in padata_parallel_worker()
146 padata_work_free(pw); in padata_parallel_worker()
173 struct padata_work *pw; in padata_do_parallel() local
207 pw = padata_work_alloc(); in padata_do_parallel()
210 if (!pw) { in padata_do_parallel()
217 if (pw) { in padata_do_parallel()
218 padata_work_init(pw, padata_parallel_worker, padata, 0); in padata_do_parallel()
219 queue_work(pinst->parallel_wq, &pw->pw_work); in padata_do_parallel()
435 struct padata_work *pw = container_of(w, struct padata_work, pw_work); in padata_mt_helper() local
436 struct padata_mt_job_state *ps = pw->pw_data; in padata_mt_helper()
477 struct padata_work my_work, *pw; in padata_do_multithreaded() local
511 list_for_each_entry(pw, &works, pw_list) in padata_do_multithreaded()
512 queue_work(system_unbound_wq, &pw->pw_work); in padata_do_multithreaded()