Lines Matching refs:fn
26 cpu_stop_fn_t fn; member
31 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg);
32 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg);
33 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg,
35 int stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg);
36 int try_stop_cpus(const struct cpumask *cpumask, cpu_stop_fn_t fn, void *arg);
47 cpu_stop_fn_t fn; member
51 static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
56 ret = fn(arg); in stop_one_cpu()
66 stwork->fn(stwork->arg); in stop_one_cpu_nowait_workfn()
71 cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument
76 work_buf->fn = fn; in stop_one_cpu_nowait()
86 cpu_stop_fn_t fn, void *arg) in stop_cpus() argument
89 return stop_one_cpu(raw_smp_processor_id(), fn, arg); in stop_cpus()
94 cpu_stop_fn_t fn, void *arg) in try_stop_cpus() argument
96 return stop_cpus(cpumask, fn, arg); in try_stop_cpus()
125 int stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus);
136 int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus);
138 int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data,
142 static __always_inline int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, in stop_machine_cpuslocked() argument
148 ret = fn(data); in stop_machine_cpuslocked()
154 stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) in stop_machine() argument
156 return stop_machine_cpuslocked(fn, data, cpus); in stop_machine()
160 stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, in stop_machine_from_inactive_cpu() argument
163 return stop_machine(fn, data, cpus); in stop_machine_from_inactive_cpu()