Lines Matching defs:host

108 	struct nlm_host *host,
127 struct nlm_host *host, rpcvers_t vers, short type)
155 fl->l_sysid = host->nh_sysid;
259 * hosts had a status change. The host can be either an
263 * state of host changes. An even number indicates that
264 * the host is down, while an odd number indicates that
265 * the host is up.
276 * the host this call applies to.
283 struct nlm_host *host;
292 host = nlm_host_find_by_sysid(g, (sysid_t)sysid);
293 if (host == NULL)
296 nlm_host_notify_server(host, argp->state);
297 nlm_host_notify_client(host, argp->state);
298 nlm_host_release(g, host);
323 struct nlm_host *host;
341 host = nlm_host_findcreate(g, name, netid, addr);
342 if (host == NULL) {
347 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
366 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers,
437 nlm_host_rele_rpc(host, rpcp);
439 nlm_host_release(g, host);
465 struct nlm_host *host = NULL;
483 host = nlm_host_findcreate(g, name, netid, addr);
484 if (host == NULL) {
492 struct nlm_host *, host, nlm4_lockargs *, argp);
500 * Note: host object carries transport type.
505 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
521 * Check whether we missed host shutdown event
523 if (nlm_host_get_state(host) != argp->state)
524 nlm_host_notify_server(host, argp->state);
530 nvp = nlm_fh_to_vhold(host, &argp->alock.fh);
537 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers,
629 * Cleanup is via unlock or host rele (statmon).
648 nlm_host_monitor(g, host, argp->state);
660 nlm_block(argp, host, nvp, rpcp, &fl, grant_cb);
664 struct nlm_host *, host, nlm4_res *, resp);
667 nlm_host_rele_rpc(host, rpcp);
669 nlm_vhold_release(host, nvp);
670 nlm_host_release(g, host);
680 struct nlm_host *host,
701 error = nlm_slreq_register(host, nvp, flp);
713 cb_data.hostp = host;
728 (void) nlm_slreq_unregister(host, nvp, flp);
774 struct nlm_host *host;
789 host = nlm_host_findcreate(g, name, netid, addr);
790 if (host == NULL) {
795 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
803 struct nlm_host *, host, nlm4_cancargs *, argp);
810 nvp = nlm_fh_to_vhold(host, &argp->alock.fh);
817 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers,
824 error = nlm_slreq_unregister(host, nvp, &fl);
852 struct nlm_host *, host, nlm4_res *, resp);
855 nlm_host_rele_rpc(host, rpcp);
857 nlm_vhold_release(host, nvp);
858 nlm_host_release(g, host);
871 struct nlm_host *host;
895 host = nlm_host_findcreate(g, name, netid, addr);
896 if (host == NULL)
900 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
906 struct nlm_host *, host, nlm4_unlockargs *, argp);
918 error = nlm_init_flock(&fl, &argp->alock, host, sr->rq_vers, F_UNLCK);
937 struct nlm_host *, host, nlm4_res *, resp);
942 nlm_host_rele_rpc(host, rpcp);
944 nlm_host_release(g, host);
969 struct nlm_host *host;
981 host = nlm_host_find_by_sysid(g, oh->oh_sysid);
982 if (host == NULL)
986 error = nlm_host_get_rpc(host, sr->rq_vers, &rpcp);
996 error = nlm_slock_grant(g, host, &argp->alock);
1009 nlm_host_rele_rpc(host, rpcp);
1011 nlm_host_release(g, host);
1041 * If needed take the host out of the idle list since
1078 nlm4_share *nshare, struct nlm_host *host)
1113 shr->s_sysid = host->nh_sysid;
1128 struct nlm_host *host;
1143 host = nlm_host_findcreate(g, name, netid, addr);
1144 if (host == NULL) {
1150 struct nlm_host *, host, nlm4_shareargs *, argp);
1161 nvp = nlm_fh_to_vhold(host, &argp->share.fh);
1168 nlm_init_shrlock(&shr, &argp->share, host);
1174 nlm_host_monitor(g, host, 0);
1181 struct nlm_host *, host, nlm4_shareres *, resp);
1183 nlm_vhold_release(host, nvp);
1184 nlm_host_release(g, host);
1196 struct nlm_host *host;
1209 host = nlm_host_find(g, netid, addr);
1210 if (host == NULL) {
1216 struct nlm_host *, host, nlm4_shareargs *, argp);
1230 nlm_init_shrlock(&shr, &argp->share, host);
1239 struct nlm_host *, host, nlm4_shareres *, resp);
1244 nlm_host_release(g, host);