Lines Matching full: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,
45 cpu_stop_fn_t fn; member
49 static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
54 ret = fn(arg); in stop_one_cpu()
64 stwork->fn(stwork->arg); in stop_one_cpu_nowait_workfn()
69 cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument
74 work_buf->fn = fn; in stop_one_cpu_nowait()
95 * @fn: the function to run
96 * @data: the data ptr for the @fn()
97 * @cpus: the cpus to run the @fn() on (NULL = any online cpu)
102 * @fn() runs.
109 int stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus);
113 * @fn: the function to run
114 * @data: the data ptr for the @fn()
115 * @cpus: the cpus to run the @fn() on (NULL = any online cpu)
120 int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus);
122 int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data,
126 static inline int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data, in stop_machine_cpuslocked() argument
132 ret = fn(data); in stop_machine_cpuslocked()
137 static inline int stop_machine(cpu_stop_fn_t fn, void *data, in stop_machine() argument
140 return stop_machine_cpuslocked(fn, data, cpus); in stop_machine()
143 static inline int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data, in stop_machine_from_inactive_cpu() argument
146 return stop_machine(fn, data, cpus); in stop_machine_from_inactive_cpu()