• Home
  • Raw
  • Download

Lines Matching refs:work

85 					struct cpu_stop_work *work,  in __cpu_stop_queue_work()  argument
88 list_add_tail(&work->list, &stopper->works); in __cpu_stop_queue_work()
93 static bool cpu_stop_queue_work(unsigned int cpu, struct cpu_stop_work *work) in cpu_stop_queue_work() argument
104 __cpu_stop_queue_work(stopper, work, &wakeq); in cpu_stop_queue_work()
105 else if (work->done) in cpu_stop_queue_work()
106 cpu_stop_signal_done(work->done); in cpu_stop_queue_work()
142 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done, .caller = _RET_IP_ }; in stop_one_cpu() local
145 if (!cpu_stop_queue_work(cpu, &work)) in stop_one_cpu()
397 struct cpu_stop_work *work; in queue_stop_cpus_work() local
410 work = &per_cpu(cpu_stopper.stop_work, cpu); in queue_stop_cpus_work()
411 work->fn = fn; in queue_stop_cpus_work()
412 work->arg = arg; in queue_stop_cpus_work()
413 work->done = done; in queue_stop_cpus_work()
414 work->caller = _RET_IP_; in queue_stop_cpus_work()
415 if (cpu_stop_queue_work(cpu, work)) in queue_stop_cpus_work()
491 struct cpu_stop_work *work; in cpu_stopper_thread() local
494 work = NULL; in cpu_stopper_thread()
497 work = list_first_entry(&stopper->works, in cpu_stopper_thread()
499 list_del_init(&work->list); in cpu_stopper_thread()
503 if (work) { in cpu_stopper_thread()
504 cpu_stop_fn_t fn = work->fn; in cpu_stopper_thread()
505 void *arg = work->arg; in cpu_stopper_thread()
506 struct cpu_stop_done *done = work->done; in cpu_stopper_thread()
510 stopper->caller = work->caller; in cpu_stopper_thread()