Lines Matching refs:host

34 	struct nlm_host		*host = NULL;  in nlm4svc_retrieve_args()  local
53 if (!(host = nlmsvc_lookup_host(rqstp)) in nlm4svc_retrieve_args()
54 || (argp->monitor && !host->h_monitored && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
56 *hostp = host; in nlm4svc_retrieve_args()
66 lock->fl.fl_owner = (fl_owner_t) host; in nlm4svc_retrieve_args()
72 if (host) in nlm4svc_retrieve_args()
73 nlm_release_host(host); in nlm4svc_retrieve_args()
96 struct nlm_host *host; in nlm4svc_proc_test() local
109 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
116 nlm_release_host(host); in nlm4svc_proc_test()
125 struct nlm_host *host; in nlm4svc_proc_lock() local
139 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_lock()
149 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in nlm4svc_proc_lock()
159 nlm_release_host(host); in nlm4svc_proc_lock()
168 struct nlm_host *host; in nlm4svc_proc_cancel() local
182 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_cancel()
189 nlm_release_host(host); in nlm4svc_proc_cancel()
201 struct nlm_host *host; in nlm4svc_proc_unlock() local
215 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unlock()
222 nlm_release_host(host); in nlm4svc_proc_unlock()
327 struct nlm_host *host; in nlm4svc_proc_share() local
341 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
345 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
348 nlm_release_host(host); in nlm4svc_proc_share()
360 struct nlm_host *host; in nlm4svc_proc_unshare() local
374 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
378 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
381 nlm_release_host(host); in nlm4svc_proc_unshare()
406 struct nlm_host *host; in nlm4svc_proc_free_all() local
409 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
412 nlmsvc_free_host_resources(host); in nlm4svc_proc_free_all()
413 nlm_release_host(host); in nlm4svc_proc_free_all()
427 struct nlm_host *host; in nlm4svc_proc_sm_notify() local
443 if ((host = nlmclnt_lookup_host(&saddr, prot, vers)) != NULL) { in nlm4svc_proc_sm_notify()
444 nlmclnt_recovery(host, argp->state); in nlm4svc_proc_sm_notify()
445 nlm_release_host(host); in nlm4svc_proc_sm_notify()
453 && (host = nlm_lookup_host(clnt, &saddr, 0, 0)) != NULL) { in nlm4svc_proc_sm_notify()
454 nlmsvc_free_host_resources(host); in nlm4svc_proc_sm_notify()
456 nlm_release_host(host); in nlm4svc_proc_sm_notify()
486 struct nlm_host *host; in nlm4svc_callback() local
492 host = nlmclnt_lookup_host(&rqstp->rq_addr, in nlm4svc_callback()
494 if (!host) { in nlm4svc_callback()
500 call->a_host = host; in nlm4svc_callback()
509 nlm_release_host(host); in nlm4svc_callback()