Home
last modified time | relevance | path

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

12

/Linux-v6.1/io_uring/
Drsrc.c22 u32 nr_args; member
435 unsigned nr_args) in __io_sqe_files_update() argument
448 if (up->offset + nr_args > ctx->nr_user_files) in __io_sqe_files_update()
451 for (done = 0; done < nr_args; done++) { in __io_sqe_files_update()
515 unsigned int nr_args) in __io_sqe_buffers_update() argument
526 if (up->offset + nr_args > ctx->nr_user_bufs) in __io_sqe_buffers_update()
529 for (done = 0; done < nr_args; done++) { in __io_sqe_buffers_update()
575 unsigned nr_args) in __io_register_rsrc_update() argument
580 if (check_add_overflow(up->offset, nr_args, &tmp)) in __io_register_rsrc_update()
588 return __io_sqe_files_update(ctx, up, nr_args); in __io_register_rsrc_update()
[all …]
Dtctx.c245 unsigned nr_args) in io_ringfd_register() argument
252 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_register()
262 for (i = 0; i < nr_args; i++) { in io_ringfd_register()
304 unsigned nr_args) in io_ringfd_unregister() argument
311 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_unregister()
316 for (i = 0; i < nr_args; i++) { in io_ringfd_unregister()
Dtctx.h18 unsigned nr_args);
20 unsigned nr_args);
Dio_uring.c3611 unsigned nr_args) in io_probe() argument
3617 size = struct_size(p, ops, nr_args); in io_probe()
3632 if (nr_args > IORING_OP_LAST) in io_probe()
3633 nr_args = IORING_OP_LAST; in io_probe()
3635 for (i = 0; i < nr_args; i++) { in io_probe()
3668 void __user *arg, unsigned int nr_args) in io_register_restrictions() argument
3682 if (!arg || nr_args > IORING_MAX_RESTRICTIONS) in io_register_restrictions()
3685 size = array_size(nr_args, sizeof(*res)); in io_register_restrictions()
3695 for (i = 0; i < nr_args; i++) { in io_register_restrictions()
3883 void __user *arg, unsigned nr_args) in __io_uring_register() argument
[all …]
Drsrc.h74 unsigned int nr_args, u64 __user *tags);
78 unsigned nr_args, u64 __user *tags);
103 unsigned nr_args);
/Linux-v6.1/arch/x86/platform/olpc/
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-v6.1/tools/io_uring/
Dsyscall.c37 unsigned int nr_args) in io_uring_register() argument
39 return syscall(__NR_io_uring_register, fd, opcode, arg, nr_args); in io_uring_register()
Dliburing.h59 unsigned int nr_args);
/Linux-v6.1/tools/bootconfig/scripts/
Dxbc.sh31 nr_args() { # args function
54 __s=`nr_args $__keys`
/Linux-v6.1/net/bridge/
Dbr_ioctl.c107 static int br_dev_read_uargs(unsigned long *args, size_t nr_args, in br_dev_read_uargs() argument
112 if (nr_args < 2 || nr_args > BR_UARGS_MAX) in br_dev_read_uargs()
119 ret = copy_from_user(cargs, data, nr_args * sizeof(*cargs)); in br_dev_read_uargs()
123 for (i = 0; i < nr_args; ++i) in br_dev_read_uargs()
128 ret = copy_from_user(args, data, nr_args * sizeof(*args)); in br_dev_read_uargs()
/Linux-v6.1/kernel/trace/
Dtrace_probe.c788 tp->nr_args++; in traceprobe_parse_probe_arg()
902 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
919 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
971 for (i = 0; i < tp->nr_args; i++) { in traceprobe_define_arg_fields()
1024 for (i = 0; i < tp->nr_args; i++) in trace_probe_cleanup()
1171 if (a->nr_args < b->nr_args) in trace_probe_compare_arg_type()
1172 return a->nr_args + 1; in trace_probe_compare_arg_type()
1173 if (a->nr_args > b->nr_args) in trace_probe_compare_arg_type()
1174 return b->nr_args + 1; in trace_probe_compare_arg_type()
1176 for (i = 0; i < a->nr_args; i++) { in trace_probe_compare_arg_type()
[all …]
Dtrace_probe_tmpl.h177 for (i = 0; i < tp->nr_args; i++) { in __get_data_size()
200 for (i = 0; i < tp->nr_args; i++) { in store_trace_args()
217 print_probe_args(struct trace_seq *s, struct probe_arg *args, int nr_args, in print_probe_args() argument
223 for (i = 0; i < nr_args; i++) { in print_probe_args()
Dtrace_kprobe.c495 for (i = 0; i < tk->tp.nr_args; i++) { in __register_trace_kprobe()
574 for (i = 0; i < orig->tp.nr_args; i++) { in trace_kprobe_has_same_kprobe()
580 if (i == orig->tp.nr_args) in trace_kprobe_has_same_kprobe()
1117 for (i = 0; i < tk->tp.nr_args; i++) in trace_kprobe_show()
1429 if (print_probe_args(s, tp->args, tp->nr_args, in print_kprobe_event()
1464 if (print_probe_args(s, tp->args, tp->nr_args, in print_kretprobe_event()
Dtrace_eprobe.c78 for (i = 0; i < ep->tp.nr_args; i++) in eprobe_dyn_event_show()
314 if (print_probe_args(s, tp->args, tp->nr_args, in print_eprobe_event()
387 for (i = 0; i < tp->nr_args; i++) { in get_eprobe_size()
Dtrace_uprobe.c427 for (i = 0; i < orig->tp.nr_args; i++) { in trace_uprobe_has_same_uprobe()
433 if (i == orig->tp.nr_args) in trace_uprobe_has_same_uprobe()
759 for (i = 0; i < tu->tp.nr_args; i++) in trace_uprobe_show()
1044 if (print_probe_args(s, tu->tp.args, tu->tp.nr_args, data, entry) < 0) in print_uprobe_event()
Dtrace_probe.h246 unsigned int nr_args; member
Dbpf_trace.c1163 u64 nr_args = ((u64 *)ctx)[-1]; in BPF_CALL_3() local
1165 if ((u64) n >= nr_args) in BPF_CALL_3()
1182 u64 nr_args = ((u64 *)ctx)[-1]; in BPF_CALL_2() local
1184 *value = ((u64 *)ctx)[nr_args]; in BPF_CALL_2()
/Linux-v6.1/arch/x86/include/asm/
Dolpc_ofw.h18 extern int __olpc_ofw(const char *name, int nr_args, const void **args, int nr_res,
/Linux-v6.1/arch/x86/net/
Dbpf_jit_comp.c1753 static void save_regs(const struct btf_func_model *m, u8 **prog, int nr_args, in save_regs() argument
1762 for (i = 0, j = 0; i < min(nr_args, 6); i++) { in save_regs()
1782 static void restore_regs(const struct btf_func_model *m, u8 **prog, int nr_args, in restore_regs() argument
1792 for (i = 0, j = 0; i < min(nr_args, 6); i++) { in restore_regs()
2049 int ret, i, nr_args = m->nr_args, extra_nregs = 0; in arch_prepare_bpf_trampoline() local
2050 int regs_off, ip_off, args_off, stack_size = nr_args * 8, run_ctx_off; in arch_prepare_bpf_trampoline()
2060 if (nr_args > 6) in arch_prepare_bpf_trampoline()
2067 if (nr_args + extra_nregs > 6) in arch_prepare_bpf_trampoline()
2130 emit_mov_imm64(&prog, BPF_REG_0, 0, (u32) nr_args + extra_nregs); in arch_prepare_bpf_trampoline()
2142 save_regs(m, &prog, nr_args, regs_off); in arch_prepare_bpf_trampoline()
[all …]
/Linux-v6.1/kernel/bpf/
Dbtf.c3918 u16 nr_args = btf_type_vlen(t), i; in btf_func_proto_log() local
3921 if (!nr_args) { in btf_func_proto_log()
3926 if (nr_args == 1 && !args[0].type) { in btf_func_proto_log()
3935 for (i = 1; i < nr_args - 1; i++) in btf_func_proto_log()
3940 if (nr_args > 1) { in btf_func_proto_log()
3941 const struct btf_param *last_arg = &args[nr_args - 1]; in btf_func_proto_log()
4422 u16 nr_args, i; in btf_func_proto_check() local
4427 nr_args = btf_type_vlen(t); in btf_func_proto_check()
4458 if (!nr_args) in btf_func_proto_check()
4462 if (!args[nr_args - 1].type) { in btf_func_proto_check()
[all …]
/Linux-v6.1/tools/perf/
Dbuiltin-trace.c112 u8 nr_args; member
927 { .name = "clone", .errpid = true, .nr_args = 5,
994 { .name = "kcmp", .nr_args = 5,
1207 int nr_args; member
1657 static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args) in syscall__alloc_arg_fmts() argument
1661 if (nr_args == 6 && sc->fmt && sc->fmt->nr_args != 0) in syscall__alloc_arg_fmts()
1662 nr_args = sc->fmt->nr_args; in syscall__alloc_arg_fmts()
1664 sc->arg_fmt = calloc(nr_args, sizeof(*sc->arg_fmt)); in syscall__alloc_arg_fmts()
1668 for (idx = 0; idx < nr_args; ++idx) { in syscall__alloc_arg_fmts()
1673 sc->nr_args = nr_args; in syscall__alloc_arg_fmts()
[all …]
/Linux-v6.1/drivers/platform/olpc/
Dolpc-xo175-ec.c209 u8 nr_args; member
522 priv->cmd.nr_args = inlen; in olpc_xo175_ec_cmd()
/Linux-v6.1/drivers/leds/
Dleds-blinkm.c104 u8 nr_args; member
297 int arglen = blinkm_cmds[cmd].nr_args; in blinkm_write()
/Linux-v6.1/drivers/md/
Ddm-mpath.c986 unsigned i, nr_selector_args, nr_args; in parse_priority_group() local
1018 nr_args = 1 + nr_selector_args; in parse_priority_group()
1023 if (as->argc < nr_args) { in parse_priority_group()
1029 path_args.argc = nr_args; in parse_priority_group()
1040 dm_consume_args(as, nr_args); in parse_priority_group()
/Linux-v6.1/tools/lib/traceevent/
Devent-parse.c101 int nr_args; member
3035 for (i = 0; i < func->nr_args; i++) { in process_func_handler()
3044 if (i < (func->nr_args - 1)) { in process_func_handler()
3048 func->name, func->nr_args, in process_func_handler()
3056 func->name, func->nr_args, event->name); in process_func_handler()
4259 if (!func_handle->nr_args) { in process_defined_func()
4268 args = malloc(sizeof(*args) * func_handle->nr_args); in process_defined_func()
4272 for (i = 0; i < func_handle->nr_args; i++) { in process_defined_func()
7261 func_handle->nr_args++; in tep_register_print_function()

12