Lines Matching refs:nret
387 err_args.nret = cpu_to_be32(1); in __fetch_rtas_last_error()
425 va_rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, in va_rtas_call_unlocked() argument
432 args->nret = cpu_to_be32(nret); in va_rtas_call_unlocked()
438 for (i = 0; i < nret; ++i) in va_rtas_call_unlocked()
444 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, ...) in rtas_call_unlocked() argument
448 va_start(list, nret); in rtas_call_unlocked()
449 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call_unlocked()
453 int rtas_call(int token, int nargs, int nret, int *outputs, ...) in rtas_call() argument
471 va_rtas_call_unlocked(rtas_args, token, nargs, nret, list); in rtas_call()
479 if (nret > 1 && outputs != NULL) in rtas_call()
480 for (i = 0; i < nret-1; ++i) in rtas_call()
482 ret = (nret > 0)? be32_to_cpu(rtas_args->rets[0]): 0; in rtas_call()
857 int rtas_call_reentrant(int token, int nargs, int nret, int *outputs, ...) in rtas_call_reentrant() argument
874 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call_reentrant()
877 if (nret > 1 && outputs) in rtas_call_reentrant()
878 for (i = 0; i < nret - 1; ++i) in rtas_call_reentrant()
881 if (nret > 0) in rtas_call_reentrant()
1090 int nargs, nret, token; in SYSCALL_DEFINE1() local
1102 nret = be32_to_cpu(args.nret); in SYSCALL_DEFINE1()
1106 || nret > ARRAY_SIZE(args.args) in SYSCALL_DEFINE1()
1107 || nargs + nret > ARRAY_SIZE(args.args)) in SYSCALL_DEFINE1()
1119 memset(args.rets, 0, nret * sizeof(rtas_arg_t)); in SYSCALL_DEFINE1()
1169 nret * sizeof(rtas_arg_t)) != 0) in SYSCALL_DEFINE1()