Lines Matching refs:rpcp
90 #define NLM_INVOKE_CALLBACK(descr, rpcp, resp, callb) \
94 _stat = (*(callb))(resp, NULL, (rpcp)->nr_handle); \
98 CLNT_GETERR((rpcp)->nr_handle, &_err); \
110 nlm_rpc_t *rpcp,
326 nlm_rpc_t *rpcp = NULL;
347 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
431 if (cb != NULL && rpcp != NULL)
432 NLM_INVOKE_CALLBACK("test", rpcp, resp, cb);
436 if (rpcp != NULL)
437 nlm_host_rele_rpc(host, rpcp);
468 nlm_rpc_t *rpcp = NULL;
505 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
636 if (res_cb != NULL && rpcp != NULL)
637 NLM_INVOKE_CALLBACK("lock", rpcp, resp, res_cb);
658 ASSERT(rpcp != NULL);
660 nlm_block(argp, host, nvp, rpcp, &fl, grant_cb);
666 if (rpcp != NULL)
667 nlm_host_rele_rpc(host, rpcp);
682 nlm_rpc_t *rpcp,
739 NLM_INVOKE_CALLBACK("grant", rpcp, &args, grant_cb);
777 nlm_rpc_t *rpcp = NULL;
795 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
848 if (cb != NULL && rpcp != NULL)
849 NLM_INVOKE_CALLBACK("cancel", rpcp, resp, cb);
854 if (rpcp != NULL)
855 nlm_host_rele_rpc(host, rpcp);
873 nlm_rpc_t *rpcp = NULL;
900 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
933 if (cb != NULL && rpcp != NULL)
934 NLM_INVOKE_CALLBACK("unlock", rpcp, resp, cb);
941 if (rpcp != NULL)
942 nlm_host_rele_rpc(host, rpcp);
970 nlm_rpc_t *rpcp = NULL;
986 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
1005 if (cb != NULL && rpcp != NULL)
1006 NLM_INVOKE_CALLBACK("do_granted", rpcp, resp, cb);
1008 if (rpcp != NULL)
1009 nlm_host_rele_rpc(host, rpcp);