Home
last modified time | relevance | path

Searched refs:nargs (Results 1 – 25 of 56) sorted by relevance

123

/linux/arch/powerpc/boot/
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()
73 args.nargs = cpu_to_be32(nargs); in of_call_prom_ret()
77 for (i = 0; i < nargs; i++) in of_call_prom_ret()
82 args.args[nargs+i] = 0; in of_call_prom_ret()
89 rets[i-1] = be32_to_cpu(args.args[nargs+i]); in of_call_prom_ret()
[all …]
/linux/tools/perf/util/
A Dbpf-prologue.c184 struct probe_trace_arg *args, int nargs) in gen_prologue_fastpath() argument
188 for (i = 0; i < nargs; i++) { in gen_prologue_fastpath()
243 struct probe_trace_arg *args, int nargs) in gen_prologue_slowpath() argument
247 for (i = 0; i < nargs; i++) { in gen_prologue_slowpath()
308 for (i = 0; i < nargs; i++) { in gen_prologue_slowpath()
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 = BPF_PROLOGUE_MAX_ARGS; in bpf__gen_prologue()
403 for (i = 0; i < nargs; i++) { in bpf__gen_prologue()
[all …]
A Dbpf-prologue.h18 int bpf__gen_prologue(struct probe_trace_arg *args, int nargs,
26 int nargs __maybe_unused, in bpf__gen_prologue()
A Dprobe-event.c1783 pev->nargs = argc - 1; in parse_perf_probe_command()
1933 tev->nargs = argc - 2; in parse_probe_trace_command()
2304 pev->nargs = tev->nargs; in convert_to_perf_probe_event()
2349 pev->nargs = 0; in clear_perf_probe_event()
2414 dst->nargs = src->nargs; in perf_probe_event__copy()
2448 tev->nargs = 0; in clear_probe_trace_event()
2585 if (!ret && pev->nargs > 0) { in perf_probe_event__sprintf()
3142 tev->nargs = pev->nargs; in find_probe_trace_events_from_map()
3143 if (tev->nargs) { in find_probe_trace_events_from_map()
3145 tev->nargs); in find_probe_trace_events_from_map()
[all …]
A Dprobe-finder.c1273 int nargs; member
1291 if (vf->args[vf->nargs].var == NULL) { in copy_variables_cb()
1295 pr_debug(" %s", vf->args[vf->nargs].var); in copy_variables_cb()
1296 vf->nargs++; in copy_variables_cb()
1315 for (i = 0; i < pf->pev->nargs; i++) { in expand_probe_args()
1326 vf.nargs = n; in expand_probe_args()
1330 pr_debug(" (%d)\n", vf.nargs - n); in expand_probe_args()
1333 n = vf.nargs; in expand_probe_args()
1401 tev->nargs = ret; in add_probe_trace_event()
1409 for (i = 0; i < tev->nargs; i++) { in add_probe_trace_event()
[all …]
A Dprobe-event.h60 int nargs; /* Number of args */ member
98 int nargs; /* Number of arguments */ member
/linux/tools/testing/selftests/kvm/lib/s390x/
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()
/linux/tools/testing/selftests/kvm/lib/x86_64/
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()
/linux/arch/powerpc/kernel/
A Drtas.c386 err_args.nargs = cpu_to_be32(2); in __fetch_rtas_last_error()
431 args->nargs = cpu_to_be32(nargs); in va_rtas_call_unlocked()
433 args->rets = &(args->args[nargs]); in va_rtas_call_unlocked()
435 for (i = 0; i < nargs; ++i) in va_rtas_call_unlocked()
1058 token, nargs, current->comm); in block_rtas_call()
1090 int nargs, nret, token; in SYSCALL_DEFINE1() local
1101 nargs = be32_to_cpu(args.nargs); in SYSCALL_DEFINE1()
1105 if (nargs >= ARRAY_SIZE(args.args) in SYSCALL_DEFINE1()
1118 args.rets = &args.args[nargs]; in SYSCALL_DEFINE1()
1167 if (copy_to_user(uargs->args + nargs, in SYSCALL_DEFINE1()
[all …]
A Dprom_init.c114 __be32 nargs; member
398 args.nargs = cpu_to_be32(nargs); in call_prom()
402 for (i = 0; i < nargs; i++) in call_prom()
407 args.args[nargs+i] = 0; in call_prom()
412 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in call_prom()
423 args.nargs = cpu_to_be32(nargs); in call_prom_ret()
427 for (i = 0; i < nargs; i++) in call_prom_ret()
432 args.args[nargs+i] = 0; in call_prom_ret()
439 rets[i-1] = be32_to_cpu(args.args[nargs+i]); in call_prom_ret()
441 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in call_prom_ret()
[all …]
/linux/tools/testing/selftests/kvm/lib/aarch64/
A Ducall.c74 void ucall(uint64_t cmd, int nargs, ...) in ucall() argument
82 nargs = nargs <= UCALL_MAX_ARGS ? nargs : UCALL_MAX_ARGS; in ucall()
84 va_start(va, nargs); in ucall()
85 for (i = 0; i < nargs; ++i) in ucall()
/linux/tools/testing/selftests/powerpc/syscalls/
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()
/linux/drivers/input/joystick/
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()
A Ddb9.c31 unsigned int nargs; member
37 module_param_array_named(dev, db9_cfg[0].args, int, &db9_cfg[0].nargs, 0);
39 module_param_array_named(dev2, db9_cfg[1].args, int, &db9_cfg[1].nargs, 0);
41 module_param_array_named(dev3, db9_cfg[2].args, int, &db9_cfg[2].nargs, 0);
557 if (db9_cfg[port_idx].nargs == 0 || in db9_attach()
688 if (db9_cfg[i].nargs == 0 || db9_cfg[i].args[DB9_ARG_PARPORT] < 0) in db9_init()
691 if (db9_cfg[i].nargs < 2) { in db9_init()
A Dgamecon.c37 unsigned int nargs; member
42 module_param_array_named(map, gc_cfg[0].args, int, &gc_cfg[0].nargs, 0);
44 module_param_array_named(map2, gc_cfg[1].args, int, &gc_cfg[1].nargs, 0);
46 module_param_array_named(map3, gc_cfg[2].args, int, &gc_cfg[2].nargs, 0);
932 if (gc_cfg[port_idx].nargs == 0 || gc_cfg[port_idx].args[0] < 0) in gc_attach()
944 n_pads = gc_cfg[port_idx].nargs - 1; in gc_attach()
1031 if (gc_cfg[i].nargs == 0 || gc_cfg[i].args[0] < 0) in gc_init()
1034 if (gc_cfg[i].nargs < 2) { in gc_init()
/linux/arch/powerpc/kvm/
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()
256 args.rets = &args.args[be32_to_cpu(args.nargs)]; in kvmppc_rtas_hcall()
/linux/arch/arm/mach-omap2/
A Domap-secure.c59 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()
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()
A Domap-secure.h67 extern u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs,
78 extern u32 rx51_secure_dispatcher(u32 idx, u32 process, u32 flag, u32 nargs,
/linux/include/trace/events/
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));
/linux/fs/xfs/libxfs/
A Dxfs_attr_leaf.c907 struct xfs_da_args nargs; in xfs_attr_shortform_to_leaf() local
938 memset((char *)&nargs, 0, sizeof(nargs)); in xfs_attr_shortform_to_leaf()
939 nargs.dp = dp; in xfs_attr_shortform_to_leaf()
940 nargs.geo = args->geo; in xfs_attr_shortform_to_leaf()
941 nargs.total = args->total; in xfs_attr_shortform_to_leaf()
950 nargs.value = &sfe->nameval[nargs.namelen]; in xfs_attr_shortform_to_leaf()
1101 struct xfs_da_args nargs; in xfs_attr3_leaf_to_shortform() local
1141 memset((char *)&nargs, 0, sizeof(nargs)); in xfs_attr3_leaf_to_shortform()
1142 nargs.geo = args->geo; in xfs_attr3_leaf_to_shortform()
1143 nargs.dp = dp; in xfs_attr3_leaf_to_shortform()
[all …]
/linux/include/linux/
A Daudit.h408 extern int __audit_socketcall(int nargs, unsigned long *args);
448 static inline int audit_socketcall(int nargs, unsigned long *args) in audit_socketcall() argument
451 return __audit_socketcall(nargs, args); in audit_socketcall()
455 static inline int audit_socketcall_compat(int nargs, u32 *args) in audit_socketcall_compat() argument
463 for (i = 0; i < nargs; i++) in audit_socketcall_compat()
465 return __audit_socketcall(nargs, a); in audit_socketcall_compat()
643 static inline int audit_socketcall(int nargs, unsigned long *args) in audit_socketcall() argument
648 static inline int audit_socketcall_compat(int nargs, u32 *args) in audit_socketcall_compat() argument
A Dfwnode.h81 unsigned int nargs; member
137 unsigned int nargs, unsigned int index,
/linux/drivers/acpi/
A Dproperty.c695 args->nargs = 0; in __acpi_node_get_property_reference()
717 u32 nargs, i; in __acpi_node_get_property_reference() local
727 nargs = 0; in __acpi_node_get_property_reference()
748 nargs++; in __acpi_node_get_property_reference()
755 if (nargs > NR_FWNODE_REFERENCE_ARGS) in __acpi_node_get_property_reference()
760 args->nargs = nargs; in __acpi_node_get_property_reference()
761 for (i = 0; i < nargs; i++) in __acpi_node_get_property_reference()
767 element += nargs; in __acpi_node_get_property_reference()
1231 return args.nargs ? NULL : args.fwnode; in acpi_graph_get_remote_endpoint()
1237 if (args.nargs != 2) in acpi_graph_get_remote_endpoint()
/linux/tools/testing/selftests/bpf/
A Dtest_btf.h60 #define BTF_FUNC_PROTO_ENC(ret_type, nargs) \ argument
61 BTF_TYPE_ENC(0, BTF_INFO_ENC(BTF_KIND_FUNC_PROTO, 0, nargs), ret_type)
/linux/drivers/base/test/
A Dproperty-entry-test.c440 KUNIT_EXPECT_EQ(test, ref.nargs, 0U); in pe_test_reference()
451 KUNIT_EXPECT_EQ(test, ref.nargs, 1U); in pe_test_reference()
459 KUNIT_EXPECT_EQ(test, ref.nargs, 3U); in pe_test_reference()
474 KUNIT_EXPECT_EQ(test, ref.nargs, 0U); in pe_test_reference()
481 KUNIT_EXPECT_EQ(test, ref.nargs, 2U); in pe_test_reference()

Completed in 57 milliseconds

123