Lines Matching refs:nret
22 __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()
91 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in of_call_prom_ret()