/openbmc/linux/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 …]
|
/openbmc/qemu/pc-bios/vof/ |
H A D | ci.c | 5 uint32_t nargs; member 38 pargs->args[pargs->nargs] = 0; in prom_handle() 39 pargs->args[pargs->nargs + 1] = pargs->args[2]; in prom_handle() 51 static int call_ci(const char *service, int nargs, int nret, ...) in call_ci() argument 58 args.nargs = nargs; in call_ci() 62 for (i = 0; i < nargs; i++) { in call_ci() 68 args.args[nargs + i] = 0; in call_ci() 75 return (nret > 0) ? args.args[nargs] : 0; in call_ci()
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_rtas.c | 74 if (nargs != 2 || nret != 1) { in rtas_power_off() 88 if (nargs != 0 || nret != 1) { in rtas_system_reboot() 105 if (nargs != 1 || nret != 2) { in rtas_query_cpu_stopped_state() 128 uint32_t token, uint32_t nargs, in rtas_start_cpu() argument 138 if (nargs != 3 || nret != 1) { in rtas_start_cpu() 204 uint32_t token, uint32_t nargs, in rtas_stop_self() argument 231 if (nargs != 0 || nret != 1) { in rtas_ibm_suspend_me() 369 if (nargs != 2 || nret != 2) { in rtas_set_power_level() 394 if (nargs != 1 || nret != 2) { in rtas_get_power_level() 555 unsigned long nargs, nret; in spapr_qtest_callback() local [all …]
|
H A D | spapr_rtas_ddw.c | 95 uint32_t token, uint32_t nargs, in rtas_ibm_query_pe_dma_window() argument 103 if ((nargs != 3) || ((nret != 5) && (nret != 6))) { in rtas_ibm_query_pe_dma_window() 145 uint32_t token, uint32_t nargs, in rtas_ibm_create_pe_dma_window() argument 155 if ((nargs != 5) || (nret != 4)) { in rtas_ibm_create_pe_dma_window() 222 uint32_t token, uint32_t nargs, in rtas_ibm_remove_pe_dma_window() argument 231 if ((nargs != 1) || (nret != 1)) { in rtas_ibm_remove_pe_dma_window() 272 uint32_t token, uint32_t nargs, in rtas_ibm_reset_pe_dma_window() argument 280 if ((nargs != 3) || (nret != 1)) { in rtas_ibm_reset_pe_dma_window()
|
H A D | vof.c | 62 static bool cmpservice(const char *s, unsigned nargs, unsigned nret, in cmpservice() argument 68 if ((nargscheck && (nargs != nargscheck)) || in cmpservice() 863 cmpservice(service, nargs, nrets, (s), (a), (r)) in vof_client_handle() 935 uint32_t nargs; member 947 unsigned nargs, nret, i; in vof_client_call() local 952 nargs = be32_to_cpu(args_be.nargs); in vof_client_call() 953 if (nargs >= ARRAY_SIZE(args_be.args)) { in vof_client_call() 966 for (i = 0; i < nargs; ++i) { in vof_client_call() 971 if (nret > ARRAY_SIZE(args_be.args) - nargs) { in vof_client_call() 980 args_be.args[nargs] = cpu_to_be32(ret); in vof_client_call() [all …]
|
H A D | spapr_rtc.c | 70 uint32_t token, uint32_t nargs, in rtas_get_time_of_day() argument 77 if ((nargs != 0) || (nret != 8)) { in rtas_get_time_of_day() 95 uint32_t token, uint32_t nargs, in rtas_set_time_of_day() argument 105 if ((nargs != 7) || (nret != 1)) { in rtas_set_time_of_day()
|
/openbmc/u-boot/common/ |
H A D | cli_simple.c | 25 int nargs = 0; in cli_simple_parse_line() local 28 while (nargs < CONFIG_SYS_MAXARGS) { in cli_simple_parse_line() 34 argv[nargs] = NULL; in cli_simple_parse_line() 35 debug_parser("%s: nargs=%d\n", __func__, nargs); in cli_simple_parse_line() 36 return nargs; in cli_simple_parse_line() 39 argv[nargs++] = line; /* begin of argument string */ in cli_simple_parse_line() 46 argv[nargs] = NULL; in cli_simple_parse_line() 47 debug_parser("parse_line: nargs=%d\n", nargs); in cli_simple_parse_line() 48 return nargs; in cli_simple_parse_line() 56 debug_parser("%s: nargs=%d\n", __func__, nargs); in cli_simple_parse_line() [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | rtas.c | 11 uint32_t nargs, uint32_t *args) in qrtas_copy_args() argument 15 for (i = 0; i < nargs; i++) { in qrtas_copy_args() 32 uint32_t nargs, uint32_t *args, in qrtas_call() argument 38 target_args = guest_alloc(alloc, nargs * sizeof(uint32_t)); in qrtas_call() 41 qrtas_copy_args(qts, target_args, nargs, args); in qrtas_call() 42 res = qtest_rtas_call(qts, name, nargs, target_args, nret, target_ret); in qrtas_call()
|
/openbmc/linux/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,
|
/openbmc/u-boot/tools/ |
H A D | aisimage.c | 59 uint32_t nargs; member 151 ptr += cmd_table[id].nargs + IS_FNC_EXEC(id) + 1; in aisimage_print_header() 160 static uint32_t *ais_insert_cmd_header(uint32_t cmd, uint32_t nargs, in ais_insert_cmd_header() argument 168 *ptr++ = ((nargs & 0xFFFF) << 16) + ais_func_table[cmd].index; in ais_insert_cmd_header() 171 for (i = 0; i < nargs; i++) in ais_insert_cmd_header() 264 uint32_t nargs, cmd_parms[10]; in aisimage_generate() local 304 nargs = 0; in aisimage_generate() 328 cmd_parms[nargs++] = value; in aisimage_generate() 329 if (nargs > cmd_table[cmd].nargs) { in aisimage_generate() 344 aishdr = ais_insert_cmd_header(cmd, nargs, cmd_parms, in aisimage_generate()
|
/openbmc/linux/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()
|
/openbmc/linux/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); 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()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | ucall_common.c | 117 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()
|
/openbmc/openbmc/poky/bitbake/bin/ |
H A D | bitbake-diffsigs | 120 … action="store", dest="taskargs", nargs=2, metavar=('recipename', 'taskname')) 124 action="store", nargs='?', metavar="sigdatafile") 136 … action="store", dest="taskargs", nargs=2, metavar=('recipename', 'taskname')) 140 action="store", dest="sigargs", nargs=2, metavar=('fromsig', 'tosig')) 144 action="store", nargs='?') 148 action="store", nargs='?')
|
H A D | bitbake-dumpsig | 120 … action="store", dest="taskargs", nargs=2, metavar=('recipename', 'taskname')) 124 action="store", nargs='?', metavar="sigdatafile") 136 … action="store", dest="taskargs", nargs=2, metavar=('recipename', 'taskname')) 140 action="store", dest="sigargs", nargs=2, metavar=('fromsig', 'tosig')) 144 action="store", nargs='?') 148 action="store", nargs='?')
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | rtas.c | 986 err_args.nargs = cpu_to_be32(2); in __fetch_rtas_last_error() 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() 1811 token, nargs, current->comm); in block_rtas_call() 1822 int nargs, nret, token; in SYSCALL_DEFINE1() local 1833 nargs = be32_to_cpu(args.nargs); in SYSCALL_DEFINE1() 1837 if (nargs >= ARRAY_SIZE(args.args) in SYSCALL_DEFINE1() 1850 args.rets = &args.args[nargs]; in SYSCALL_DEFINE1() 1909 if (copy_to_user(uargs->args + nargs, in SYSCALL_DEFINE1() [all …]
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/trusted-firmware-a/files/tc/ |
H A D | generate_metadata.py | 49 parser.add_argument('--img_type_uuids', type=str, nargs='+', required=True, 51 parser.add_argument('--location_uuids', type=str, nargs='+', required=True, 54 parser.add_argument('--img_uuids', type=str, nargs='+', required=True,
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/qemu/hw/intc/ |
H A D | xics_spapr.c | 153 uint32_t nargs, target_ulong args, in rtas_set_xive() argument 161 if ((nargs != 3) || (nret != 1)) { in rtas_set_xive() 188 uint32_t nargs, target_ulong args, in rtas_get_xive() argument 196 if ((nargs != 1) || (nret != 3)) { in rtas_get_xive() 220 uint32_t nargs, target_ulong args, in rtas_int_off() argument 228 if ((nargs != 1) || (nret != 1)) { in rtas_int_off() 253 uint32_t nargs, target_ulong args, in rtas_int_on() argument 261 if ((nargs != 1) || (nret != 1)) { in rtas_int_on()
|
/openbmc/linux/tools/perf/util/ |
H A D | bpf-prologue.h | 17 int bpf__gen_prologue(struct probe_trace_arg *args, int nargs, 26 int nargs __maybe_unused, in bpf__gen_prologue()
|
/openbmc/linux/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));
|
/openbmc/openbmc/poky/scripts/lib/ |
H A D | argparse_oe.py | 117 action.save_nargs = action.nargs 118 action.nargs = 0 126 action.nargs = action.save_nargs 136 action.nargs = action.save_nargs
|
/openbmc/linux/include/linux/ |
H A D | audit.h | 406 extern int __audit_socketcall(int nargs, unsigned long *args); 446 static inline int audit_socketcall(int nargs, unsigned long *args) in audit_socketcall() argument 449 return __audit_socketcall(nargs, args); in audit_socketcall() 453 static inline int audit_socketcall_compat(int nargs, u32 *args) in audit_socketcall_compat() argument 461 for (i = 0; i < nargs; i++) in audit_socketcall_compat() 463 return __audit_socketcall(nargs, a); in audit_socketcall_compat() 637 static inline int audit_socketcall(int nargs, unsigned long *args) in audit_socketcall() argument 642 static inline int audit_socketcall_compat(int nargs, u32 *args) in audit_socketcall_compat() argument
|
/openbmc/qemu/hw/nvram/ |
H A D | spapr_nvram.c | 59 uint32_t token, uint32_t nargs, in OBJECT_DECLARE_SIMPLE_TYPE() 67 if ((nargs != 3) || (nret != 2)) { in OBJECT_DECLARE_SIMPLE_TYPE() 100 uint32_t token, uint32_t nargs, in rtas_nvram_store() argument 109 if ((nargs != 3) || (nret != 2)) { in rtas_nvram_store()
|