Lines Matching refs:nargs
25 __be32 nargs; /* Number of input arguments. */ member
45 int of_call_prom(const char *service, int nargs, int nret, ...) in of_call_prom() argument
52 args.nargs = cpu_to_be32(nargs); in of_call_prom()
56 for (i = 0; i < nargs; i++) in of_call_prom()
61 args.args[nargs+i] = 0; in of_call_prom()
66 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in of_call_prom()
69 static int of_call_prom_ret(const char *service, int nargs, int nret, in of_call_prom_ret() argument
77 args.nargs = cpu_to_be32(nargs); in of_call_prom_ret()
81 for (i = 0; i < nargs; i++) in of_call_prom_ret()
86 args.args[nargs+i] = 0; in of_call_prom_ret()
93 rets[i-1] = be32_to_cpu(args.args[nargs+i]); in of_call_prom_ret()
95 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in of_call_prom_ret()