Lines Matching refs:proc
84 proc_list *proc; in write_sample_client() local
97 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_sample_client()
101 if (!streq(proc->res_type, "oneway")) { in write_sample_client()
103 if (!streq(proc->res_type, "void")) in write_sample_client()
104 ptype(proc->res_prefix, in write_sample_client()
105 proc->res_type, 1); in write_sample_client()
111 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client()
115 if (proc->arg_num < 2 && !newstyle) { in write_sample_client()
117 if (!streq(proc->args.decls->decl.type, "void")) in write_sample_client()
118 ptype(proc->args.decls->decl.prefix, in write_sample_client()
119 proc->args.decls->decl.type, 1); in write_sample_client()
124 pvname(proc->proc_name, vp->vers_num); in write_sample_client()
126 } else if (!streq(proc->args.decls->decl.type, "void")) { in write_sample_client()
127 for (l = proc->args.decls; l != NULL; l = l->next) { in write_sample_client()
132 pvname(proc->proc_name, vp->vers_num); in write_sample_client()
149 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_sample_client()
154 pvname(proc->proc_name, vp->vers_num); in write_sample_client()
155 if (proc->arg_num < 2 && !newstyle) { in write_sample_client()
157 if (streq(proc->args.decls->decl.type, "void")) in write_sample_client()
161 pvname(proc->proc_name, vp->vers_num); in write_sample_client()
163 if (streq(proc->res_type, "oneway")) in write_sample_client()
171 } else if (streq(proc->args.decls->decl.type, "void")) { in write_sample_client()
173 if (streq(proc->res_type, "oneway")) in write_sample_client()
182 for (l = proc->args.decls; l != NULL; l = l->next) { in write_sample_client()
183 pvname(proc->proc_name, vp->vers_num); in write_sample_client()
187 if (!streq(proc->res_type, "oneway")) in write_sample_client()
197 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client()
214 proc_list *proc; in write_sample_server() local
217 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_sample_server()
220 return_type(proc); in write_sample_server()
226 pvname_svc(proc->proc_name, vp->vers_num); in write_sample_server()
228 pvname(proc->proc_name, vp->vers_num); in write_sample_server()
229 printarglist(proc, "result", RQSTP, "struct svc_req *"); in write_sample_server()
235 if ((!streq(proc->res_type, "void")) && in write_sample_server()
236 (!streq(proc->res_type, "oneway"))) in write_sample_server()
237 return_type(proc); in write_sample_server()
248 if (!streq(proc->res_type, "void")) in write_sample_server()