Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 21 of 21) sorted by relevance

/kernel/
Dstop_machine.c123 int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg) in stop_one_cpu() argument
126 struct cpu_stop_work work = { .fn = fn, .arg = arg, .done = &done }; in stop_one_cpu()
155 cpu_stop_fn_t fn; member
224 err = msdata->fn(msdata->data); in multi_cpu_stop()
317 int stop_two_cpus(unsigned int cpu1, unsigned int cpu2, cpu_stop_fn_t fn, void *arg) in stop_two_cpus() argument
324 .fn = fn, in stop_two_cpus()
331 .fn = multi_cpu_stop, in stop_two_cpus()
366 bool stop_one_cpu_nowait(unsigned int cpu, cpu_stop_fn_t fn, void *arg, in stop_one_cpu_nowait() argument
369 *work_buf = (struct cpu_stop_work){ .fn = fn, .arg = arg, }; in stop_one_cpu_nowait()
374 cpu_stop_fn_t fn, void *arg, in queue_stop_cpus_work() argument
[all …]
Dcfi.c186 unsigned long max_addr, update_shadow_fn fn) in update_shadow() argument
201 fn(next, mod); in update_shadow()
Dkallsyms.c179 int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *, in kallsyms_on_each_symbol()
190 ret = fn(data, namebuf, NULL, kallsyms_sym_address(i)); in kallsyms_on_each_symbol()
194 return module_kallsyms_on_each_symbol(fn, data); in kallsyms_on_each_symbol()
Dworkqueue.c3319 int execute_in_process_context(work_func_t fn, struct execute_work *ew) in execute_in_process_context() argument
3322 fn(&ew->work); in execute_in_process_context()
3326 INIT_WORK(&ew->work, fn); in execute_in_process_context()
4596 work_func_t *fn = NULL; in print_worker_info() local
4616 probe_kernel_read(&fn, &worker->current_func, sizeof(fn)); in print_worker_info()
4622 if (fn || name[0] || desc[0]) { in print_worker_info()
4623 printk("%sWorkqueue: %s %ps", log_lvl, name, fn); in print_worker_info()
5068 long (*fn)(void *); member
5077 wfc->ret = wfc->fn(wfc->arg); in work_for_cpu_fn()
5091 long work_on_cpu(int cpu, long (*fn)(void *), void *arg) in work_on_cpu()
[all …]
Dtorture.c775 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m, in _torture_create_kthread()
781 *tp = kthread_run(fn, arg, "%s", s); in _torture_create_kthread()
Dmodule.c405 bool (*fn)(const struct symsearch *syms, in each_symbol_in_section()
413 if (fn(&arr[j], owner, data)) in each_symbol_in_section()
421 bool each_symbol_section(bool (*fn)(const struct symsearch *arr, in each_symbol_section()
448 if (each_symbol_in_section(arr, ARRAY_SIZE(arr), NULL, fn, data)) in each_symbol_section()
477 if (each_symbol_in_section(arr, ARRAY_SIZE(arr), mod, fn, data)) in each_symbol_section()
4267 int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *, in module_kallsyms_on_each_symbol()
4289 ret = fn(data, kallsyms_symbol_name(kallsyms, i), in module_kallsyms_on_each_symbol()
Dfork.c2449 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) in kernel_thread()
2454 .stack = (unsigned long)fn, in kernel_thread()
Dfutex.c2833 restart->fn = futex_wait_restart; in futex_wait()
2860 restart->fn = do_no_restart_syscall; in futex_wait_restart()
Dsignal.c2870 return restart->fn(restart); in SYSCALL_DEFINE0()
/kernel/gcov/
Dclang.c236 struct gcov_fn_info *fn; in gcov_info_reset() local
238 list_for_each_entry(fn, &info->functions, head) in gcov_info_reset()
239 memset(fn->counters, 0, in gcov_info_reset()
240 sizeof(fn->counters[0]) * fn->num_counters); in gcov_info_reset()
298 static struct gcov_fn_info *gcov_fn_info_dup(struct gcov_fn_info *fn) in gcov_fn_info_dup() argument
301 struct gcov_fn_info *fn_dup = kmemdup(fn, sizeof(*fn), in gcov_fn_info_dup()
307 fn_dup->function_name = kstrdup(fn->function_name, GFP_KERNEL); in gcov_fn_info_dup()
311 cv_size = fn->num_counters * sizeof(fn->counters[0]); in gcov_fn_info_dup()
315 memcpy(fn_dup->counters, fn->counters, cv_size); in gcov_fn_info_dup()
335 struct gcov_fn_info *fn; in gcov_info_dup() local
[all …]
Dgcc_3_4.c240 static struct gcov_fn_info *get_fn_info(struct gcov_info *info, unsigned int fn) in get_fn_info() argument
243 ((char *) info->functions + fn * get_fn_size(info)); in get_fn_info()
/kernel/trace/
Dtrace_events_filter.c912 int match = pred->fn(pred, rec); in filter_match_preds()
1098 filter_pred_fn_t fn = NULL; in select_comparison_fn() local
1116 fn = filter_pred_64; in select_comparison_fn()
1118 fn = pred_funcs_s64[pred_func_index]; in select_comparison_fn()
1120 fn = pred_funcs_u64[pred_func_index]; in select_comparison_fn()
1124 fn = filter_pred_32; in select_comparison_fn()
1126 fn = pred_funcs_s32[pred_func_index]; in select_comparison_fn()
1128 fn = pred_funcs_u32[pred_func_index]; in select_comparison_fn()
1132 fn = filter_pred_16; in select_comparison_fn()
1134 fn = pred_funcs_s16[pred_func_index]; in select_comparison_fn()
[all …]
Dtracing_map.c169 tracing_map_cmp_fn_t fn = tracing_map_cmp_none; in tracing_map_cmp_num() local
174 fn = tracing_map_cmp_s64; in tracing_map_cmp_num()
176 fn = tracing_map_cmp_u64; in tracing_map_cmp_num()
180 fn = tracing_map_cmp_s32; in tracing_map_cmp_num()
182 fn = tracing_map_cmp_u32; in tracing_map_cmp_num()
186 fn = tracing_map_cmp_s16; in tracing_map_cmp_num()
188 fn = tracing_map_cmp_u16; in tracing_map_cmp_num()
192 fn = tracing_map_cmp_s8; in tracing_map_cmp_num()
194 fn = tracing_map_cmp_u8; in tracing_map_cmp_num()
198 return fn; in tracing_map_cmp_num()
Dtrace_events_hist.c118 hist_field_fn_t fn; member
208 u64 val = operand->fn(operand, elt, rbe, event); in hist_field_log2()
221 u64 val1 = operand1->fn(operand1, elt, rbe, event); in hist_field_plus()
222 u64 val2 = operand2->fn(operand2, elt, rbe, event); in hist_field_plus()
235 u64 val1 = operand1->fn(operand1, elt, rbe, event); in hist_field_minus()
236 u64 val2 = operand2->fn(operand2, elt, rbe, event); in hist_field_minus()
248 s64 sval = (s64)operand->fn(operand, elt, rbe, event); in hist_field_unary_minus()
464 action_fn_t fn; member
2001 hist_field_fn_t fn = NULL; in select_value_fn() local
2006 fn = hist_field_s64; in select_value_fn()
[all …]
Dtrace.h1519 filter_pred_fn_t fn; member
/kernel/locking/
Dtest-ww_mutex.c538 void (*fn)(struct work_struct *work); in stress() local
540 fn = NULL; in stress()
544 fn = stress_inorder_work; in stress()
548 fn = stress_reorder_work; in stress()
552 fn = stress_one_work; in stress()
556 if (!fn) in stress()
563 INIT_WORK(&stress->work, fn); in stress()
/kernel/bpf/
Dverifier.c3610 static bool check_raw_mode_ok(const struct bpf_func_proto *fn) in check_raw_mode_ok() argument
3614 if (fn->arg1_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
3616 if (fn->arg2_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
3618 if (fn->arg3_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
3620 if (fn->arg4_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
3622 if (fn->arg5_type == ARG_PTR_TO_UNINIT_MEM) in check_raw_mode_ok()
3641 static bool check_arg_pair_ok(const struct bpf_func_proto *fn) in check_arg_pair_ok() argument
3648 if (arg_type_is_mem_size(fn->arg1_type) || in check_arg_pair_ok()
3649 arg_type_is_mem_ptr(fn->arg5_type) || in check_arg_pair_ok()
3650 check_args_pair_invalid(fn->arg1_type, fn->arg2_type) || in check_arg_pair_ok()
[all …]
/kernel/time/
Dtimer.c1379 void (*fn)(struct timer_list *), in call_timer_fn()
1404 fn(timer); in call_timer_fn()
1411 fn, count, preempt_count()); in call_timer_fn()
1433 void (*fn)(struct timer_list *); in expire_timers() local
1440 fn = timer->function; in expire_timers()
1444 call_timer_fn(timer, fn, baseclk); in expire_timers()
1449 call_timer_fn(timer, fn, baseclk); in expire_timers()
Dhrtimer.c1482 enum hrtimer_restart (*fn)(struct hrtimer *); in __run_hrtimer() local
1500 fn = timer->function; in __run_hrtimer()
1517 restart = fn(timer); in __run_hrtimer()
1938 restart->fn = hrtimer_nanosleep_restart; in hrtimer_nanosleep()
Dalarmtimer.c832 restart->fn = alarm_timer_nsleep_restart; in alarm_timer_nsleep()
Dposix-cpu-timers.c1338 restart_block->fn = posix_cpu_nsleep_restart; in posix_cpu_nsleep()