Home
last modified time | relevance | path

Searched refs:nret (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/linux/arch/powerpc/boot/
H A Doflib.c22 __be32 nret; /* Number of output arguments. */ member
41 int of_call_prom(const char *service, int nargs, int nret, ...) in of_call_prom() argument
49 args.nret = cpu_to_be32(nret); in of_call_prom()
51 va_start(list, nret); in of_call_prom()
56 for (i = 0; i < nret; i++) 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
74 args.nret = cpu_to_be32(nret); in of_call_prom_ret()
81 for (i = 0; i < nret; i++) in of_call_prom_ret()
88 for (i = 1; i < nret; ++i) in of_call_prom_ret()
[all …]
H A Dof.h11 int of_call_prom(const char *service, int nargs, int nret, ...);
/openbmc/qemu/hw/ppc/
H A Dspapr_rtas.c57 uint32_t nret, target_ulong rets) in rtas_display_character() argument
72 uint32_t nret, target_ulong rets) in rtas_power_off() argument
74 if (nargs != 2 || nret != 1) { in rtas_power_off()
86 uint32_t nret, target_ulong rets) in rtas_system_reboot() argument
88 if (nargs != 0 || nret != 1) { in rtas_system_reboot()
100 uint32_t nret, target_ulong rets) in rtas_query_cpu_stopped_state() argument
105 if (nargs != 1 || nret != 2) { in rtas_query_cpu_stopped_state()
130 uint32_t nret, target_ulong rets) in rtas_start_cpu() argument
138 if (nargs != 3 || nret != 1) { in rtas_start_cpu()
206 uint32_t nret, target_ulong rets) in rtas_stop_self() argument
[all …]
H A Dspapr_rtas_ddw.c97 uint32_t nret, target_ulong rets) in rtas_ibm_query_pe_dma_window() argument
103 if ((nargs != 3) || ((nret != 5) && (nret != 6))) { in rtas_ibm_query_pe_dma_window()
121 if (nret == 6) { in rtas_ibm_query_pe_dma_window()
147 uint32_t nret, target_ulong rets) in rtas_ibm_create_pe_dma_window() argument
155 if ((nargs != 5) || (nret != 4)) { in rtas_ibm_create_pe_dma_window()
224 uint32_t nret, target_ulong rets) in rtas_ibm_remove_pe_dma_window() argument
231 if ((nargs != 1) || (nret != 1)) { in rtas_ibm_remove_pe_dma_window()
274 uint32_t nret, target_ulong rets) in rtas_ibm_reset_pe_dma_window() argument
280 if ((nargs != 3) || (nret != 1)) { in rtas_ibm_reset_pe_dma_window()
H A Dspapr_rtc.c72 uint32_t nret, target_ulong rets) in rtas_get_time_of_day() argument
77 if ((nargs != 0) || (nret != 8)) { in rtas_get_time_of_day()
97 uint32_t nret, target_ulong rets) in rtas_set_time_of_day() argument
105 if ((nargs != 7) || (nret != 1)) { in rtas_set_time_of_day()
H A Dvof.c62 static bool cmpservice(const char *s, unsigned nargs, unsigned nret, in cmpservice() argument
69 (nretcheck && (nret != nretcheck))) { in cmpservice()
70 trace_vof_error_param(s, nargscheck, nretcheck, nargs, nret); in cmpservice()
936 uint32_t nret; member
947 unsigned nargs, nret, i; in vof_client_call() local
970 nret = be32_to_cpu(args_be.nret); in vof_client_call()
971 if (nret > ARRAY_SIZE(args_be.args) - nargs) { in vof_client_call()
974 ret = vof_client_handle(ms, fdt, vof, service, args, nargs, rets, nret); in vof_client_call()
975 if (!nret) { in vof_client_call()
981 for (i = 1; i < nret; ++i) { in vof_client_call()
[all …]
H A Dspapr_pci.c134 uint32_t nret, target_ulong rets) in rtas_ibm_read_pci_config() argument
139 if ((nargs != 4) || (nret != 2)) { in rtas_ibm_read_pci_config()
154 uint32_t nret, target_ulong rets) in rtas_read_pci_config() argument
158 if ((nargs != 2) || (nret != 2)) { in rtas_read_pci_config()
200 uint32_t nret, target_ulong rets) in rtas_ibm_write_pci_config() argument
205 if ((nargs != 5) || (nret != 1)) { in rtas_ibm_write_pci_config()
221 uint32_t nret, target_ulong rets) in rtas_write_pci_config() argument
225 if ((nargs != 3) || (nret != 1)) { in rtas_write_pci_config()
269 target_ulong args, uint32_t nret, in rtas_ibm_change_msi() argument
428 if (nret > 3) { in rtas_ibm_change_msi()
[all …]
H A Dspapr_drc.c1054 uint32_t nret, target_ulong rets) in rtas_set_indicator() argument
1059 if (nargs != 3 || nret != 1) { in rtas_set_indicator()
1088 target_ulong args, uint32_t nret, in rtas_get_sensor_state() argument
1098 if (nargs != 2 || nret != 2) { in rtas_get_sensor_state()
1150 target_ulong args, uint32_t nret, in rtas_ibm_configure_connector() argument
1161 if (nargs != 2 || nret != 1) { in rtas_ibm_configure_connector()
H A Dspapr_events.c937 uint32_t nret, target_ulong rets) in check_exception() argument
944 if ((nargs < 6) || (nargs > 7) || nret != 1) { in check_exception()
997 uint32_t nret, target_ulong rets) in event_scan() argument
1000 if (nargs != 4 || nret != 1) { in event_scan()
H A Dspapr_vio.c333 uint32_t nret, target_ulong rets) in rtas_set_tce_bypass() argument
364 uint32_t nret, target_ulong rets) in rtas_quiesce() argument
/openbmc/qemu/pc-bios/vof/
H A Dci.c6 uint32_t nret; member
51 static int call_ci(const char *service, int nargs, int nret, ...) in call_ci() argument
59 args.nret = nret; in call_ci()
61 va_start(list, nret); in call_ci()
67 for (i = 0; i < nret; i++) { in call_ci()
75 return (nret > 0) ? args.args[nargs] : 0; in call_ci()
/openbmc/qemu/tests/qtest/libqos/
H A Drtas.c21 uint32_t nret, uint32_t *ret) in qrtas_copy_ret() argument
25 for (i = 0; i < nret; i++) { in qrtas_copy_ret()
33 uint32_t nret, uint32_t *ret) in qrtas_call() argument
39 target_ret = guest_alloc(alloc, nret * sizeof(uint32_t)); in qrtas_call()
42 res = qtest_rtas_call(qts, name, nargs, target_args, nret, target_ret); in qrtas_call()
43 qrtas_copy_ret(qts, target_ret, nret, ret); in qrtas_call()
/openbmc/linux/drivers/staging/emxx_udc/
H A Demxx_udc.c908 int nret = 1; in _nbu2ss_epn_out_data() local
919 nret = _nbu2ss_out_dma(udc, req, num, i_buf_size); in _nbu2ss_epn_out_data()
922 nret = _nbu2ss_epn_out_pio(udc, ep, req, i_buf_size); in _nbu2ss_epn_out_data()
925 return nret; in _nbu2ss_epn_out_data()
1102 int nret = 1; in _nbu2ss_epn_in_data() local
1111 nret = _nbu2ss_in_dma(udc, ep, req, num, data_size); in _nbu2ss_epn_in_data()
1114 nret = _nbu2ss_epn_in_pio(udc, ep, req, data_size); in _nbu2ss_epn_in_data()
1117 return nret; in _nbu2ss_epn_in_data()
1164 int nret = -EINVAL; in _nbu2ss_start_transfer() local
1182 nret = _nbu2ss_ep0_in_transfer(udc, req); in _nbu2ss_start_transfer()
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Drtas.c987 err_args.nret = cpu_to_be32(1); 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
1033 args->nret = cpu_to_be32(nret); in va_rtas_call_unlocked()
1039 for (i = 0; i < nret; ++i) in va_rtas_call_unlocked()
1062 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, ...) in rtas_call_unlocked() argument
1066 va_start(list, nret); in rtas_call_unlocked()
1067 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call_unlocked()
1135 int rtas_call(int token, int nargs, int nret, int *outputs, ...) in rtas_call() argument
1170 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call()
1178 if (nret > 1 && outputs != NULL) in rtas_call()
[all …]
H A Dprom_init.c111 __be32 nret; member
387 static int __init call_prom(const char *service, int nargs, int nret, ...) in call_prom() argument
395 args.nret = cpu_to_be32(nret); in call_prom()
397 va_start(list, nret); in call_prom()
402 for (i = 0; i < nret; i++) in call_prom()
408 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in call_prom()
411 static int __init call_prom_ret(const char *service, int nargs, int nret, in call_prom_ret() argument
420 args.nret = cpu_to_be32(nret); in call_prom_ret()
427 for (i = 0; i < nret; i++) in call_prom_ret()
434 for (i = 1; i < nret; ++i) in call_prom_ret()
[all …]
/openbmc/qemu/hw/intc/
H A Dxics_spapr.c154 uint32_t nret, target_ulong rets) in rtas_set_xive() argument
161 if ((nargs != 3) || (nret != 1)) { in rtas_set_xive()
189 uint32_t nret, target_ulong rets) in rtas_get_xive() argument
196 if ((nargs != 1) || (nret != 3)) { in rtas_get_xive()
221 uint32_t nret, target_ulong rets) in rtas_int_off() argument
228 if ((nargs != 1) || (nret != 1)) { in rtas_int_off()
254 uint32_t nret, target_ulong rets) in rtas_int_on() argument
261 if ((nargs != 1) || (nret != 1)) { in rtas_int_on()
/openbmc/linux/arch/powerpc/include/asm/
H A Dtrace.h159 __dynamic_array(__u32, other_outputs, be32_to_cpu(rtas_args->nret) - 1)
163 __entry->nr_other = be32_to_cpu(rtas_args->nret) - 1;
185 __field(u32, nret)
192 __entry->nret = be32_to_cpu(rtas_args->nret);
201 __entry->token, __entry->nargs, __entry->nret,
H A Drtas-types.h12 __be32 nret; member
H A Drtas.h415 int nret, ...);
/openbmc/qemu/hw/nvram/
H A Dspapr_nvram.c61 uint32_t nret, target_ulong rets) in OBJECT_DECLARE_SIMPLE_TYPE()
67 if ((nargs != 3) || (nret != 2)) { in OBJECT_DECLARE_SIMPLE_TYPE()
102 uint32_t nret, target_ulong rets) in rtas_nvram_store() argument
109 if ((nargs != 3) || (nret != 2)) { in rtas_nvram_store()
/openbmc/linux/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()
/openbmc/linux/lib/
H A Ddigsig.c74 unsigned nret, l; in digsig_verify_rsa() local
134 nret = siglen; in digsig_verify_rsa()
135 in = mpi_read_from_buffer(sig, &nret); in digsig_verify_rsa()
/openbmc/linux/tools/testing/selftests/powerpc/syscalls/
H A Drtas_filter.c43 __be32 nret; member
128 args.nret = cpu_to_be32(nrets); in rtas_call()
/openbmc/qemu/include/hw/ppc/
H A Dspapr.h820 uint32_t nret, target_ulong rets);
824 uint32_t nret, target_ulong rets);
/openbmc/qemu/tests/qtest/
H A Dlibqtest.h576 uint32_t nret, uint64_t ret);

12