Home
last modified time | relevance | path

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

12

/linux/io_uring/
H A Dregister.c41 unsigned nr_args) in io_probe() argument
47 if (nr_args > IORING_OP_LAST) in io_probe()
48 nr_args = IORING_OP_LAST; in io_probe()
50 size = struct_size(p, ops, nr_args); in io_probe()
60 for (i = 0; i < nr_args; i++) { in io_probe()
106 static __cold int io_parse_restrictions(void __user *arg, unsigned int nr_args, in io_parse_restrictions() argument
113 if (!arg || nr_args > IORING_MAX_RESTRICTIONS) in io_parse_restrictions()
116 size = array_size(nr_args, sizeof(*res)); in io_parse_restrictions()
126 for (i = 0; i < nr_args; i++) { in io_parse_restrictions()
157 void __user *arg, unsigned int nr_args) in io_register_restrictions() argument
[all …]
H A Dtctx.c264 unsigned nr_args) in io_ringfd_register() argument
271 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_register()
281 for (i = 0; i < nr_args; i++) { in io_ringfd_register()
323 unsigned nr_args) in io_ringfd_unregister() argument
330 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_unregister()
335 for (i = 0; i < nr_args; i++) { in io_ringfd_unregister()
H A Drsrc.c26 u32 nr_args; member
226 unsigned nr_args) in __io_sqe_files_update() argument
235 if (up->offset + nr_args > ctx->file_table.data.nr) in __io_sqe_files_update()
238 for (done = 0; done < nr_args; done++) { in __io_sqe_files_update()
291 unsigned int nr_args) in __io_sqe_buffers_update() argument
303 if (up->offset + nr_args > ctx->buf_table.nr) in __io_sqe_buffers_update()
306 for (done = 0; done < nr_args; done++) { in __io_sqe_buffers_update()
348 unsigned nr_args) in __io_register_rsrc_update() argument
354 if (check_add_overflow(up->offset, nr_args, &tmp)) in __io_register_rsrc_update()
359 return __io_sqe_files_update(ctx, up, nr_args); in __io_register_rsrc_update()
[all …]
H A Dtctx.h18 unsigned nr_args);
20 unsigned nr_args);
H A Drsrc.h76 unsigned int nr_args, u64 __user *tags);
79 unsigned nr_args, u64 __user *tags);
82 unsigned nr_args);
H A Dquery.c74 int io_query(struct io_ring_ctx *ctx, void __user *arg, unsigned nr_args) in io_query() argument
82 if (nr_args) in io_query()
H A Dquery.h7 int io_query(struct io_ring_ctx *ctx, void __user *arg, unsigned nr_args);
/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/net/bridge/
H A 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/kernel/trace/
H A Dtrace_probe.c843 earg->size = 2 * tp->nr_args + 1; in __store_entry_arg()
1924 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
1941 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt()
1991 for (i = 0; i < tp->nr_args; i++) { in traceprobe_define_arg_fields()
2044 for (i = 0; i < tp->nr_args; i++) in trace_probe_cleanup()
2094 tp->nr_args = nargs; in trace_probe_init()
2202 if (a->nr_args < b->nr_args) in trace_probe_compare_arg_type()
2203 return a->nr_args + 1; in trace_probe_compare_arg_type()
2204 if (a->nr_args > b->nr_args) in trace_probe_compare_arg_type()
2205 return b->nr_args + 1; in trace_probe_compare_arg_type()
[all …]
H A Dtrace_probe_tmpl.h240 for (i = 0; i < tp->nr_args; i++) { in __get_data_size()
263 for (i = 0; i < tp->nr_args; i++) { in store_trace_args()
H A Dtrace_fprobe.c640 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_fentry_event()
675 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_fexit_event()
830 for (i = 0; i < tf->tp.nr_args; i++) { in __register_trace_fprobe()
899 for (i = 0; i < orig->tp.nr_args; i++) { in trace_fprobe_has_same_fprobe()
905 if (i == orig->tp.nr_args) in trace_fprobe_has_same_fprobe()
1448 for (i = 0; i < tf->tp.nr_args; i++) in trace_fprobe_show()
H A Dtrace_eprobe.c83 for (i = 0; i < ep->tp.nr_args; i++) in eprobe_dyn_event_show()
288 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_eprobe_event()
367 for (i = 0; i < tp->nr_args; i++) { in get_eprobe_size()
H A Dtrace_probe.h264 unsigned int nr_args; member
370 int trace_probe_print_args(struct trace_seq *s, struct probe_arg *args, int nr_args,
H A Dtrace_kprobe.c502 for (i = 0; i < tk->tp.nr_args; i++) { in __register_trace_kprobe()
581 for (i = 0; i < orig->tp.nr_args; i++) { in trace_kprobe_has_same_kprobe()
587 if (i == orig->tp.nr_args) in trace_kprobe_has_same_kprobe()
1309 for (i = 0; i < tk->tp.nr_args; i++) in trace_kprobe_show()
1592 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_kprobe_event()
1627 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_kretprobe_event()
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()
782 for (i = 0; i < tu->tp.nr_args; i++) in trace_uprobe_show()
1109 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.c4559 u16 nr_args = btf_type_vlen(t), i; in btf_func_proto_log() local
4562 if (!nr_args) { in btf_func_proto_log()
4567 if (nr_args == 1 && !args[0].type) { in btf_func_proto_log()
4576 for (i = 1; i < nr_args - 1; i++) in btf_func_proto_log()
4581 if (nr_args > 1) { in btf_func_proto_log()
4582 const struct btf_param *last_arg = &args[nr_args - 1]; in btf_func_proto_log()
5059 u16 nr_args, i; in btf_func_proto_check() local
5064 nr_args = btf_type_vlen(t); in btf_func_proto_check()
5095 if (!nr_args) in btf_func_proto_check()
5099 if (!args[nr_args - 1].type) { in btf_func_proto_check()
[all …]
/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; member
1166 { .name = "clone", .errpid = true, .nr_args = 5,
1241 { .name = "kcmp", .nr_args = 5,
1473 int nr_args; member
2026 static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args) in syscall__alloc_arg_fmts() argument
2030 if (nr_args == RAW_SYSCALL_ARGS_NUM && sc->fmt && sc->fmt->nr_args != 0) in syscall__alloc_arg_fmts()
2031 nr_args = sc->fmt->nr_args; in syscall__alloc_arg_fmts()
2033 sc->arg_fmt = calloc(nr_args, sizeof(*sc->arg_fmt)); in syscall__alloc_arg_fmts()
2037 for (idx = 0; idx < nr_args; ++idx) { in syscall__alloc_arg_fmts()
2042 sc->nr_args = nr_args; in syscall__alloc_arg_fmts()
[all …]
/linux/drivers/leds/
H A Dleds-blinkm.c115 u8 nr_args; member
308 int arglen = blinkm_cmds[cmd].nr_args; in blinkm_write()
/linux/arch/loongarch/net/
H A Dbpf_jit.c1523 if (m->nr_args > LOONGARCH_MAX_REG_ARGS) in __arch_prepare_bpf_trampoline()
1527 for (i = 0; i < m->nr_args; i++) { in __arch_prepare_bpf_trampoline()
1545 nargs = m->nr_args; in __arch_prepare_bpf_trampoline()
1650 restore_args(ctx, m->nr_args, args_off); in __arch_prepare_bpf_trampoline()
1686 restore_args(ctx, m->nr_args, args_off); in __arch_prepare_bpf_trampoline()
/linux/drivers/md/
H A Ddm-mpath.c996 unsigned int i, nr_selector_args, nr_args; in parse_priority_group() local
1028 nr_args = 1 + nr_selector_args; in parse_priority_group()
1033 if (as->argc < nr_args) { in parse_priority_group()
1039 path_args.argc = nr_args; in parse_priority_group()
1050 dm_consume_args(as, nr_args); in parse_priority_group()
/linux/arch/s390/net/
H A Dbpf_jit_comp.c1801 for (j = 0; j < m->nr_args; j++) { in bpf_jit_insn()
2618 nr_reg_args = min_t(int, m->nr_args, MAX_NR_REG_ARGS); in __arch_prepare_bpf_trampoline()
2619 nr_stack_args = m->nr_args - nr_reg_args; in __arch_prepare_bpf_trampoline()
2637 for (i = 0; i < m->nr_args; i++) { in __arch_prepare_bpf_trampoline()
2691 for (i = 0, j = 0; i < m->nr_args; i++) { in __arch_prepare_bpf_trampoline()

12