Lines Matching defs:fn

26 	cpu_stop_fn_t		fn;
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;
52 static inline int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg)
57 ret = fn(arg);
67 stwork->fn(stwork->arg);
72 cpu_stop_fn_t fn, void *arg,
77 work_buf->fn = fn;
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);
130 * @fn: the function to run
131 * @data: the data ptr for @fn()
138 * Return: 0 if all executions of @fn returned 0, any non zero return
141 int stop_core_cpuslocked(unsigned int cpu, cpu_stop_fn_t fn, void *data);
143 int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data,
147 static __always_inline int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data,
153 ret = fn(data);
159 stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus)
161 return stop_machine_cpuslocked(fn, data, cpus);
165 stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data,
168 return stop_machine(fn, data, cpus);