Lines Matching refs:host
29 struct nlm_host *host = NULL; in nlm4svc_retrieve_args() local
39 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args()
40 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
42 *hostp = host; in nlm4svc_retrieve_args()
52 lock->fl.fl_owner = (fl_owner_t) host; in nlm4svc_retrieve_args()
59 nlm_release_host(host); in nlm4svc_retrieve_args()
82 struct nlm_host *host; in nlm4svc_proc_test() local
90 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
94 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
100 nlm_release_host(host); in nlm4svc_proc_test()
109 struct nlm_host *host; in nlm4svc_proc_lock() local
118 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_lock()
128 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in nlm4svc_proc_lock()
134 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in nlm4svc_proc_lock()
142 nlm_release_host(host); in nlm4svc_proc_lock()
151 struct nlm_host *host; in nlm4svc_proc_cancel() local
165 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_cancel()
172 nlm_release_host(host); in nlm4svc_proc_cancel()
184 struct nlm_host *host; in nlm4svc_proc_unlock() local
198 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unlock()
205 nlm_release_host(host); in nlm4svc_proc_unlock()
255 struct nlm_host *host; in nlm4svc_callback() local
259 host = nlmsvc_lookup_host(rqstp, in nlm4svc_callback()
262 if (host == NULL) in nlm4svc_callback()
265 call = nlm_alloc_call(host); in nlm4svc_callback()
323 struct nlm_host *host; in nlm4svc_proc_share() local
337 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
341 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
344 nlm_release_host(host); in nlm4svc_proc_share()
356 struct nlm_host *host; in nlm4svc_proc_unshare() local
370 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
374 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
377 nlm_release_host(host); in nlm4svc_proc_unshare()
402 struct nlm_host *host; in nlm4svc_proc_free_all() local
405 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
408 nlmsvc_free_host_resources(host); in nlm4svc_proc_free_all()
409 nlm_release_host(host); in nlm4svc_proc_free_all()