Lines Matching refs:rqstp
40 void nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp);
41 void nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
42 void nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp);
43 void nlm_prog_4(struct svc_req *rqstp, SVCXPRT *transp);
46 nlm_prog_0(struct svc_req *rqstp, SVCXPRT *transp) in nlm_prog_0() argument
56 switch (rqstp->rq_proc) { in nlm_prog_0()
58 (void) svc_sendreply(rqstp, in nlm_prog_0()
60 svc_freereq(rqstp); in nlm_prog_0()
70 svcerr_noproc(rqstp); in nlm_prog_0()
71 svc_freereq(rqstp); in nlm_prog_0()
75 if (!svc_getargs(rqstp, xdr_argument, (char *)(caddr_t) &argument)) { in nlm_prog_0()
76 svcerr_decode(rqstp); in nlm_prog_0()
77 svc_freereq(rqstp); in nlm_prog_0()
80 retval = (bool_t) (*local)((char *)&argument, (void *)&result, rqstp); in nlm_prog_0()
81 if (retval > 0 && !svc_sendreply(rqstp, xdr_result, (char *)&result)) { in nlm_prog_0()
82 svcerr_systemerr(rqstp); in nlm_prog_0()
84 if (!svc_freeargs(rqstp, xdr_argument, (char *)(caddr_t) &argument)) { in nlm_prog_0()
88 svc_freereq(rqstp); in nlm_prog_0()
94 nlm_prog_1(struct svc_req *rqstp, SVCXPRT *transp) in nlm_prog_1() argument
124 switch (rqstp->rq_proc) { in nlm_prog_1()
126 (void) svc_sendreply(rqstp, in nlm_prog_1()
128 svc_freereq(rqstp); in nlm_prog_1()
222 svcerr_noproc(rqstp); in nlm_prog_1()
223 svc_freereq(rqstp); in nlm_prog_1()
227 if (!svc_getargs(rqstp, xdr_argument, (char *)(caddr_t) &argument)) { in nlm_prog_1()
228 svcerr_decode(rqstp); in nlm_prog_1()
229 svc_freereq(rqstp); in nlm_prog_1()
232 retval = (bool_t) (*local)((char *)&argument, (void *)&result, rqstp); in nlm_prog_1()
233 if (retval > 0 && !svc_sendreply(rqstp, xdr_result, (char *)&result)) { in nlm_prog_1()
234 svcerr_systemerr(rqstp); in nlm_prog_1()
236 if (!svc_freeargs(rqstp, xdr_argument, (char *)(caddr_t) &argument)) { in nlm_prog_1()
240 svc_freereq(rqstp); in nlm_prog_1()
248 nlm_prog_3(struct svc_req *rqstp, SVCXPRT *transp) in nlm_prog_3() argument
265 switch (rqstp->rq_proc) { in nlm_prog_3()
267 (void) svc_sendreply(rqstp, in nlm_prog_3()
269 svc_freereq(rqstp); in nlm_prog_3()
287 nlm_prog_1(rqstp, transp); in nlm_prog_3()
315 svcerr_noproc(rqstp); in nlm_prog_3()
316 svc_freereq(rqstp); in nlm_prog_3()
320 if (!svc_getargs(rqstp, xdr_argument, (char *)(caddr_t) &argument)) { in nlm_prog_3()
321 svcerr_decode(rqstp); in nlm_prog_3()
322 svc_freereq(rqstp); in nlm_prog_3()
325 retval = (bool_t) (*local)((char *)&argument, (void *)&result, rqstp); in nlm_prog_3()
326 if (retval > 0 && !svc_sendreply(rqstp, xdr_result, (char *)&result)) { in nlm_prog_3()
327 svcerr_systemerr(rqstp); in nlm_prog_3()
329 if (!svc_freeargs(rqstp, xdr_argument, (char *)(caddr_t) &argument)) { in nlm_prog_3()
333 svc_freereq(rqstp); in nlm_prog_3()
341 nlm_prog_4(struct svc_req *rqstp, SVCXPRT *transp) in nlm_prog_4() argument
378 switch (rqstp->rq_proc) { in nlm_prog_4()
380 (void) svc_sendreply(rqstp, in nlm_prog_4()
382 svc_freereq(rqstp); in nlm_prog_4()
500 svcerr_noproc(rqstp); in nlm_prog_4()
501 svc_freereq(rqstp); in nlm_prog_4()
505 if (!svc_getargs(rqstp, xdr_argument, (char *)(caddr_t) &argument)) { in nlm_prog_4()
506 svcerr_decode(rqstp); in nlm_prog_4()
507 svc_freereq(rqstp); in nlm_prog_4()
510 retval = (bool_t) (*local)((char *)&argument, (void *)&result, rqstp); in nlm_prog_4()
511 if (retval > 0 && !svc_sendreply(rqstp, xdr_result, (char *)&result)) { in nlm_prog_4()
512 svcerr_systemerr(rqstp); in nlm_prog_4()
514 if (!svc_freeargs(rqstp, xdr_argument, (char *)(caddr_t) &argument)) { in nlm_prog_4()
518 svc_freereq(rqstp); in nlm_prog_4()