Lines Matching full:fn
26 cpu_stop_fn_t fn; member
32 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg);
33 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg);
34 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg,
48 cpu_stop_fn_t fn; member
52 static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
57 ret = fn(arg); in stop_one_cpu()
67 stwork->fn(stwork->arg); in stop_one_cpu_nowait_workfn()
72 cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument
77 work_buf->fn = fn; in stop_one_cpu_nowait()
100 * @fn: the function to run
101 * @data: the data ptr for the @fn()
102 * @cpus: the cpus to run the @fn() on (NULL = any online cpu)
107 * @fn() runs.
114 int stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus);
118 * @fn: the function to run
119 * @data: the data ptr for the @fn()
120 * @cpus: the cpus to run the @fn() on (NULL = any online cpu)
125 int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus);
127 int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data,
131 static __always_inline int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, in stop_machine_cpuslocked() argument
137 ret = fn(data); in stop_machine_cpuslocked()
143 stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus) in stop_machine() argument
145 return stop_machine_cpuslocked(fn, data, cpus); in stop_machine()
149 stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, in stop_machine_from_inactive_cpu() argument
152 return stop_machine(fn, data, cpus); in stop_machine_from_inactive_cpu()