Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 69) sorted by relevance

123

/kernel/dma/
Dmapping.c113 const struct dma_map_ops *ops) in dma_go_direct() argument
115 if (likely(!ops)) in dma_go_direct()
132 const struct dma_map_ops *ops) in dma_alloc_direct() argument
134 return dma_go_direct(dev, dev->coherent_dma_mask, ops); in dma_alloc_direct()
138 const struct dma_map_ops *ops) in dma_map_direct() argument
140 return dma_go_direct(dev, *dev->dma_mask, ops); in dma_map_direct()
147 const struct dma_map_ops *ops = get_dma_ops(dev); in dma_map_page_attrs() local
155 if (dma_map_direct(dev, ops) || in dma_map_page_attrs()
159 addr = ops->map_page(dev, page, offset, size, dir, attrs); in dma_map_page_attrs()
170 const struct dma_map_ops *ops = get_dma_ops(dev); in dma_unmap_page_attrs() local
[all …]
Dops_helpers.c66 const struct dma_map_ops *ops = get_dma_ops(dev); in dma_common_alloc_pages() local
75 *dma_handle = ops->map_page(dev, page, 0, size, dir, in dma_common_alloc_pages()
89 const struct dma_map_ops *ops = get_dma_ops(dev); in dma_common_free_pages() local
91 if (ops->unmap_page) in dma_common_free_pages()
92 ops->unmap_page(dev, dma_handle, size, dir, in dma_common_free_pages()
/kernel/livepatch/
Dpatch.c27 struct klp_ops *ops; in klp_find_ops() local
30 list_for_each_entry(ops, &klp_ops, node) { in klp_find_ops()
31 func = list_first_entry(&ops->func_stack, struct klp_func, in klp_find_ops()
34 return ops; in klp_find_ops()
45 struct klp_ops *ops; in klp_ftrace_handler() local
50 ops = container_of(fops, struct klp_ops, fops); in klp_ftrace_handler()
62 func = list_first_or_null_rcu(&ops->func_stack, struct klp_func, in klp_ftrace_handler()
109 if (&func->stack_node == &ops->func_stack) in klp_ftrace_handler()
129 struct klp_ops *ops; in klp_unpatch_func() local
136 ops = klp_find_ops(func->old_func); in klp_unpatch_func()
[all …]
/kernel/trace/
Dtrace_functions.c54 struct ftrace_ops *ops; in ftrace_allocate_ftrace_ops() local
60 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in ftrace_allocate_ftrace_ops()
61 if (!ops) in ftrace_allocate_ftrace_ops()
65 ops->func = function_trace_call; in ftrace_allocate_ftrace_ops()
66 ops->flags = FTRACE_OPS_FL_PID; in ftrace_allocate_ftrace_ops()
68 tr->ops = ops; in ftrace_allocate_ftrace_ops()
69 ops->private = tr; in ftrace_allocate_ftrace_ops()
76 kfree(tr->ops); in ftrace_free_ftrace_ops()
77 tr->ops = NULL; in ftrace_free_ftrace_ops()
90 if (!tr->ops) in ftrace_create_function_files()
[all …]
Dftrace.c98 static bool ftrace_pids_enabled(struct ftrace_ops *ops) in ftrace_pids_enabled() argument
102 if (!(ops->flags & FTRACE_OPS_FL_PID) || !ops->private) in ftrace_pids_enabled()
105 tr = ops->private; in ftrace_pids_enabled()
110 static void ftrace_update_trampoline(struct ftrace_ops *ops);
128 static inline void ftrace_ops_init(struct ftrace_ops *ops) in ftrace_ops_init() argument
131 if (!(ops->flags & FTRACE_OPS_FL_INITIALIZED)) { in ftrace_ops_init()
132 mutex_init(&ops->local_hash.regex_lock); in ftrace_ops_init()
133 ops->func_hash = &ops->local_hash; in ftrace_ops_init()
134 ops->flags |= FTRACE_OPS_FL_INITIALIZED; in ftrace_ops_init()
163 static ftrace_func_t ftrace_ops_get_list_func(struct ftrace_ops *ops) in ftrace_ops_get_list_func() argument
[all …]
Dftrace_internal.h12 int ftrace_startup(struct ftrace_ops *ops, int command);
13 int ftrace_shutdown(struct ftrace_ops *ops, int command);
14 int ftrace_ops_test(struct ftrace_ops *ops, unsigned long ip, void *regs);
18 int __register_ftrace_function(struct ftrace_ops *ops);
19 int __unregister_ftrace_function(struct ftrace_ops *ops);
21 # define ftrace_startup(ops, command) \ argument
23 int ___ret = __register_ftrace_function(ops); \
25 (ops)->flags |= FTRACE_OPS_FL_ENABLED; \
28 # define ftrace_shutdown(ops, command) \ argument
30 int ___ret = __unregister_ftrace_function(ops); \
[all …]
Dfprobe.c24 struct ftrace_ops *ops, struct ftrace_regs *fregs) in fprobe_handler() argument
32 fp = container_of(ops, struct fprobe, ops); in fprobe_handler()
66 struct ftrace_ops *ops, struct ftrace_regs *fregs) in fprobe_kprobe_handler() argument
68 struct fprobe *fp = container_of(ops, struct fprobe, ops); in fprobe_kprobe_handler()
75 fprobe_handler(ip, parent_ip, ops, fregs); in fprobe_kprobe_handler()
127 fp->ops.func = fprobe_kprobe_handler; in fprobe_init()
129 fp->ops.func = fprobe_handler; in fprobe_init()
130 fp->ops.flags |= FTRACE_OPS_FL_SAVE_REGS; in fprobe_init()
177 ftrace_free_filter(&fp->ops); in fprobe_fail_cleanup()
204 ret = ftrace_set_filter(&fp->ops, str, len, 0); in register_fprobe()
[all …]
Dtrace_dynevent.c59 int dyn_event_register(struct dyn_event_operations *ops) in dyn_event_register() argument
61 if (!ops || !ops->create || !ops->show || !ops->is_busy || in dyn_event_register()
62 !ops->free || !ops->match) in dyn_event_register()
65 INIT_LIST_HEAD(&ops->list); in dyn_event_register()
67 list_add_tail(&ops->list, &dyn_event_ops_list); in dyn_event_register()
111 if (type && type != pos->ops) in dyn_event_release()
113 if (!pos->ops->match(system, event, in dyn_event_release()
117 ret = pos->ops->free(pos); in dyn_event_release()
130 struct dyn_event_operations *ops; in create_dyn_event() local
137 list_for_each_entry(ops, &dyn_event_ops_list, list) { in create_dyn_event()
[all …]
Dtrace_dynevent.h51 int dyn_event_register(struct dyn_event_operations *ops);
63 struct dyn_event_operations *ops; member
69 int dyn_event_init(struct dyn_event *ev, struct dyn_event_operations *ops) in dyn_event_init() argument
71 if (!ev || !ops) in dyn_event_init()
75 ev->ops = ops; in dyn_event_init()
84 if (!ev || !ev->ops) in dyn_event_add()
Dtrace_event_perf.c434 struct ftrace_ops *ops, struct ftrace_regs *fregs) in perf_ftrace_function_call() argument
450 if ((unsigned long)ops->private != smp_processor_id()) in perf_ftrace_function_call()
453 event = container_of(ops, struct perf_event, ftrace_ops); in perf_ftrace_function_call()
487 struct ftrace_ops *ops = &event->ftrace_ops; in perf_ftrace_function_register() local
489 ops->func = perf_ftrace_function_call; in perf_ftrace_function_register()
490 ops->private = (void *)(unsigned long)nr_cpu_ids; in perf_ftrace_function_register()
492 return register_ftrace_function(ops); in perf_ftrace_function_register()
497 struct ftrace_ops *ops = &event->ftrace_ops; in perf_ftrace_function_unregister() local
498 int ret = unregister_ftrace_function(ops); in perf_ftrace_function_unregister()
499 ftrace_free_filter(ops); in perf_ftrace_function_unregister()
Dtrace_events_trigger.c71 data->ops->trigger(data, buffer, rec, event); in event_triggers_call()
81 data->ops->trigger(data, buffer, rec, event); in event_triggers_call()
123 data->ops->trigger(data, NULL, NULL, NULL); in event_triggers_post_call()
192 data->ops->print(m, data); in trigger_show()
514 if (data->ops->free) in clear_event_triggers()
515 data->ops->free(data); in clear_event_triggers()
580 if (data->ops->init) { in register_trigger()
581 ret = data->ops->init(data); in register_trigger()
627 if (data && data->ops->free) in unregister_trigger()
628 data->ops->free(data); in unregister_trigger()
[all …]
Dtracing_map.c371 if (elt->map->ops && elt->map->ops->elt_clear) in tracing_map_elt_clear()
372 elt->map->ops->elt_clear(elt); in tracing_map_elt_clear()
394 if (elt->map->ops && elt->map->ops->elt_free) in tracing_map_elt_free()
395 elt->map->ops->elt_free(elt); in tracing_map_elt_free()
440 if (map->ops && map->ops->elt_alloc) { in tracing_map_elt_alloc()
441 err = map->ops->elt_alloc(elt); in tracing_map_elt_alloc()
460 if (map->ops && map->ops->elt_init) in get_free_elt()
461 map->ops->elt_init(elt); in get_free_elt()
770 const struct tracing_map_ops *ops, in tracing_map_create() argument
789 map->ops = ops; in tracing_map_create()
Dtrace_sched_switch.c91 static void tracing_start_sched_switch(int ops) in tracing_start_sched_switch() argument
98 switch (ops) { in tracing_start_sched_switch()
113 static void tracing_stop_sched_switch(int ops) in tracing_stop_sched_switch() argument
117 switch (ops) { in tracing_stop_sched_switch()
Dtrace.h372 struct ftrace_ops *ops; member
1049 struct ftrace_probe_ops *ops,
1051 int (*init)(struct ftrace_probe_ops *ops,
1055 void (*free)(struct ftrace_probe_ops *ops,
1060 struct ftrace_probe_ops *ops,
1079 struct ftrace_probe_ops *ops, void *data);
1082 struct ftrace_probe_ops *ops);
1088 void ftrace_create_filter_files(struct ftrace_ops *ops,
1090 void ftrace_destroy_filter_files(struct ftrace_ops *ops);
1092 extern int ftrace_set_filter(struct ftrace_ops *ops, unsigned char *buf,
[all …]
/kernel/time/
Dposix-clock.c48 if (clk->ops.read) in posix_clock_read()
49 err = clk->ops.read(clk, fp->f_flags, buf, count); in posix_clock_read()
64 if (clk->ops.poll) in posix_clock_poll()
65 result = clk->ops.poll(clk, fp, wait); in posix_clock_poll()
81 if (clk->ops.ioctl) in posix_clock_ioctl()
82 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_ioctl()
99 if (clk->ops.ioctl) in posix_clock_compat_ioctl()
100 err = clk->ops.ioctl(clk, cmd, arg); in posix_clock_compat_ioctl()
120 if (clk->ops.open) in posix_clock_open()
121 err = clk->ops.open(clk, fp->f_mode); in posix_clock_open()
[all …]
/kernel/irq/
Dmsi.c534 struct msi_domain_ops *ops = info->ops; in msi_domain_alloc() local
535 irq_hw_number_t hwirq = ops->get_hwirq(info, arg); in msi_domain_alloc()
548 ret = ops->msi_init(domain, info, virq + i, hwirq + i, arg); in msi_domain_alloc()
550 if (ops->msi_free) { in msi_domain_alloc()
552 ops->msi_free(domain, info, virq + i); in msi_domain_alloc()
568 if (info->ops->msi_free) { in msi_domain_free()
570 info->ops->msi_free(domain, info, virq + i); in msi_domain_free()
635 struct msi_domain_ops *ops = info->ops; in msi_domain_update_dom_ops() local
637 if (ops == NULL) { in msi_domain_update_dom_ops()
638 info->ops = &msi_domain_ops_default; in msi_domain_update_dom_ops()
[all …]
Dirqdomain.c133 const struct irq_domain_ops *ops, in __irq_domain_create() argument
210 domain->ops = ops; in __irq_domain_create()
250 const struct irq_domain_ops *ops, in __irq_domain_add() argument
256 ops, host_data); in __irq_domain_add()
352 const struct irq_domain_ops *ops, in irq_domain_create_simple() argument
357 domain = __irq_domain_add(fwnode, size, size, 0, ops, host_data); in irq_domain_create_simple()
396 const struct irq_domain_ops *ops, in irq_domain_add_legacy() argument
400 first_irq, first_hwirq, ops, host_data); in irq_domain_add_legacy()
408 const struct irq_domain_ops *ops, in irq_domain_create_legacy() argument
413 domain = __irq_domain_add(fwnode, first_hwirq + size, first_hwirq + size, 0, ops, host_data); in irq_domain_create_legacy()
[all …]
/kernel/bpf/
Doffload.c36 const struct bpf_prog_offload_ops *ops; member
135 ret = offload->offdev->ops->prepare(prog); in bpf_prog_offload_verifier_prep()
152 ret = offload->offdev->ops->insn_hook(env, insn_idx, in bpf_prog_offload_verify_insn()
167 if (offload->offdev->ops->finalize) in bpf_prog_offload_finalize()
168 ret = offload->offdev->ops->finalize(env); in bpf_prog_offload_finalize()
181 const struct bpf_prog_offload_ops *ops; in bpf_prog_offload_replace_insn() local
188 ops = offload->offdev->ops; in bpf_prog_offload_replace_insn()
189 if (!offload->opt_failed && ops->replace_insn) in bpf_prog_offload_replace_insn()
190 ret = ops->replace_insn(env, off, insn); in bpf_prog_offload_replace_insn()
205 if (!offload->opt_failed && offload->offdev->ops->remove_insns) in bpf_prog_offload_remove_insns()
[all …]
Dmap_in_map.c27 if (!inner_map->ops->map_meta_equal) { in bpf_map_meta_alloc()
39 if (inner_map->ops == &array_map_ops) in bpf_map_meta_alloc()
62 inner_map_meta->ops = inner_map->ops; in bpf_map_meta_alloc()
63 if (inner_map->ops == &array_map_ops) { in bpf_map_meta_alloc()
109 if (inner_map_meta->ops->map_meta_equal(inner_map_meta, inner_map)) in bpf_map_fd_get_ptr()
Dsyscall.c114 const struct bpf_map_ops *ops; in find_and_alloc_map() local
122 ops = bpf_map_types[type]; in find_and_alloc_map()
123 if (!ops) in find_and_alloc_map()
126 if (ops->map_alloc_check) { in find_and_alloc_map()
127 err = ops->map_alloc_check(attr); in find_and_alloc_map()
132 ops = &bpf_map_offload_ops; in find_and_alloc_map()
133 map = ops->map_alloc(attr); in find_and_alloc_map()
136 map->ops = ops; in find_and_alloc_map()
190 return map->ops->map_update_elem(map, key, value, flags); in bpf_map_update_value()
225 err = map->ops->map_push_elem(map, value, flags); in bpf_map_update_value()
[all …]
/kernel/power/
Dhibernate.c94 void hibernation_set_ops(const struct platform_hibernation_ops *ops) in hibernation_set_ops() argument
98 if (ops && !(ops->begin && ops->end && ops->pre_snapshot in hibernation_set_ops()
99 && ops->prepare && ops->finish && ops->enter && ops->pre_restore in hibernation_set_ops()
100 && ops->restore_cleanup && ops->leave)) { in hibernation_set_ops()
107 hibernation_ops = ops; in hibernation_set_ops()
108 if (ops) in hibernation_set_ops()
Dsuspend.c78 void s2idle_set_ops(const struct platform_s2idle_ops *ops) in s2idle_set_ops() argument
83 s2idle_ops = ops; in s2idle_set_ops()
210 void suspend_set_ops(const struct platform_suspend_ops *ops) in suspend_set_ops() argument
216 suspend_ops = ops; in suspend_set_ops()
/kernel/
Dparams.c137 !(params[i].ops->flags & KERNEL_PARAM_OPS_FL_NOARG)) in parse_one()
140 params[i].ops->set); in parse_one()
143 err = params[i].ops->set(val, &params[i]); in parse_one()
468 arr->elemsize, arr->ops->set, kp->level, in param_array_set()
484 ret = arr->ops->get(buffer + off, &p); in param_array_get()
498 if (arr->ops->free) in param_array_free()
500 arr->ops->free(arr->elem + arr->elemsize * i); in param_array_free()
563 if (!attribute->param->ops->get) in param_attr_show()
567 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
580 if (!attribute->param->ops->set) in param_attr_store()
[all …]
/kernel/locking/
Dlockdep_internals.h247 unsigned long ops = 0; in debug_class_ops_read() local
251 ops += per_cpu(lockdep_stats.lock_class_ops[idx], cpu); in debug_class_ops_read()
252 return ops; in debug_class_ops_read()
/kernel/bpf/preload/
Dbpf_preload_kern.c29 static struct bpf_preload_ops ops = { variable
77 bpf_preload_ops = &ops; in load()

123