| /linux/io_uring/ |
| H A D | register.c | 42 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 D | rsrc.c | 26 u32 nr_args; member 213 unsigned nr_args) in __io_sqe_files_update() argument 222 if (up->offset + nr_args > ctx->file_table.data.nr) in __io_sqe_files_update() 225 for (done = 0; done < nr_args; done++) { in __io_sqe_files_update() 281 unsigned int nr_args) in __io_sqe_buffers_update() argument 293 if (up->offset + nr_args > ctx->buf_table.nr) in __io_sqe_buffers_update() 296 for (done = 0; done < nr_args; done++) { in __io_sqe_buffers_update() 335 unsigned nr_args) in __io_register_rsrc_update() argument 341 if (check_add_overflow(up->offset, nr_args, &tmp)) in __io_register_rsrc_update() 346 return __io_sqe_files_update(ctx, up, nr_args); in __io_register_rsrc_update() [all …]
|
| H A D | tctx.c | 309 unsigned nr_args) in io_ringfd_register() argument 316 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_register() 326 for (i = 0; i < nr_args; i++) { in io_ringfd_register() 368 unsigned nr_args) in io_ringfd_unregister() argument 375 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_unregister() 380 for (i = 0; i < nr_args; i++) { in io_ringfd_unregister()
|
| H A D | rsrc.h | 80 unsigned int nr_args, u64 __user *tags); 83 unsigned nr_args, u64 __user *tags); 86 unsigned nr_args);
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | kvm_syscalls.h | 19 #define DECLARE_ARGS(nr_args, args...) MAP_ARGS(nr_args, __DECLARE_ARGS, args) argument 20 #define UNPACK_ARGS(nr_args, args...) MAP_ARGS(nr_args, __UNPACK_ARGS, args) argument 26 #define __KVM_SYSCALL_DEFINE(name, nr_args, args...) \ argument 27 static inline void kvm_##name(DECLARE_ARGS(nr_args, args)) \ 31 r = name(UNPACK_ARGS(nr_args, args)); \ 40 #define KVM_SYSCALL_DEFINE(name, nr_args, args...) \ argument 41 static inline long name(DECLARE_ARGS(nr_args, args)) \ 43 return syscall(__NR_##name, UNPACK_ARGS(nr_args, arg [all...] |
| /linux/arch/x86/platform/olpc/ |
| H A D | olpc_ofw.c | 47 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/net/bridge/ |
| H A D | br_ioctl.c | 107 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/tools/bootconfig/scripts/ |
| H A D | xbc.sh | 31 nr_args() { # args function 54 __s=`nr_args $__keys`
|
| /linux/kernel/trace/ |
| H A D | trace_probe.c | 844 earg->size = 2 * tp->nr_args + 1; in __store_entry_arg() 1930 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt() 1947 for (i = 0; i < tp->nr_args; i++) { in __set_print_fmt() 1997 for (i = 0; i < tp->nr_args; i++) { in traceprobe_define_arg_fields() 2050 for (i = 0; i < tp->nr_args; i++) in trace_probe_cleanup() 2100 tp->nr_args = nargs; in trace_probe_init() 2208 if (a->nr_args < b->nr_args) in trace_probe_compare_arg_type() 2209 return a->nr_args + 1; in trace_probe_compare_arg_type() 2210 if (a->nr_args > b->nr_args) in trace_probe_compare_arg_type() 2211 return b->nr_args + 1; in trace_probe_compare_arg_type() [all …]
|
| H A D | trace_probe_tmpl.h | 240 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 D | trace_fprobe.c | 640 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 D | trace_eprobe.c | 86 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 D | trace_probe.h | 265 unsigned int nr_args; member 371 int trace_probe_print_args(struct trace_seq *s, struct probe_arg *args, int nr_args,
|
| H A D | trace_uprobe.c | 433 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() 1091 if (trace_probe_print_args(s, tu->tp.args, tu->tp.nr_args, data, entry) < 0) in print_uprobe_event()
|
| H A D | bpf_trace.c | 1197 u64 nr_args = ((u64 *)ctx)[-1] & 0xFF; in BPF_CALL_3() local 1199 if ((u64) n >= nr_args) in BPF_CALL_3() 1217 u64 nr_args = ((u64 *)ctx)[-1] & 0xFF; in BPF_CALL_2() local 1219 *value = ((u64 *)ctx)[nr_args]; in BPF_CALL_2()
|
| /linux/arch/x86/include/asm/ |
| H A D | olpc_ofw.h | 18 extern int __olpc_ofw(const char *name, int nr_args, const void **args, int nr_res,
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 4686 u16 nr_args = btf_type_vlen(t), i; in btf_func_proto_log() local 4689 if (!nr_args) { in btf_func_proto_log() 4694 if (nr_args == 1 && !args[0].type) { in btf_func_proto_log() 4703 for (i = 1; i < nr_args - 1; i++) in btf_func_proto_log() 4708 if (nr_args > 1) { in btf_func_proto_log() 4709 const struct btf_param *last_arg = &args[nr_args - 1]; in btf_func_proto_log() 5186 u16 nr_args, i; in btf_func_proto_check() local 5191 nr_args = btf_type_vlen(t); in btf_func_proto_check() 5222 if (!nr_args) in btf_func_proto_check() 5226 if (!args[nr_args - 1].type) { in btf_func_proto_check() [all …]
|
| H A D | fixups.c | 2135 int nr_args = btf_type_vlen(prog->aux->attach_func_proto); in bpf_do_misc_fixups() local 2138 insn_buf[0] = BPF_MOV64_IMM(BPF_REG_0, nr_args - 1); in bpf_do_misc_fixups() 2199 int nr_args = btf_type_vlen(prog->aux->attach_func_proto); in bpf_do_misc_fixups() local 2202 insn_buf[0] = BPF_MOV64_IMM(BPF_REG_0, nr_args - 1); in bpf_do_misc_fixups()
|
| /linux/drivers/platform/olpc/ |
| H A D | olpc-xo175-ec.c | 209 u8 nr_args; member 522 priv->cmd.nr_args = inlen; in olpc_xo175_ec_cmd()
|
| /linux/tools/perf/ |
| H A D | builtin-trace.c | 135 u8 nr_args; member 1160 { .name = "clone", .errpid = true, .nr_args = 5, 1237 { .name = "kcmp", .nr_args = 5, 1469 int nr_args; member 2030 static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args) in syscall__alloc_arg_fmts() argument 2034 if (nr_args == RAW_SYSCALL_ARGS_NUM && sc->fmt && sc->fmt->nr_args != 0) in syscall__alloc_arg_fmts() 2035 nr_args = sc->fmt->nr_args; in syscall__alloc_arg_fmts() 2037 sc->arg_fmt = calloc(nr_args, sizeof(*sc->arg_fmt)); in syscall__alloc_arg_fmts() 2041 for (idx = 0; idx < nr_args; ++idx) { in syscall__alloc_arg_fmts() 2046 sc->nr_args = nr_args; in syscall__alloc_arg_fmts() [all …]
|
| /linux/drivers/leds/ |
| H A D | leds-blinkm.c | 115 u8 nr_args; member 308 int arglen = blinkm_cmds[cmd].nr_args; in blinkm_write()
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 2832 arg_size = m->arg_size[m->nr_args - 1]; in clean_stack_garbage() 2851 for (i = 0; i < min_t(int, m->nr_args, MAX_BPF_FUNC_ARGS); i++) { in get_nr_used_regs() 2875 for (i = 0; i < min_t(int, m->nr_args, MAX_BPF_FUNC_ARGS); i++) { in save_args() 2953 for (i = 0; i < min_t(int, m->nr_args, MAX_BPF_FUNC_ARGS); i++) { in restore_regs() 3219 int i, ret, nr_regs = m->nr_args, stack_size = 0; in __arch_prepare_bpf_trampoline() 3240 for (i = 0; i < m->nr_args; i++) { in __arch_prepare_bpf_trampoline()
|
| /linux/arch/powerpc/net/ |
| H A D | bpf_jit_comp.c | 831 nr_regs = m->nr_args; in __arch_prepare_bpf_trampoline() 833 for (i = 0; i < m->nr_args; i++) in __arch_prepare_bpf_trampoline()
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp64.c | 1092 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() 1825 for (idx = 0; idx < fm->nr_args; idx++) { in bpf_jit_emit_insn()
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 1168 for (i = 0; i < m->nr_args; i++) { in build_insn() 1860 if (m->nr_args > MAX_BPF_FUNC_ARGS) in __arch_prepare_bpf_trampoline() 1864 for (i = 0; i < m->nr_args; i++) { in __arch_prepare_bpf_trampoline()
|