Lines Matching refs:resp

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