| /linux-6.15/arch/powerpc/boot/ |
| H A D | oflib.c | 21 __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-6.15/arch/powerpc/include/asm/ |
| H A D | trace.h | 133 __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); 201 __entry->token, __entry->nargs, __entry->nret,
|
| /linux-6.15/tools/testing/selftests/powerpc/syscalls/ |
| H A D | rtas_filter.c | 42 __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()
|
| /linux-6.15/drivers/input/joystick/ |
| H A D | turbografx.c | 30 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); 149 if (tgfx_cfg[port_idx].nargs == 0 || in tgfx_attach() 161 n_devs = tgfx_cfg[port_idx].nargs - 1; in tgfx_attach() 283 if (tgfx_cfg[i].nargs == 0 || tgfx_cfg[i].args[0] < 0) in tgfx_init() 286 if (tgfx_cfg[i].nargs < 2) { in tgfx_init()
|
| H A D | db9.c | 28 unsigned int nargs; member 34 module_param_array_named(dev, db9_cfg[0].args, int, &db9_cfg[0].nargs, 0); 36 module_param_array_named(dev2, db9_cfg[1].args, int, &db9_cfg[1].nargs, 0); 38 module_param_array_named(dev3, db9_cfg[2].args, int, &db9_cfg[2].nargs, 0); 552 if (db9_cfg[port_idx].nargs == 0 || in db9_attach() 682 if (db9_cfg[i].nargs == 0 || db9_cfg[i].args[DB9_ARG_PARPORT] < 0) in db9_init() 685 if (db9_cfg[i].nargs < 2) { in db9_init()
|
| H A D | gamecon.c | 34 unsigned int nargs; member 39 module_param_array_named(map, gc_cfg[0].args, int, &gc_cfg[0].nargs, 0); 41 module_param_array_named(map2, gc_cfg[1].args, int, &gc_cfg[1].nargs, 0); 43 module_param_array_named(map3, gc_cfg[2].args, int, &gc_cfg[2].nargs, 0); 927 if (gc_cfg[port_idx].nargs == 0 || gc_cfg[port_idx].args[0] < 0) in gc_attach() 939 n_pads = gc_cfg[port_idx].nargs - 1; in gc_attach() 1025 if (gc_cfg[i].nargs == 0 || gc_cfg[i].args[0] < 0) in gc_init() 1028 if (gc_cfg[i].nargs < 2) { in gc_init()
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A D | rtas.c | 1005 err_args.nargs = cpu_to_be32(2); in __fetch_rtas_last_error() 1051 args->nargs = cpu_to_be32(nargs); in va_rtas_call_unlocked() 1053 args->rets = &(args->args[nargs]); in va_rtas_call_unlocked() 1055 for (i = 0; i < nargs; ++i) in va_rtas_call_unlocked() 1833 int nargs, nret, token; in SYSCALL_DEFINE1() local 1844 nargs = be32_to_cpu(args.nargs); in SYSCALL_DEFINE1() 1848 if (nargs >= ARRAY_SIZE(args.args) in SYSCALL_DEFINE1() 1853 nargs = array_index_nospec(nargs, ARRAY_SIZE(args.args)); in SYSCALL_DEFINE1() 1869 args.rets = &args.args[nargs]; in SYSCALL_DEFINE1() 1940 if (copy_to_user(uargs->args + nargs, in SYSCALL_DEFINE1() [all …]
|
| H A D | prom_init.c | 110 __be32 nargs; member 394 args.nargs = cpu_to_be32(nargs); in call_prom() 398 for (i = 0; i < nargs; i++) in call_prom() 403 args.args[nargs+i] = 0; in call_prom() 408 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in call_prom() 419 args.nargs = cpu_to_be32(nargs); in call_prom_ret() 423 for (i = 0; i < nargs; i++) in call_prom_ret() 428 args.args[nargs+i] = 0; in call_prom_ret() 435 rets[i-1] = be32_to_cpu(args.args[nargs+i]); in call_prom_ret() 437 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in call_prom_ret() [all …]
|
| /linux-6.15/tools/testing/selftests/kvm/lib/ |
| H A D | ucall_common.c | 121 void ucall(uint64_t cmd, int nargs, ...) in ucall() argument 131 nargs = min(nargs, UCALL_MAX_ARGS); in ucall() 133 va_start(va, nargs); in ucall() 134 for (i = 0; i < nargs; ++i) in ucall()
|
| /linux-6.15/arch/powerpc/kvm/ |
| H A D | book3s_rtas.c | 24 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-6.15/arch/arm/mach-omap2/ |
| H A D | omap-secure.c | 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() 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()
|
| /linux-6.15/include/trace/events/ |
| H A D | xen.h | 37 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-6.15/include/linux/spi/offload/ |
| H A D | provider.h | 23 enum spi_offload_trigger_type type, u64 *args, u32 nargs); 25 enum spi_offload_trigger_type type, u64 *args, u32 nargs);
|
| /linux-6.15/fs/xfs/libxfs/ |
| H A D | xfs_attr_leaf.c | 949 struct xfs_da_args nargs; in xfs_attr_shortform_to_leaf() local 974 memset((char *)&nargs, 0, sizeof(nargs)); in xfs_attr_shortform_to_leaf() 975 nargs.dp = dp; in xfs_attr_shortform_to_leaf() 976 nargs.geo = args->geo; in xfs_attr_shortform_to_leaf() 977 nargs.total = args->total; in xfs_attr_shortform_to_leaf() 987 nargs.value = &sfe->nameval[nargs.namelen]; in xfs_attr_shortform_to_leaf() 1131 struct xfs_da_args nargs; in xfs_attr3_leaf_to_shortform() local 1176 memset((char *)&nargs, 0, sizeof(nargs)); in xfs_attr3_leaf_to_shortform() 1177 nargs.geo = args->geo; in xfs_attr3_leaf_to_shortform() 1178 nargs.dp = dp; in xfs_attr3_leaf_to_shortform() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | audit.h | 407 extern int __audit_socketcall(int nargs, unsigned long *args); 447 static inline int audit_socketcall(int nargs, unsigned long *args) in audit_socketcall() argument 450 return __audit_socketcall(nargs, args); in audit_socketcall() 454 static inline int audit_socketcall_compat(int nargs, u32 *args) in audit_socketcall_compat() argument 462 for (i = 0; i < nargs; i++) in audit_socketcall_compat() 464 return __audit_socketcall(nargs, a); in audit_socketcall_compat() 638 static inline int audit_socketcall(int nargs, unsigned long *args) in audit_socketcall() argument 643 static inline int audit_socketcall_compat(int nargs, u32 *args) in audit_socketcall_compat() argument
|
| H A D | fwnode.h | 109 unsigned int nargs; member 171 unsigned int nargs, unsigned int index,
|
| /linux-6.15/tools/perf/util/ |
| H A D | probe-event.c | 1848 pev->nargs = argc - 1; in parse_perf_probe_command() 1998 tev->nargs = argc - 2; in parse_probe_trace_command() 2371 pev->nargs = tev->nargs; in convert_to_perf_probe_event() 2416 pev->nargs = 0; in clear_perf_probe_event() 2481 dst->nargs = src->nargs; in perf_probe_event__copy() 2515 tev->nargs = 0; in clear_probe_trace_event() 2652 if (!ret && pev->nargs > 0) { in perf_probe_event__sprintf() 3247 tev->nargs = pev->nargs; in find_probe_trace_events_from_map() 3248 if (tev->nargs) { in find_probe_trace_events_from_map() 3250 tev->nargs); in find_probe_trace_events_from_map() [all …]
|
| H A D | probe-event.h | 60 int nargs; /* Number of args */ member 99 int nargs; /* Number of arguments */ member
|
| H A D | probe-finder.c | 1173 int nargs; member 1193 if (vf->args[vf->nargs].var == NULL) { in copy_variables_cb() 1197 pr_debug(" %s", vf->args[vf->nargs].var); in copy_variables_cb() 1198 vf->nargs++; in copy_variables_cb() 1229 for (i = 0; i < pf->pev->nargs; i++) { in expand_probe_args() 1240 vf.nargs = n; in expand_probe_args() 1244 pr_debug(" (%d)\n", vf.nargs - n); in expand_probe_args() 1247 n = vf.nargs; in expand_probe_args() 1317 tev->nargs = ret; in add_probe_trace_event() 1325 for (i = 0; i < tev->nargs; i++) { in add_probe_trace_event() [all …]
|
| /linux-6.15/fs/xfs/ |
| H A D | xfs_rtalloc.c | 101 struct xfs_rtalloc_args *nargs) in xfs_rtcopy_summary() argument 120 error = xfs_rtmodify_summary(nargs, log, bbno, sum); in xfs_rtcopy_summary() 778 struct xfs_rtalloc_args *nargs, in xfs_growfs_rt_free_new() argument 787 end_rtx = xfs_rtgroup_extents(nargs->mp, rgno); in xfs_growfs_rt_free_new() 826 const struct xfs_rtalloc_args *nargs, in xfs_growfs_rt_init_rtsb() argument 834 if (!xfs_has_rtsb(nargs->mp)) in xfs_growfs_rt_init_rtsb() 955 struct xfs_rtalloc_args nargs = { in xfs_growfs_rt_bmblock() local 966 nmp = nargs.mp = xfs_growfs_rt_alloc_fake_mount(mp, in xfs_growfs_rt_bmblock() 984 nargs.tp = args.tp; in xfs_growfs_rt_bmblock() 1014 error = xfs_rtcopy_summary(&args, &nargs); in xfs_growfs_rt_bmblock() [all …]
|
| /linux-6.15/drivers/acpi/ |
| H A D | property.c | 812 u32 nargs = 0, i; in acpi_get_ref_args() local 827 nargs++; in acpi_get_ref_args() 832 if (nargs > NR_FWNODE_REFERENCE_ARGS) in acpi_get_ref_args() 837 args->nargs = nargs; in acpi_get_ref_args() 838 for (i = 0; i < nargs; i++) in acpi_get_ref_args() 842 (*element) += nargs; in acpi_get_ref_args() 954 args->nargs = 0; in __acpi_node_get_property_reference() 966 args->nargs = 0; in __acpi_node_get_property_reference() 1474 return args.nargs ? NULL : args.fwnode; in acpi_graph_get_remote_endpoint() 1480 if (args.nargs != 2) in acpi_graph_get_remote_endpoint()
|
| /linux-6.15/tools/testing/selftests/bpf/ |
| H A D | test_btf.h | 63 #define BTF_FUNC_PROTO_ENC(ret_type, nargs) \ argument 64 BTF_TYPE_ENC(0, BTF_INFO_ENC(BTF_KIND_FUNC_PROTO, 0, nargs), ret_type)
|
| /linux-6.15/drivers/spi/ |
| H A D | spi-offload-trigger-pwm.c | 29 u64 *args, u32 nargs) in spi_offload_trigger_pwm_match() argument 31 if (nargs) in spi_offload_trigger_pwm_match()
|
| /linux-6.15/drivers/base/test/ |
| H A D | property-entry-test.c | 438 KUNIT_EXPECT_EQ(test, ref.nargs, 0U); in pe_test_reference() 449 KUNIT_EXPECT_EQ(test, ref.nargs, 1U); in pe_test_reference() 457 KUNIT_EXPECT_EQ(test, ref.nargs, 3U); in pe_test_reference() 472 KUNIT_EXPECT_EQ(test, ref.nargs, 0U); in pe_test_reference() 479 KUNIT_EXPECT_EQ(test, ref.nargs, 2U); in pe_test_reference()
|
| /linux-6.15/drivers/base/ |
| H A D | swnode.c | 506 unsigned int nargs, unsigned int index, in software_node_get_reference_args() argument 549 nargs = nargs_prop_val; in software_node_get_reference_args() 552 if (nargs > NR_FWNODE_REFERENCE_ARGS) in software_node_get_reference_args() 559 args->nargs = nargs; in software_node_get_reference_args() 561 for (i = 0; i < nargs; i++) in software_node_get_reference_args()
|