Lines Matching refs:resp

91 #define	NLM_INVOKE_CALLBACK(descr, rpcp, resp, callb)			\  argument
95 _stat = (*(callb))(resp, NULL, (rpcp)->nr_handle); \
325 nlm_do_test(nlm4_testargs *argp, nlm4_testres *resp, in nlm_do_test() argument
340 nlm_copy_netobj(&resp->cookie, &argp->cookie); in nlm_do_test()
349 resp->stat.stat = nlm4_denied_nolocks; in nlm_do_test()
355 resp->stat.stat = nlm4_denied_nolocks; in nlm_do_test()
362 resp->stat.stat = nlm4_stale_fh; in nlm_do_test()
367 resp->stat.stat = nlm4_denied_grace_period; in nlm_do_test()
375 resp->stat.stat = nlm4_failed; in nlm_do_test()
384 resp->stat.stat = nlm4_failed; in nlm_do_test()
389 resp->stat.stat = nlm4_granted; in nlm_do_test()
392 resp->stat.stat = nlm4_denied; in nlm_do_test()
424 lh = &resp->stat.nlm4_testrply_u.holder; in nlm_do_test()
438 NLM_INVOKE_CALLBACK("test", rpcp, resp, cb); in nlm_do_test()
475 nlm_do_lock(nlm4_lockargs *argp, nlm4_res *resp, struct svc_req *sr, in nlm_do_lock() argument
491 nlm_copy_netobj(&resp->cookie, &argp->cookie); in nlm_do_lock()
634 resp->stat.stat = status; in nlm_do_lock()
648 if (!(*reply_cb)(sr->rq_xprt, resp)) in nlm_do_lock()
652 NLM_INVOKE_CALLBACK("lock", rpcp, resp, res_cb); in nlm_do_lock()
680 struct nlm_host *, host, nlm4_res *, resp); in nlm_do_lock()
838 nlm_do_cancel(nlm4_cancargs *argp, nlm4_res *resp, in nlm_do_cancel() argument
851 nlm_copy_netobj(&resp->cookie, &argp->cookie); in nlm_do_cancel()
859 resp->stat.stat = nlm4_denied_nolocks; in nlm_do_cancel()
865 resp->stat.stat = nlm4_denied_nolocks; in nlm_do_cancel()
874 resp->stat.stat = nlm4_denied_grace_period; in nlm_do_cancel()
880 resp->stat.stat = nlm4_stale_fh; in nlm_do_cancel()
888 resp->stat.stat = nlm4_failed; in nlm_do_cancel()
899 resp->stat.stat = nlm4_denied; in nlm_do_cancel()
908 resp->stat.stat = (error == 0) ? in nlm_do_cancel()
917 NLM_INVOKE_CALLBACK("cancel", rpcp, resp, cb); in nlm_do_cancel()
920 struct nlm_host *, host, nlm4_res *, resp); in nlm_do_cancel()
935 nlm_do_unlock(nlm4_unlockargs *argp, nlm4_res *resp, in nlm_do_unlock() argument
948 nlm_copy_netobj(&resp->cookie, &argp->cookie); in nlm_do_unlock()
960 resp->stat.stat = nlm4_granted; in nlm_do_unlock()
977 resp->stat.stat = nlm4_denied_grace_period; in nlm_do_unlock()
1002 NLM_INVOKE_CALLBACK("unlock", rpcp, resp, cb); in nlm_do_unlock()
1005 struct nlm_host *, host, nlm4_res *, resp); in nlm_do_unlock()
1032 nlm_do_granted(nlm4_testargs *argp, nlm4_res *resp, in nlm_do_granted() argument
1041 nlm_copy_netobj(&resp->cookie, &argp->cookie); in nlm_do_granted()
1042 resp->stat.stat = nlm4_denied; in nlm_do_granted()
1060 resp->stat.stat = nlm4_denied_grace_period; in nlm_do_granted()
1066 resp->stat.stat = nlm4_granted; in nlm_do_granted()
1074 NLM_INVOKE_CALLBACK("do_granted", rpcp, resp, cb); in nlm_do_granted()
1193 nlm_do_share(nlm4_shareargs *argp, nlm4_shareres *resp, struct svc_req *sr) in nlm_do_share() argument
1204 nlm_copy_netobj(&resp->cookie, &argp->cookie); in nlm_do_share()
1213 resp->stat = nlm4_denied_nolocks; in nlm_do_share()
1221 resp->stat = nlm4_denied_grace_period; in nlm_do_share()
1231 resp->stat = nlm4_stale_fh; in nlm_do_share()
1241 resp->stat = nlm4_granted; in nlm_do_share()
1244 resp->stat = nlm4_denied; in nlm_do_share()
1249 struct nlm_host *, host, nlm4_shareres *, resp); in nlm_do_share()
1261 nlm_do_unshare(nlm4_shareargs *argp, nlm4_shareres *resp, struct svc_req *sr) in nlm_do_unshare() argument
1271 nlm_copy_netobj(&resp->cookie, &argp->cookie); in nlm_do_unshare()
1279 resp->stat = nlm4_denied_nolocks; in nlm_do_unshare()
1287 resp->stat = nlm4_denied_grace_period; in nlm_do_unshare()
1293 resp->stat = nlm4_stale_fh; in nlm_do_unshare()
1303 resp->stat = nlm4_granted; in nlm_do_unshare()
1307 struct nlm_host *, host, nlm4_shareres *, resp); in nlm_do_unshare()