Home
last modified time | relevance | path

Searched refs:nr_args (Results 1 – 25 of 30) sorted by relevance

12

/linux/io_uring/
H A Dregister.c42 unsigned nr_args) in io_probe() argument
48 if (nr_args > IORING_OP_LAST) in io_probe()
49 nr_args = IORING_OP_LAST; in io_probe()
51 size = struct_size(p, ops, nr_args); in io_probe()
61 for (i = 0; i < nr_args; i++) { in io_probe()
111 static __cold int io_parse_restrictions(void __user *arg, unsigned int nr_args, in io_parse_restrictions() argument
118 if (!arg || nr_args > IORING_MAX_RESTRICTIONS) in io_parse_restrictions()
121 size = array_size(nr_args, sizeof(*res)); in io_parse_restrictions()
131 for (i = 0; i < nr_args; i++) { in io_parse_restrictions()
157 ret = nr_args; in io_parse_restrictions()
[all …]
H A Dtctx.c319 unsigned nr_args) in io_ringfd_register() argument
326 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_register()
336 for (i = 0; i < nr_args; i++) { in io_ringfd_register()
378 unsigned nr_args) in io_ringfd_unregister() argument
385 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_unregister()
390 for (i = 0; i < nr_args; i++) { in io_ringfd_unregister()
H A Dtctx.h19 unsigned nr_args);
21 unsigned nr_args);
H A Dquery.c128 int io_query(void __user *arg, unsigned nr_args) in io_query() argument
136 if (nr_args) in io_query()
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_syscalls.h31 #define DECLARE_ARGS(nr_args, args...) MAP_ARGS(nr_args, __DECLARE_ARGS, args)
32 #define UNPACK_ARGS(nr_args, args...) MAP_ARGS(nr_args, __UNPACK_ARGS, args)
38 #define __KVM_SYSCALL_DEFINE(name, nr_args, args...) \
39 static inline void kvm_##name(DECLARE_ARGS(nr_args, args)) \
43 r = name(UNPACK_ARGS(nr_args, args)); \
52 #define KVM_SYSCALL_DEFINE(name, nr_args, args...) \
53 static inline long name(DECLARE_ARGS(nr_args, args)) \
55 return syscall(__NR_##name, UNPACK_ARGS(nr_args, arg
29 DECLARE_ARGS(nr_args,args...) global() argument
30 UNPACK_ARGS(nr_args,args...) global() argument
36 __KVM_SYSCALL_DEFINE(name,nr_args,args...) global() argument
50 KVM_SYSCALL_DEFINE(name,nr_args,args...) global() argument
[all...]
/linux/arch/x86/platform/olpc/
H A Dolpc_ofw.c47 int __olpc_ofw(const char *name, int nr_args, const void **args, int nr_res, in __olpc_ofw() argument
54 BUG_ON(nr_args + nr_res > MAXARGS); in __olpc_ofw()
60 ofw_args[1] = nr_args; in __olpc_ofw()
64 for (i = 0; i < nr_args; i++, p++) in __olpc_ofw()
/linux/tools/bootconfig/scripts/
H A Dxbc.sh31 nr_args() { # args function
54 __s=`nr_args $__keys`
/linux/kernel/trace/
H A Dtrace_probe.c1167 earg = kzalloc_flex(*earg, code, 2 * tp->nr_args + 1); in __store_entry_arg()
1170 earg->size = 2 * tp->nr_args + 1; in __store_entry_arg()
2492 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
2509 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
2580 if (tp->nr_args) { in traceprobe_define_arg_fields()
2581 tpe->field_strings = kcalloc(tp->nr_args * 2, sizeof(char *), in traceprobe_define_arg_fields()
2588 for (i = 0; i < tp->nr_args; i++) { in traceprobe_define_arg_fields()
2658 for (i = 0; i < tp->nr_args; i++) in trace_probe_cleanup()
2707 tp->nr_args = nargs; in trace_probe_init()
2815 if (a->nr_args < b->nr_args) in trace_probe_compare_arg_type()
[all …]
H A Dtrace_probe_tmpl.h253 for (i = 0; i < tp->nr_args; i++) { in __get_data_size()
276 for (i = 0; i < tp->nr_args; i++) { in store_trace_args()
H A Dtrace_fprobe.c636 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_fentry_event()
671 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_fexit_event()
826 for (i = 0; i < tf->tp.nr_args; i++) { in __register_trace_fprobe()
895 for (i = 0; i < orig->tp.nr_args; i++) { in trace_fprobe_has_same_fprobe()
901 if (i == orig->tp.nr_args) in trace_fprobe_has_same_fprobe()
1444 for (i = 0; i < tf->tp.nr_args; i++) in trace_fprobe_show()
H A Dtrace_eprobe.c86 for (i = 0; i < ep->tp.nr_args; i++) in eprobe_dyn_event_show()
291 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_eprobe_event()
370 for (i = 0; i < tp->nr_args; i++) { in get_eprobe_size()
H A Dtrace_kprobe.c512 for (i = 0; i < tk->tp.nr_args; i++) { in __register_trace_kprobe()
591 for (i = 0; i < orig->tp.nr_args; i++) { in trace_kprobe_has_same_kprobe()
597 if (i == orig->tp.nr_args) in trace_kprobe_has_same_kprobe()
1327 for (i = 0; i < tk->tp.nr_args; i++) in trace_kprobe_show()
1612 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_kprobe_event()
1647 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_kretprobe_event()
H A Dtrace_probe.h276 unsigned int nr_args; member
382 int trace_probe_print_args(struct trace_seq *s, struct probe_arg *args, int nr_args,
H A Dtrace_uprobe.c433 for (i = 0; i < orig->tp.nr_args; i++) { in trace_uprobe_has_same_uprobe()
439 if (i == orig->tp.nr_args) in trace_uprobe_has_same_uprobe()
764 for (i = 0; i < tu->tp.nr_args; i++) in trace_uprobe_show()
1095 if (trace_probe_print_args(s, tu->tp.args, tu->tp.nr_args, data, entry) < 0) in print_uprobe_event()
/linux/arch/x86/include/asm/
H A Dolpc_ofw.h18 extern int __olpc_ofw(const char *name, int nr_args, const void **args, int nr_res,
/linux/kernel/bpf/
H A Dbtf.c4782 u32 nr_args = btf_type_vlen(t), i; in btf_func_proto_log() local
4785 if (!nr_args) { in btf_func_proto_log()
4790 if (nr_args == 1 && !args[0].type) { in btf_func_proto_log()
4799 for (i = 1; i < nr_args - 1; i++) in btf_func_proto_log()
4804 if (nr_args > 1) { in btf_func_proto_log()
4805 const struct btf_param *last_arg = &args[nr_args - 1]; in btf_func_proto_log()
5282 u32 nr_args, i; in btf_func_proto_check() local
5287 nr_args = btf_type_vlen(t); in btf_func_proto_check()
5318 if (!nr_args) in btf_func_proto_check()
5322 if (!args[nr_args - 1].type) { in btf_func_proto_check()
[all …]
H A Dfixups.c2247 int nr_args = btf_type_vlen(prog->aux->attach_func_proto); in bpf_do_misc_fixups() local
2250 insn_buf[0] = BPF_MOV64_IMM(BPF_REG_0, nr_args - 1); in bpf_do_misc_fixups()
2313 int nr_args = btf_type_vlen(prog->aux->attach_func_proto); in bpf_do_misc_fixups() local
2316 insn_buf[0] = BPF_MOV64_IMM(BPF_REG_0, nr_args - 1); in bpf_do_misc_fixups()
H A Dtrampoline.c549 for (i = 0; i < m->nr_args; i++) in bpf_tramp_arena_base()
552 if (i == m->nr_args) in bpf_tramp_arena_base()
/linux/drivers/platform/olpc/
H A Dolpc-xo175-ec.c209 u8 nr_args; member
522 priv->cmd.nr_args = inlen; in olpc_xo175_ec_cmd()
/linux/tools/perf/
H A Dbuiltin-trace.c136 u8 nr_args;
1154 { .name = "clone", .errpid = true, .nr_args = 5,
1231 { .name = "kcmp", .nr_args = 5,
1463 int nr_args;
2049 static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args)
2053 if (nr_args == RAW_SYSCALL_ARGS_NUM && sc->fmt && sc->fmt->nr_args != 0)
2054 nr_args = sc->fmt->nr_args;
2056 sc->arg_fmt = calloc(nr_args, sizeo in syscall_arg_fmt__cmp()
135 u8 nr_args; global() member
1469 int nr_args; global() member
2030 syscall__alloc_arg_fmts(struct syscall * sc,int nr_args) syscall__alloc_arg_fmts() argument
[all...]
/linux/arch/x86/net/
H A Dbpf_jit_comp.c1704 for (i = 0; i < min_t(int, fm->nr_args, MAX_BPF_FUNC_REG_ARGS); i++) { in emit_kfunc_arena_args()
3040 arg_size = m->arg_size[m->nr_args - 1]; in clean_stack_garbage()
3059 for (i = 0; i < min_t(int, m->nr_args, MAX_BPF_FUNC_ARGS); i++) { in get_nr_used_regs()
3111 for (i = 0; i < min_t(int, m->nr_args, MAX_BPF_FUNC_ARGS); i++) { in save_args()
3199 for (i = 0; i < min_t(int, m->nr_args, MAX_BPF_FUNC_ARGS); i++) { in restore_regs()
3410 * its 'struct btf_func_model' will be nr_args=2
3474 int i, ret, nr_regs = m->nr_args, stack_size = 0; in __arch_prepare_bpf_trampoline()
3497 for (i = 0; i < m->nr_args; i++) in __arch_prepare_bpf_trampoline()
/linux/arch/powerpc/net/
H A Dbpf_jit_comp.c844 nr_regs = m->nr_args; in __arch_prepare_bpf_trampoline()
846 for (i = 0; i < m->nr_args; i++) in __arch_prepare_bpf_trampoline()
/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c1092 if (m->nr_args > MAX_BPF_FUNC_ARGS) in __arch_prepare_bpf_trampoline()
1095 for (i = 0; i < m->nr_args; i++) in __arch_prepare_bpf_trampoline()
1846 for (idx = 0; idx < fm->nr_args; idx++) { in bpf_jit_emit_insn()
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c1277 for (i = 0; i < min_t(int, fm->nr_args, MAX_BPF_FUNC_REG_ARGS); i++) { in emit_kfunc_arena_args()
2543 /* verifier ensures m->nr_args <= MAX_BPF_FUNC_ARGS */ in calc_arg_aux()
2544 for (i = 0, nregs = 0; i < m->nr_args; i++) { in calc_arg_aux()
2558 for (; i < m->nr_args; i++) { in calc_arg_aux()
2649 for (i = a->args_in_regs; i < m->nr_args; i++) { in save_args()
/linux/include/uapi/linux/
H A Dsoundcard.h528 char nr_args, nr_returns; member

12