| /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() 168 io_register_restrictions(struct io_ring_ctx * ctx,void __user * arg,unsigned int nr_args) io_register_restrictions() argument 201 io_register_restrictions_task(void __user * arg,unsigned int nr_args) io_register_restrictions_task() argument 242 io_register_bpf_filter_task(void __user * arg,unsigned int nr_args) io_register_bpf_filter_task() argument 753 __io_uring_register(struct io_ring_ctx * ctx,unsigned opcode,void __user * arg,unsigned nr_args) __io_uring_register() argument 989 io_uring_register_send_msg_ring(void __user * arg,unsigned int nr_args) io_uring_register_send_msg_ring() argument 1011 io_uring_register_blind(unsigned int opcode,void __user * arg,unsigned int nr_args) io_uring_register_blind() argument 1027 SYSCALL_DEFINE4(io_uring_register,unsigned int,fd,unsigned int,opcode,void __user *,arg,unsigned int,nr_args) SYSCALL_DEFINE4() argument [all...] |
| H A D | tctx.c | 325 unsigned nr_args) in io_ringfd_register() 332 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_register() 342 for (i = 0; i < nr_args; i++) { in io_ringfd_register() 384 unsigned nr_args) in io_ringfd_unregister() 391 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_unregister() 396 for (i = 0; i < nr_args; i++) { in io_ringfd_unregister() 319 io_ringfd_register(struct io_ring_ctx * ctx,void __user * __arg,unsigned nr_args) io_ringfd_register() argument 378 io_ringfd_unregister(struct io_ring_ctx * ctx,void __user * __arg,unsigned nr_args) io_ringfd_unregister() argument
|
| H A D | tctx.h | 19 unsigned nr_args); 21 unsigned nr_args);
|
| H A D | query.c | 128 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 D | kvm_syscalls.h | 31 #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 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/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 | 1206 earg = kzalloc_flex(*earg, code, 2 * tp->nr_args + 1); in __store_entry_arg() 1209 earg->size = 2 * tp->nr_args + 1; in __store_entry_arg() 2538 for (i = 0; i < tp->nr_args; i++) { in traceprobe_set_print_fmt() 2555 for (i = 0; i < tp->nr_args; i++) { in traceprobe_define_arg_fields() 2626 if (tp->nr_args) { in trace_probe_event_free() 2627 tpe->field_strings = kcalloc(tp->nr_args * 2, sizeof(char *), in trace_probe_event_free() 2634 for (i = 0; i < tp->nr_args; i++) { in trace_probe_append() 2704 for (i = 0; i < tp->nr_args; i++) in trace_probe_init() 2753 tp->nr_args = nargs; in trace_probe_register_event_call() 2861 if (a->nr_args < in trace_probe_create() 2865 trace_probe_print_args(struct trace_seq * s,struct probe_arg * args,int nr_args,u8 * data,void * field) trace_probe_print_args() argument [all...] |
| H A D | trace_probe_tmpl.h | 328 for (i = 0; i < tp->nr_args; i++) { 351 for (i = 0; i < tp->nr_args; i++) {
|
| H A D | trace_fprobe.c | 636 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() 892 * trace_probe_compare_arg_type() ensured that nr_args and in trace_fprobe_has_same_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() 1447 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() 295 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_eprobe_event() 374 for (i = 0; i < tp->nr_args; i++) { in get_eprobe_size()
|
| H A D | trace_kprobe.c | 512 for (i = 0; i < tk->tp.nr_args; i++) { in __register_trace_kprobe() 588 * trace_probe_compare_arg_type() ensured that nr_args and in trace_kprobe_has_same_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 D | trace_probe.h | 276 unsigned int nr_args; member 382 int trace_probe_print_args(struct trace_seq *s, struct probe_arg *args, int nr_args,
|
| H A D | trace_uprobe.c | 434 * trace_probe_compare_arg_type() ensured that nr_args and in trace_uprobe_has_same_uprobe() 437 for (i = 0; i < orig->tp.nr_args; i++) { in trace_uprobe_has_same_uprobe() 443 if (i == orig->tp.nr_args) in trace_uprobe_has_same_uprobe() 801 for (i = 0; i < tu->tp.nr_args; i++) in probes_open() 1132 if (trace_probe_print_args(s, tu->tp.args, tu->tp.nr_args, data, entry) < 0) in __probe_event_disable()
|
| /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 | 5191 u32 nr_args = btf_type_vlen(t), i; in btf_decl_tag_check_meta() 5194 if (!nr_args) { in btf_decl_tag_check_meta() 5199 if (nr_args == 1 && !args[0].type) { in btf_decl_tag_check_meta() 5208 for (i = 1; i < nr_args - 1; i++) in btf_decl_tag_check_meta() 5213 if (nr_args > 1) { in btf_decl_tag_check_meta() 5214 const struct btf_param *last_arg = &args[nr_args - 1]; 5706 u32 nr_args, i; in btf_check_sec_info() 5711 nr_args = btf_type_vlen(t); in btf_check_sec_info() 5742 if (!nr_args) in btf_check_sec_info() 5746 if (!args[nr_args in btf_check_sec_info() 4782 u32 nr_args = btf_type_vlen(t), i; btf_func_proto_log() local 5282 u32 nr_args, i; btf_func_proto_check() local 5377 u32 nr_args, i; btf_func_check() local 6646 u32 offset = 0, nr_args; btf_ctx_arg_idx() local 6918 u32 nr_args, arg; btf_ctx_access() local 8839 u32 nr_args; btf_check_iter_kfuncs() local 9317 u32 nr_args, i; btf_check_dtor_kfuncs() local [all...] |
| H A D | fixups.c | 2575 int nr_args = btf_type_vlen(prog->aux->attach_func_proto); in inline_bpf_loop() 2578 insn_buf[0] = BPF_MOV64_IMM(BPF_REG_0, nr_args - 1); in inline_bpf_loop() 2581 /* Load nr_args from ctx - 8 */ in inline_bpf_loop() 2613 /* Load nr_args from ctx - 8 */ in bpf_optimize_bpf_loop() 2641 int nr_args = btf_type_vlen(prog->aux->attach_func_proto); in bpf_optimize_bpf_loop() 2644 insn_buf[0] = BPF_MOV64_IMM(BPF_REG_0, nr_args - 1); in bpf_optimize_bpf_loop() 2647 /* Load nr_args from ctx - 8 */ in bpf_optimize_bpf_loop() 2247 int nr_args = btf_type_vlen(prog->aux->attach_func_proto); bpf_do_misc_fixups() local 2313 int nr_args = btf_type_vlen(prog->aux->attach_func_proto); bpf_do_misc_fixups() local
|
| H A D | trampoline.c | 542 for (i = 0; i < m->nr_args; i++) in bpf_tramp_arena_base() 545 if (i == m->nr_args) in bpf_tramp_arena_base()
|
| /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 | 138 u8 nr_args; 1271 { .name = "clone", .errpid = true, .nr_args = 5, 1348 { .name = "kcmp", .nr_args = 5, 1580 int nr_args; in delete_syscall_stats() 2174 static int syscall__alloc_arg_fmts(struct syscall *sc, int nr_args) in syscall__read_info() 2178 if (nr_args == RAW_SYSCALL_ARGS_NUM && sc->fmt && sc->fmt->nr_args != 0) in syscall__read_info() 2179 nr_args = sc->fmt->nr_args; in syscall__read_info() 2181 sc->arg_fmt = calloc(nr_args, sizeo in syscall__read_info() 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/s390/net/ |
| H A D | bpf_jit_comp.c | 1869 for (j = 0; j < m->nr_args; j++) { in bpf_jit_insn() 2726 nr_reg_args = min_t(int, m->nr_args, MAX_NR_REG_ARGS); in __arch_prepare_bpf_trampoline() 2727 nr_stack_args = m->nr_args - nr_reg_args; in __arch_prepare_bpf_trampoline() 2747 for (i = 0; i < m->nr_args; i++) { in __arch_prepare_bpf_trampoline() 2805 for (i = 0, j = 0; i < m->nr_args; i++) { in __arch_prepare_bpf_trampoline() 2857 * arg_cnt = m->nr_args; in __arch_prepare_bpf_trampoline()
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 2401 for (i = 0, slot = 0; i < fm->nr_args; i++) { in do_jit() 3917 arg_size = m->arg_size[m->nr_args - 1]; in cmp_ips() 3985 for (i = 0, slot = 0; i < m->nr_args; i++) { in bpf_int_jit_compile() 4279 * its 'struct btf_func_model' will be nr_args=2 in bpf_arch_poke_desc_update()
|
| /linux/arch/powerpc/net/ |
| H A D | bpf_jit_comp.c | 891 nr_regs = m->nr_args; in __arch_prepare_bpf_trampoline() 893 for (i = 0; i < m->nr_args; i++) in __arch_prepare_bpf_trampoline()
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp64.c | 1131 if (m->nr_args > MAX_BPF_FUNC_ARGS) in __arch_prepare_bpf_trampoline() 1134 for (i = 0; i < m->nr_args; i++) in __arch_prepare_bpf_trampoline() 1895 for (idx = 0; idx < fm->nr_args; idx++) { in bpf_jit_emit_insn()
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 1360 for (i = 0, slot = 0; i < fm->nr_args; i++) { in build_insn() 2735 /* verifier ensures m->nr_args <= MAX_BPF_FUNC_ARGS */ in prepare_trampoline() 2736 for (i = 0, slot = 0; i < m->nr_args; i++) { in prepare_trampoline() 2749 for (; i < m->nr_args; i++) in prepare_trampoline() 2837 for (i = a->args_in_regs; i < m->nr_args; i++) { in prepare_trampoline()
|