Lines Matching refs:work
74 static void cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work) in cpu_stop_queue_work() argument
84 list_add_tail(&work->list, &stopper->works); in cpu_stop_queue_work()
87 cpu_stop_signal_done(work->done, false); in cpu_stop_queue_work()
119 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done }; in stop_one_cpu() local
122 cpu_stop_queue_work(cpu, &work); in stop_one_cpu()
334 struct cpu_stop_work *work; in queue_stop_cpus_work() local
339 work = &per_cpu(stop_cpus_work, cpu); in queue_stop_cpus_work()
340 work->fn = fn; in queue_stop_cpus_work()
341 work->arg = arg; in queue_stop_cpus_work()
342 work->done = done; in queue_stop_cpus_work()
451 struct cpu_stop_work *work; in cpu_stopper_thread() local
455 work = NULL; in cpu_stopper_thread()
458 work = list_first_entry(&stopper->works, in cpu_stopper_thread()
460 list_del_init(&work->list); in cpu_stopper_thread()
464 if (work) { in cpu_stopper_thread()
465 cpu_stop_fn_t fn = work->fn; in cpu_stopper_thread()
466 void *arg = work->arg; in cpu_stopper_thread()
467 struct cpu_stop_done *done = work->done; in cpu_stopper_thread()
499 struct cpu_stop_work *work; in cpu_stop_park() local
504 list_for_each_entry(work, &stopper->works, list) in cpu_stop_park()
505 cpu_stop_signal_done(work->done, false); in cpu_stop_park()