Home
last modified time | relevance | path

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

/arch/powerpc/boot/
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 …]
Dof.h11 int of_call_prom(const char *service, int nargs, int nret, ...);
/arch/powerpc/kernel/
Drtas.c395 err_args.nret = cpu_to_be32(1); in __fetch_rtas_last_error()
433 va_rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, in va_rtas_call_unlocked() argument
440 args->nret = cpu_to_be32(nret); in va_rtas_call_unlocked()
446 for (i = 0; i < nret; ++i) in va_rtas_call_unlocked()
452 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, ...) in rtas_call_unlocked() argument
456 va_start(list, nret); in rtas_call_unlocked()
457 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call_unlocked()
461 int rtas_call(int token, int nargs, int nret, int *outputs, ...) in rtas_call() argument
479 va_rtas_call_unlocked(rtas_args, token, nargs, nret, list); in rtas_call()
487 if (nret > 1 && outputs != NULL) in rtas_call()
[all …]
Dprom_init.c115 __be32 nret; member
391 static int __init call_prom(const char *service, int nargs, int nret, ...) in call_prom() argument
399 args.nret = cpu_to_be32(nret); in call_prom()
401 va_start(list, nret); in call_prom()
406 for (i = 0; i < nret; i++) in call_prom()
412 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in call_prom()
415 static int __init call_prom_ret(const char *service, int nargs, int nret, in call_prom_ret() argument
424 args.nret = cpu_to_be32(nret); in call_prom_ret()
431 for (i = 0; i < nret; i++) in call_prom_ret()
438 for (i = 1; i < nret; ++i) in call_prom_ret()
[all …]
/arch/powerpc/kvm/
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()
/arch/powerpc/include/asm/
Drtas-types.h12 __be32 nret; member
Drtas.h244 int nret, ...);