Lines Matching refs:host

63 	struct nlm_host		*host = NULL;  in nlmsvc_retrieve_args()  local
82 if (!(host = nlmsvc_lookup_host(rqstp)) in nlmsvc_retrieve_args()
83 || (argp->monitor && !host->h_monitored && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
85 *hostp = host; in nlmsvc_retrieve_args()
95 lock->fl.fl_owner = (fl_owner_t) host; in nlmsvc_retrieve_args()
101 if (host) in nlmsvc_retrieve_args()
102 nlm_release_host(host); in nlmsvc_retrieve_args()
123 struct nlm_host *host; in nlmsvc_proc_test() local
136 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
144 nlm_release_host(host); in nlmsvc_proc_test()
153 struct nlm_host *host; in nlmsvc_proc_lock() local
167 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_lock()
177 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in nlmsvc_proc_lock()
187 nlm_release_host(host); in nlmsvc_proc_lock()
196 struct nlm_host *host; in nlmsvc_proc_cancel() local
210 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_cancel()
217 nlm_release_host(host); in nlmsvc_proc_cancel()
229 struct nlm_host *host; in nlmsvc_proc_unlock() local
243 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unlock()
250 nlm_release_host(host); in nlmsvc_proc_unlock()
355 struct nlm_host *host; in nlmsvc_proc_share() local
369 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
373 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
376 nlm_release_host(host); in nlmsvc_proc_share()
388 struct nlm_host *host; in nlmsvc_proc_unshare() local
402 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
406 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
409 nlm_release_host(host); in nlmsvc_proc_unshare()
434 struct nlm_host *host; in nlmsvc_proc_free_all() local
437 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
440 nlmsvc_free_host_resources(host); in nlmsvc_proc_free_all()
441 nlm_release_host(host); in nlmsvc_proc_free_all()
455 struct nlm_host *host; in nlmsvc_proc_sm_notify() local
471 if ((host = nlmclnt_lookup_host(&saddr, prot, vers)) != NULL) { in nlmsvc_proc_sm_notify()
472 nlmclnt_recovery(host, argp->state); in nlmsvc_proc_sm_notify()
473 nlm_release_host(host); in nlmsvc_proc_sm_notify()
481 && (host = nlm_lookup_host(clnt, &saddr, 0, 0)) != NULL) { in nlmsvc_proc_sm_notify()
482 nlmsvc_free_host_resources(host); in nlmsvc_proc_sm_notify()
484 nlm_release_host(host); in nlmsvc_proc_sm_notify()
512 struct nlm_host *host; in nlmsvc_callback() local
518 host = nlmclnt_lookup_host(&rqstp->rq_addr, in nlmsvc_callback()
520 if (!host) { in nlmsvc_callback()
526 call->a_host = host; in nlmsvc_callback()
534 nlm_release_host(host); in nlmsvc_callback()