Lines Matching defs:resp
90 #define NLM_INVOKE_CALLBACK(descr, rpcp, resp, callb) \
94 _stat = (*(callb))(resp, NULL, (rpcp)->nr_handle); \
319 nlm_do_test(nlm4_testargs *argp, nlm4_testres *resp,
334 nlm_copy_netobj(&resp->cookie, &argp->cookie);
343 resp->stat.stat = nlm4_denied_nolocks;
349 resp->stat.stat = nlm4_denied_nolocks;
356 resp->stat.stat = nlm4_stale_fh;
361 resp->stat.stat = nlm4_denied_grace_period;
369 resp->stat.stat = nlm4_failed;
378 resp->stat.stat = nlm4_failed;
383 resp->stat.stat = nlm4_granted;
386 resp->stat.stat = nlm4_denied;
418 lh = &resp->stat.nlm4_testrply_u.holder;
432 NLM_INVOKE_CALLBACK("test", rpcp, resp, cb);
460 nlm_do_lock(nlm4_lockargs *argp, nlm4_res *resp, struct svc_req *sr,
476 nlm_copy_netobj(&resp->cookie, &argp->cookie);
619 resp->stat.stat = status;
633 if (!(*reply_cb)(sr->rq_xprt, resp))
637 NLM_INVOKE_CALLBACK("lock", rpcp, resp, res_cb);
664 struct nlm_host *, host, nlm4_res *, resp);
770 nlm_do_cancel(nlm4_cancargs *argp, nlm4_res *resp,
783 nlm_copy_netobj(&resp->cookie, &argp->cookie);
791 resp->stat.stat = nlm4_denied_nolocks;
797 resp->stat.stat = nlm4_denied_nolocks;
806 resp->stat.stat = nlm4_denied_grace_period;
812 resp->stat.stat = nlm4_stale_fh;
820 resp->stat.stat = nlm4_failed;
831 resp->stat.stat = nlm4_denied;
840 resp->stat.stat = (error == 0) ?
849 NLM_INVOKE_CALLBACK("cancel", rpcp, resp, cb);
852 struct nlm_host *, host, nlm4_res *, resp);
867 nlm_do_unlock(nlm4_unlockargs *argp, nlm4_res *resp,
880 nlm_copy_netobj(&resp->cookie, &argp->cookie);
892 resp->stat.stat = nlm4_granted;
909 resp->stat.stat = nlm4_denied_grace_period;
934 NLM_INVOKE_CALLBACK("unlock", rpcp, resp, cb);
937 struct nlm_host *, host, nlm4_res *, resp);
964 nlm_do_granted(nlm4_testargs *argp, nlm4_res *resp,
973 nlm_copy_netobj(&resp->cookie, &argp->cookie);
974 resp->stat.stat = nlm4_denied;
992 resp->stat.stat = nlm4_denied_grace_period;
998 resp->stat.stat = nlm4_granted;
1006 NLM_INVOKE_CALLBACK("do_granted", rpcp, resp, cb);
1125 nlm_do_share(nlm4_shareargs *argp, nlm4_shareres *resp, struct svc_req *sr)
1136 nlm_copy_netobj(&resp->cookie, &argp->cookie);
1145 resp->stat = nlm4_denied_nolocks;
1153 resp->stat = nlm4_denied_grace_period;
1163 resp->stat = nlm4_stale_fh;
1173 resp->stat = nlm4_granted;
1176 resp->stat = nlm4_denied;
1181 struct nlm_host *, host, nlm4_shareres *, resp);
1193 nlm_do_unshare(nlm4_shareargs *argp, nlm4_shareres *resp, struct svc_req *sr)
1203 nlm_copy_netobj(&resp->cookie, &argp->cookie);
1211 resp->stat = nlm4_denied_nolocks;
1219 resp->stat = nlm4_denied_grace_period;
1225 resp->stat = nlm4_stale_fh;
1235 resp->stat = nlm4_granted;
1239 struct nlm_host *, host, nlm4_shareres *, resp);