Home
last modified time | relevance | path

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

1234

/linux/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()
77 for (i = 0; i < nargs; i++) in of_call_prom_ret()
82 args.args[nargs+i] = 0; in of_call_prom_ret()
[all …]
H A Dof.h11 int of_call_prom(const char *service, int nargs, int nret, ...);
/linux/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()
/linux/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);
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 Ddb9.c28 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 Dgamecon.c34 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/arch/powerpc/kernel/
H A Drtas.c1029 err_args.nargs = cpu_to_be32(2); in __fetch_rtas_last_error()
1069 va_rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, in va_rtas_call_unlocked() argument
1075 args->nargs = cpu_to_be32(nargs); in va_rtas_call_unlocked()
1077 args->rets = &(args->args[nargs]); in va_rtas_call_unlocked()
1079 for (i = 0; i < nargs; ++i) in va_rtas_call_unlocked()
1105 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, ...) in rtas_call_unlocked() argument
1110 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call_unlocked()
1178 int rtas_call(int token, int nargs, int nret, int *outputs, ...) in rtas_call() argument
1213 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call()
1776 static bool block_rtas_call(const struct rtas_function *func, int nargs, in block_rtas_call() argument
[all …]
/linux/tools/testing/selftests/kvm/lib/
H A Ducall_common.c121 void ucall(u64 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/arch/powerpc/kvm/
H A Dbook3s_rtas.c25 if (be32_to_cpu(args->nargs) != 3 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_set_xive()
49 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 3) { in kvm_rtas_get_xive()
77 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_int_off()
99 if (be32_to_cpu(args->nargs) != 1 || be32_to_cpu(args->nret) != 1) { in kvm_rtas_int_on()
246 if (be32_to_cpu(args.nargs) >= ARRAY_SIZE(args.args)) { in kvmppc_rtas_hcall()
251 * Each handler must then check for the correct nargs and nret in kvmppc_rtas_hcall()
257 args.rets = &args.args[be32_to_cpu(args.nargs)]; in kvmppc_rtas_hcall()
284 * args pointer or nargs/nret values that would overflow the in kvmppc_rtas_hcall()
/linux/arch/arm/mach-omap2/
H A Domap-secure.c59 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()
H A Domap-secure.h67 extern u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs,
/linux/fs/xfs/libxfs/
H A Dxfs_attr_leaf.c1064 struct xfs_da_args nargs; in xfs_attr_shortform_to_leaf()
1089 memset((char *)&nargs, 0, sizeof(nargs)); in xfs_attr_shortform_to_leaf()
1090 nargs.dp = dp; in xfs_attr_shortform_to_leaf()
1091 nargs.geo = args->geo; in xfs_attr_shortform_to_leaf()
1092 nargs.total = args->total; in xfs_attr_shortform_to_leaf()
1093 nargs.whichfork = XFS_ATTR_FORK; in xfs_attr_shortform_to_leaf()
1094 nargs.trans = args->trans; in xfs_attr_shortform_to_leaf()
1095 nargs.op_flags = XFS_DA_OP_OKNOENT; in xfs_attr_shortform_to_leaf()
1096 nargs in xfs_attr_shortform_to_leaf()
1051 struct xfs_da_args nargs; xfs_attr_shortform_to_leaf() local
1232 struct xfs_da_args nargs; xfs_attr3_leaf_to_shortform() local
[all...]
/linux/drivers/spi/
H A Dspi-offload-trigger-adi-util-sigma-delta.c19 u64 *args, u32 nargs) in adi_util_sigma_delta_match() argument
21 return type == SPI_OFFLOAD_TRIGGER_DATA_READY && nargs == 0; in adi_util_sigma_delta_match()
H A Dspi-offload-trigger-pwm.c28 u64 *args, u32 nargs) in spi_offload_trigger_pwm_match() argument
30 if (nargs) in spi_offload_trigger_pwm_match()
/linux/tools/perf/util/
H A Dprobe-event.c1851 pev->nargs = argc - 1; in parse_perf_probe_command()
1852 pev->args = calloc(pev->nargs, sizeof(struct perf_probe_arg)); in parse_perf_probe_command()
1857 for (i = 0; i < pev->nargs && ret >= 0; i++) { in parse_perf_probe_command()
1877 for (i = 0; i < pev->nargs; i++) in perf_probe_with_var()
2001 tev->nargs = argc - 2; in parse_probe_trace_command()
2002 tev->args = calloc(tev->nargs, sizeof(struct probe_trace_arg)); in parse_probe_trace_command()
2007 for (i = 0; i < tev->nargs; i++) { in parse_probe_trace_command()
2127 for (i = 0; i < pev->nargs; i++) { in synthesize_perf_probe_command()
2206 for (i = 0; i < tev->nargs && ret >= 0; i++) in synthesize_probe_trace_args()
2374 pev->nargs in convert_to_perf_probe_event()
[all...]
H A Dprobe-finder.c1196 int nargs; in copy_variables_cb()
1215 vf->args[vf->nargs].var = (char *)dwarf_diename(die_mem); in copy_variables_cb()
1216 if (vf->args[vf->nargs].var == NULL) { in copy_variables_cb()
1220 pr_debug(" %s", vf->args[vf->nargs].var);
1221 vf->nargs++; in expand_probe_args()
1253 for (i = 0; i < pf->pev->nargs; i++) { in trace_event_finder_overlap()
1264 vf.nargs = n;
1268 pr_debug(" (%d)\n", vf.nargs - n); in add_probe_trace_event()
1271 n = vf.nargs; in add_probe_trace_event()
1344 tev->nargs
1174 int nargs; global() member
[all...]
/linux/drivers/i2c/busses/
H A Di2c-gpio.c414 if (args.nargs >= 1) in i2c_gpio_create_scl()
430 scl->args.nargs = args.nargs; in i2c_gpio_create_scl()
431 memcpy(scl->args.args, args.args, sizeof(args.args[0]) * args.nargs); in i2c_gpio_create_scl()
451 a->args.fwnode != b->args.fwnode || a->args.nargs != b->args.nargs) in i2c_gpio_scl_matches()
454 return memcmp(a->args.args, b->args.args, sizeof(a->args.args[0]) * a->args.nargs) == 0; in i2c_gpio_scl_matches()
/linux/fs/xfs/
H A Dxfs_rtalloc.c101 struct xfs_rtalloc_args *nargs) in xfs_rtcopy_summary() argument
124 error = xfs_rtmodify_summary(nargs, log, bbno, sum); in xfs_rtcopy_summary()
779 struct xfs_rtalloc_args *nargs, in xfs_growfs_rt_free_new() argument
788 end_rtx = xfs_rtgroup_extents(nargs->mp, rgno); in xfs_growfs_rt_free_new()
794 if (xfs_has_rtsb(nargs->mp) && rgno == 0 && start_rtx == 0) in xfs_growfs_rt_free_new()
797 return xfs_rtfree_range(nargs, start_rtx, *freed_rtx); in xfs_growfs_rt_free_new()
827 const struct xfs_rtalloc_args *nargs, in xfs_growfs_rt_init_rtsb() argument
835 if (!xfs_has_rtsb(nargs->mp)) in xfs_growfs_rt_init_rtsb()
859 error = xfs_rtrmapbt_init_rtsb(nargs->mp, args->rtg, args->tp); in xfs_growfs_rt_init_rtsb()
964 struct xfs_rtalloc_args nargs in xfs_growfs_rt_bmblock() local
[all...]
/linux/drivers/acpi/
H A Dproperty.c871 u32 nargs = 0, i; in acpi_get_ref_args() local
889 nargs++; in acpi_get_ref_args()
894 if (nargs > NR_FWNODE_REFERENCE_ARGS) in acpi_get_ref_args()
899 args->nargs = nargs; in acpi_get_ref_args()
900 for (i = 0; i < nargs; i++) in acpi_get_ref_args()
904 (*element) += nargs; in acpi_get_ref_args()
981 args->nargs = 0; in acpi_fwnode_get_reference_args()
993 args->nargs = 0; in acpi_fwnode_get_reference_args()
1570 return args.nargs ? NULL : args.fwnode; in acpi_graph_get_remote_endpoint()
1576 if (args.nargs != 2) in acpi_graph_get_remote_endpoint()
/linux/tools/testing/selftests/bpf/
H A Dtest_btf.h63 #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/samples/rust/
H A Drust_driver_platform.rs171 let nargs = NArgs::N(2); in properties_parse()
172 let prop: FwNodeReferenceArgs = child.property_get_reference_args(name, nargs, 0)?; in properties_parse()
170 let nargs = NArgs::N(2); properties_parse() localVariable
/linux/tools/docs/
H A Dtest_doc_build.py507 ver_group.add_argument('-V', '--versions', nargs="*",
521 build_group.add_argument('-a', '--make-args', nargs="*",
524 build_group.add_argument('-t', '--targets', nargs="+", choices=MAKE_TARGETS,
H A Dparse-headers.py47 parser.add_argument("file_rules", nargs="?",
/linux/drivers/base/test/
H 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()
/linux/tools/lib/python/kdoc/
H A Denrich_formatter.py63 if action.nargs != 0:

1234