Lines Matching refs:host
26 struct nlm_host *host = NULL; in nlm4svc_retrieve_args() local
40 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args()
41 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
43 *hostp = host; in nlm4svc_retrieve_args()
64 nlmsvc_locks_init_private(&lock->fl, host, (pid_t)lock->svid); in nlm4svc_retrieve_args()
67 nlmsvc_release_host(host); in nlm4svc_retrieve_args()
75 nlmsvc_release_host(host); in nlm4svc_retrieve_args()
98 struct nlm_host *host; in __nlm4svc_proc_test() local
107 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
112 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_test()
120 nlmsvc_release_host(host); in __nlm4svc_proc_test()
135 struct nlm_host *host; in __nlm4svc_proc_lock() local
144 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
148 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_lock()
157 nlmsvc_release_host(host); in __nlm4svc_proc_lock()
172 struct nlm_host *host; in __nlm4svc_proc_cancel() local
186 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_cancel()
194 nlmsvc_release_host(host); in __nlm4svc_proc_cancel()
212 struct nlm_host *host; in __nlm4svc_proc_unlock() local
226 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_unlock()
234 nlmsvc_release_host(host); in __nlm4svc_proc_unlock()
294 struct nlm_host *host; in nlm4svc_callback() local
298 host = nlmsvc_lookup_host(rqstp, in nlm4svc_callback()
301 if (host == NULL) in nlm4svc_callback()
304 call = nlm_alloc_call(host); in nlm4svc_callback()
305 nlmsvc_release_host(host); in nlm4svc_callback()
359 struct nlm_host *host; in nlm4svc_proc_share() local
373 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
377 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
381 nlmsvc_release_host(host); in nlm4svc_proc_share()
394 struct nlm_host *host; in nlm4svc_proc_unshare() local
408 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
412 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
416 nlmsvc_release_host(host); in nlm4svc_proc_unshare()
442 struct nlm_host *host; in nlm4svc_proc_free_all() local
445 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
448 nlmsvc_free_host_resources(host); in nlm4svc_proc_free_all()
449 nlmsvc_release_host(host); in nlm4svc_proc_free_all()