Lines Matching refs:fn
121 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
124 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done }; in stop_one_cpu()
147 cpu_stop_fn_t fn; member
206 err = msdata->fn(msdata->data); in multi_cpu_stop()
255 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) in stop_two_cpus() argument
263 .fn = fn, in stop_two_cpus()
270 .fn = multi_cpu_stop, in stop_two_cpus()
306 void stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument
309 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, }; in stop_one_cpu_nowait()
317 cpu_stop_fn_t fn, void *arg, in queue_stop_cpus_work() argument
331 work->fn = fn; in queue_stop_cpus_work()
340 cpu_stop_fn_t fn, void *arg) in __stop_cpus() argument
345 queue_stop_cpus_work(cpumask, fn, arg, &done); in __stop_cpus()
378 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) in stop_cpus() argument
384 ret = __stop_cpus(cpumask, fn, arg); in stop_cpus()
407 int try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg) in try_stop_cpus() argument
414 ret = __stop_cpus(cpumask, fn, arg); in try_stop_cpus()
448 cpu_stop_fn_t fn = work->fn; in cpu_stopper_thread() local
456 ret = fn(arg); in cpu_stopper_thread()
464 kallsyms_lookup((unsigned long)fn, NULL, NULL, NULL, in cpu_stopper_thread()
536 static int __stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) in __stop_machine() argument
539 .fn = fn, in __stop_machine()
558 ret = (*fn)(data); in __stop_machine()
569 int stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) in stop_machine() argument
575 ret = __stop_machine(fn, data, cpus); in stop_machine()
603 int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, in stop_machine_from_inactive_cpu() argument
606 struct multi_stop_data msdata = { .fn = fn, .data = data, in stop_machine_from_inactive_cpu()