Lines Matching refs:nargs
21 __be32 nargs; /* Number of input arguments. */ member
41 int of_call_prom(const char *service, int nargs, int nret, ...) in of_call_prom() argument
48 args.nargs = cpu_to_be32(nargs); in of_call_prom()
52 for (i = 0; i < nargs; i++) in of_call_prom()
57 args.args[nargs+i] = 0; 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
73 args.nargs = cpu_to_be32(nargs); in of_call_prom_ret()
77 for (i = 0; i < nargs; i++) in of_call_prom_ret()
82 args.args[nargs+i] = 0; in of_call_prom_ret()
89 rets[i-1] = be32_to_cpu(args.args[nargs+i]); in of_call_prom_ret()
91 return (nret > 0) ? be32_to_cpu(args.args[nargs]) : 0; in of_call_prom_ret()