Lines Matching refs:host
25 struct nlm_host *host = NULL; in nlm4svc_retrieve_args() local
35 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args()
36 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
38 *hostp = host; in nlm4svc_retrieve_args()
48 lock->fl.fl_owner = (fl_owner_t) host; in nlm4svc_retrieve_args()
55 nlmsvc_release_host(host); in nlm4svc_retrieve_args()
78 struct nlm_host *host; in nlm4svc_proc_test() local
86 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
90 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
96 nlmsvc_release_host(host); in nlm4svc_proc_test()
105 struct nlm_host *host; in nlm4svc_proc_lock() local
114 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_lock()
124 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in nlm4svc_proc_lock()
130 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in nlm4svc_proc_lock()
138 nlmsvc_release_host(host); in nlm4svc_proc_lock()
147 struct nlm_host *host; in nlm4svc_proc_cancel() local
161 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_cancel()
168 nlmsvc_release_host(host); in nlm4svc_proc_cancel()
180 struct nlm_host *host; in nlm4svc_proc_unlock() local
194 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unlock()
201 nlmsvc_release_host(host); in nlm4svc_proc_unlock()
249 struct nlm_host *host; in nlm4svc_callback() local
253 host = nlmsvc_lookup_host(rqstp, in nlm4svc_callback()
256 if (host == NULL) in nlm4svc_callback()
259 call = nlm_alloc_call(host); in nlm4svc_callback()
260 nlmsvc_release_host(host); in nlm4svc_callback()
318 struct nlm_host *host; in nlm4svc_proc_share() local
332 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
336 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
339 nlmsvc_release_host(host); in nlm4svc_proc_share()
351 struct nlm_host *host; in nlm4svc_proc_unshare() local
365 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
369 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
372 nlmsvc_release_host(host); in nlm4svc_proc_unshare()
397 struct nlm_host *host; in nlm4svc_proc_free_all() local
400 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
403 nlmsvc_free_host_resources(host); in nlm4svc_proc_free_all()
404 nlmsvc_release_host(host); in nlm4svc_proc_free_all()