Home
last modified time | relevance | path

Searched refs:nargs (Results 1 - 25 of 121) sorted by relevance

12345

/kernel/linux/linux-5.10/arch/powerpc/boot/
H A Doflib.c21 __be32 nargs; /* Number of input arguments. */ member
41 int of_call_prom(const char *service, int nargs, int nret, ...) in of_call_prom() argument
48 args.nargs = cpu_to_be32(nargs); in of_call_prom()
52 for (i = 0; i < nargs; i++) in of_call_prom()
57 args.args[nargs+i] = 0; in of_call_prom()
62 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in of_call_prom()
65 static int of_call_prom_ret(const char *service, int nargs, int nret, in of_call_prom_ret() argument
73 args.nargs = cpu_to_be32(nargs); in of_call_prom_ret()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/boot/
H A Doflib.c21 __be32 nargs; /* Number of input arguments. */ member
41 int of_call_prom(const char *service, int nargs, int nret, ...) in of_call_prom() argument
48 args.nargs = cpu_to_be32(nargs); in of_call_prom()
52 for (i = 0; i < nargs; i++) in of_call_prom()
57 args.args[nargs+i] = 0; in of_call_prom()
62 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in of_call_prom()
65 static int of_call_prom_ret(const char *service, int nargs, int nret, in of_call_prom_ret() argument
73 args.nargs = cpu_to_be32(nargs); in of_call_prom_ret()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/s390x/
H A Ducall.c17 void ucall(uint64_t cmd, int nargs, ...) in ucall() argument
25 nargs = nargs <= UCALL_MAX_ARGS ? nargs : UCALL_MAX_ARGS; in ucall()
27 va_start(va, nargs); in ucall()
28 for (i = 0; i < nargs; ++i) in ucall()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/
H A Ducall.c19 void ucall(uint64_t cmd, int nargs, ...) in ucall() argument
27 nargs = nargs <= UCALL_MAX_ARGS ? nargs : UCALL_MAX_ARGS; in ucall()
29 va_start(va, nargs); in ucall()
30 for (i = 0; i < nargs; ++i) in ucall()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dbpf-prologue.c184 struct probe_trace_arg *args, int nargs) in gen_prologue_fastpath()
188 for (i = 0; i < nargs; i++) { in gen_prologue_fastpath()
243 struct probe_trace_arg *args, int nargs) in gen_prologue_slowpath()
247 for (i = 0; i < nargs; i++) { in gen_prologue_slowpath()
308 for (i = 0; i < nargs; i++) { in gen_prologue_slowpath()
364 int bpf__gen_prologue(struct probe_trace_arg *args, int nargs, in bpf__gen_prologue() argument
385 if (!nargs) { in bpf__gen_prologue()
396 if (nargs > BPF_PROLOGUE_MAX_ARGS) { in bpf__gen_prologue()
398 nargs - BPF_PROLOGUE_MAX_ARGS); in bpf__gen_prologue()
399 nargs in bpf__gen_prologue()
183 gen_prologue_fastpath(struct bpf_insn_pos *pos, struct probe_trace_arg *args, int nargs) gen_prologue_fastpath() argument
242 gen_prologue_slowpath(struct bpf_insn_pos *pos, struct probe_trace_arg *args, int nargs) gen_prologue_slowpath() argument
[all...]
H A Dbpf-prologue.h18 int bpf__gen_prologue(struct probe_trace_arg *args, int nargs,
26 int nargs __maybe_unused, in bpf__gen_prologue()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Drtas.c378 err_args.nargs = cpu_to_be32(2); in __fetch_rtas_last_error()
417 va_rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, in va_rtas_call_unlocked() argument
423 args->nargs = cpu_to_be32(nargs); in va_rtas_call_unlocked()
425 args->rets = &(args->args[nargs]); in va_rtas_call_unlocked()
427 for (i = 0; i < nargs; ++i) in va_rtas_call_unlocked()
436 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, ...) in rtas_call_unlocked() argument
441 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call_unlocked()
445 int rtas_call(int token, int nargs, int nret, int *outputs, ...) in rtas_call() argument
463 va_rtas_call_unlocked(rtas_args, token, nargs, nre in rtas_call()
923 rtas_call_reentrant(int token, int nargs, int nret, int *outputs, ...) rtas_call_reentrant() argument
1073 block_rtas_call(int token, int nargs, struct rtas_args *args) block_rtas_call() argument
1142 block_rtas_call(int token, int nargs, struct rtas_args *args) block_rtas_call() argument
1156 int nargs, nret, token; SYSCALL_DEFINE1() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/aarch64/
H A Ducall.c74 void ucall(uint64_t cmd, int nargs, ...) in ucall() argument
81 nargs = nargs <= UCALL_MAX_ARGS ? nargs : UCALL_MAX_ARGS; in ucall()
83 va_start(va, nargs); in ucall()
84 for (i = 0; i < nargs; ++i) in ucall()
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dtrace.h133 __field(__u32, nargs)
135 __dynamic_array(__u32, inputs, be32_to_cpu(rtas_args->nargs))
139 __entry->nargs = be32_to_cpu(rtas_args->nargs);
141 be32_to_cpu_array(__get_dynamic_array(inputs), rtas_args->args, __entry->nargs);
145 __print_array(__get_dynamic_array(inputs), __entry->nargs, 4)
184 __field(u32, nargs)
191 __entry->nargs = be32_to_cpu(rtas_args->nargs);
196 TP_printk("token=%u nargs
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/syscalls/
H A Drtas_filter.c41 __be32 nargs; member
169 static int rtas_call(const char *name, int nargs, in rtas_call() argument
188 args.nargs = cpu_to_be32(nargs); in rtas_call()
191 for (i = 0; i < nargs; i++) in rtas_call()
204 *(rets[0]) = be32_to_cpu(args.args[nargs]); in rtas_call()
207 *(rets[i]) = args.args[nargs + i]; in rtas_call()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/syscalls/
H A Drtas_filter.c42 __be32 nargs; member
108 static int rtas_call(const char *name, int nargs, in rtas_call() argument
127 args.nargs = cpu_to_be32(nargs); in rtas_call()
130 for (i = 0; i < nargs; i++) in rtas_call()
143 *(rets[0]) = be32_to_cpu(args.args[nargs]); in rtas_call()
146 *(rets[i]) = args.args[nargs + i]; in rtas_call()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/
H A Ducall_common.c117 void ucall(uint64_t cmd, int nargs, ...) in ucall() argument
127 nargs = min(nargs, UCALL_MAX_ARGS); in ucall()
129 va_start(va, nargs); in ucall()
130 for (i = 0; i < nargs; ++i) in ucall()
/kernel/linux/linux-5.10/drivers/input/joystick/
H A Dturbografx.c33 unsigned int nargs; member
38 module_param_array_named(map, tgfx_cfg[0].args, int, &tgfx_cfg[0].nargs, 0);
40 module_param_array_named(map2, tgfx_cfg[1].args, int, &tgfx_cfg[1].nargs, 0);
42 module_param_array_named(map3, tgfx_cfg[2].args, int, &tgfx_cfg[2].nargs, 0);
154 if (tgfx_cfg[port_idx].nargs == 0 || in tgfx_attach()
166 n_devs = tgfx_cfg[port_idx].nargs - 1; in tgfx_attach()
289 if (tgfx_cfg[i].nargs == 0 || tgfx_cfg[i].args[0] < 0) in tgfx_init()
292 if (tgfx_cfg[i].nargs < 2) { in tgfx_init()
/kernel/linux/linux-6.6/drivers/input/joystick/
H A Dturbografx.c30 unsigned int nargs; member
35 module_param_array_named(map, tgfx_cfg[0].args, int, &tgfx_cfg[0].nargs, 0);
37 module_param_array_named(map2, tgfx_cfg[1].args, int, &tgfx_cfg[1].nargs, 0);
39 module_param_array_named(map3, tgfx_cfg[2].args, int, &tgfx_cfg[2].nargs, 0);
151 if (tgfx_cfg[port_idx].nargs == 0 || in tgfx_attach()
163 n_devs = tgfx_cfg[port_idx].nargs - 1; in tgfx_attach()
286 if (tgfx_cfg[i].nargs == 0 || tgfx_cfg[i].args[0] < 0) in tgfx_init()
289 if (tgfx_cfg[i].nargs < 2) { in tgfx_init()
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Drtas.c986 err_args.nargs = cpu_to_be32(2); in __fetch_rtas_last_error()
1026 va_rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, in va_rtas_call_unlocked() argument
1032 args->nargs = cpu_to_be32(nargs); in va_rtas_call_unlocked()
1034 args->rets = &(args->args[nargs]); in va_rtas_call_unlocked()
1036 for (i = 0; i < nargs; ++i) in va_rtas_call_unlocked()
1050 * @nargs: Number of input parameters. Does not include token.
1052 * @....: List of @nargs input parameters.
1062 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, ...) in rtas_call_unlocked() argument
1067 va_rtas_call_unlocked(args, token, nargs, nre in rtas_call_unlocked()
1135 rtas_call(int token, int nargs, int nret, int *outputs, ...) rtas_call() argument
1736 block_rtas_call(int token, int nargs, struct rtas_args *args) block_rtas_call() argument
1822 int nargs, nret, token; SYSCALL_DEFINE1() local
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
H A Domap-secure.c54 * @nargs: Number of valid arguments out of four.
59 u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, u32 arg1, u32 arg2, in omap_secure_dispatcher() argument
65 param[0] = nargs; in omap_secure_dispatcher()
145 * @nargs: Number of valid arguments out of four.
151 * it calling omap_smc3() instead omap_smc2() and param[0] is nargs+1
153 u32 rx51_secure_dispatcher(u32 idx, u32 process, u32 flag, u32 nargs, in rx51_secure_dispatcher() argument
159 param[0] = nargs+1; /* RX-51 needs number of arguments + 1 */ in rx51_secure_dispatcher()
/kernel/linux/linux-6.6/arch/arm/mach-omap2/
H A Domap-secure.c54 * @nargs: Number of valid arguments out of four.
59 u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, u32 arg1, u32 arg2, in omap_secure_dispatcher() argument
70 param[0] = nargs; in omap_secure_dispatcher()
147 * @nargs: Number of valid arguments out of four.
153 * it calling omap_smc3() instead omap_smc2() and param[0] is nargs+1
155 static u32 rx51_secure_dispatcher(u32 idx, u32 process, u32 flag, u32 nargs, in rx51_secure_dispatcher() argument
161 param[0] = nargs+1; /* RX-51 needs number of arguments + 1 */ in rx51_secure_dispatcher()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A Dbook3s_rtas.c24 if (be32_to_cpu(args->nargs) != 3 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_set_xive()
48 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 3) { in kvm_rtas_get_xive()
76 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_int_off()
98 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_int_on()
245 if (be32_to_cpu(args.nargs) >= ARRAY_SIZE(args.args)) { in kvmppc_rtas_hcall()
250 * Each handler must then check for the correct nargs and nret in kvmppc_rtas_hcall()
256 args.rets = &args.args[be32_to_cpu(args.nargs)]; in kvmppc_rtas_hcall()
283 * args pointer or nargs/nret values that would overflow the in kvmppc_rtas_hcall()
/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A Dbook3s_rtas.c24 if (be32_to_cpu(args->nargs) != 3 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_set_xive()
48 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 3) { in kvm_rtas_get_xive()
76 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_int_off()
98 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_int_on()
245 if (be32_to_cpu(args.nargs) >= ARRAY_SIZE(args.args)) { in kvmppc_rtas_hcall()
250 * Each handler must then check for the correct nargs and nret in kvmppc_rtas_hcall()
256 args.rets = &args.args[be32_to_cpu(args.nargs)]; in kvmppc_rtas_hcall()
283 * args pointer or nargs/nret values that would overflow the in kvmppc_rtas_hcall()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_attr_leaf.c906 struct xfs_da_args nargs; in xfs_attr_shortform_to_leaf() local
937 memset((char *)&nargs, 0, sizeof(nargs)); in xfs_attr_shortform_to_leaf()
938 nargs.dp = dp; in xfs_attr_shortform_to_leaf()
939 nargs.geo = args->geo; in xfs_attr_shortform_to_leaf()
940 nargs.total = args->total; in xfs_attr_shortform_to_leaf()
941 nargs.whichfork = XFS_ATTR_FORK; in xfs_attr_shortform_to_leaf()
942 nargs.trans = args->trans; in xfs_attr_shortform_to_leaf()
943 nargs.op_flags = XFS_DA_OP_OKNOENT; in xfs_attr_shortform_to_leaf()
947 nargs in xfs_attr_shortform_to_leaf()
1100 struct xfs_da_args nargs; xfs_attr3_leaf_to_shortform() local
[all...]
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_attr_leaf.c939 struct xfs_da_args nargs; in xfs_attr_shortform_to_leaf() local
970 memset((char *)&nargs, 0, sizeof(nargs)); in xfs_attr_shortform_to_leaf()
971 nargs.dp = dp; in xfs_attr_shortform_to_leaf()
972 nargs.geo = args->geo; in xfs_attr_shortform_to_leaf()
973 nargs.total = args->total; in xfs_attr_shortform_to_leaf()
974 nargs.whichfork = XFS_ATTR_FORK; in xfs_attr_shortform_to_leaf()
975 nargs.trans = args->trans; in xfs_attr_shortform_to_leaf()
976 nargs.op_flags = XFS_DA_OP_OKNOENT; in xfs_attr_shortform_to_leaf()
980 nargs in xfs_attr_shortform_to_leaf()
1132 struct xfs_da_args nargs; xfs_attr3_leaf_to_shortform() local
[all...]
/kernel/linux/linux-5.10/include/trace/events/
H A Dxen.h37 TP_PROTO(struct multicall_entry *mc, unsigned nargs),
38 TP_ARGS(mc, nargs),
41 __field(unsigned int, nargs)
45 __entry->nargs = nargs;
46 memcpy(__entry->args, mc->args, sizeof(ulong) * nargs);
47 memset(__entry->args + nargs, 0, sizeof(ulong) * (6 - nargs));
/kernel/linux/linux-5.10/include/linux/
H A Daudit.h395 extern int __audit_socketcall(int nargs, unsigned long *args);
434 static inline int audit_socketcall(int nargs, unsigned long *args) in audit_socketcall() argument
437 return __audit_socketcall(nargs, args); in audit_socketcall()
441 static inline int audit_socketcall_compat(int nargs, u32 *args) in audit_socketcall_compat() argument
449 for (i = 0; i < nargs; i++) in audit_socketcall_compat()
451 return __audit_socketcall(nargs, a); in audit_socketcall_compat()
617 static inline int audit_socketcall(int nargs, unsigned long *args) in audit_socketcall() argument
622 static inline int audit_socketcall_compat(int nargs, u32 *args) in audit_socketcall_compat() argument
/kernel/linux/linux-6.6/include/trace/events/
H A Dxen.h37 TP_PROTO(struct multicall_entry *mc, unsigned nargs),
38 TP_ARGS(mc, nargs),
41 __field(unsigned int, nargs)
45 __entry->nargs = nargs;
46 memcpy(__entry->args, mc->args, sizeof(ulong) * nargs);
47 memset(__entry->args + nargs, 0, sizeof(ulong) * (6 - nargs));
/kernel/linux/linux-6.6/tools/perf/util/
H A Dbpf-prologue.h17 int bpf__gen_prologue(struct probe_trace_arg *args, int nargs,
26 int nargs __maybe_unused, in bpf__gen_prologue()

Completed in 17 milliseconds

12345