Lines Matching refs:host

55 	struct nlm_host		*host = NULL;  in nlmsvc_retrieve_args()  local
66 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlmsvc_retrieve_args()
67 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
69 *hostp = host; in nlmsvc_retrieve_args()
84 nlmsvc_locks_init_private(&lock->fl, host, (pid_t)lock->svid); in nlmsvc_retrieve_args()
87 nlmsvc_release_host(host); in nlmsvc_retrieve_args()
95 nlmsvc_release_host(host); in nlmsvc_retrieve_args()
118 struct nlm_host *host; in __nlmsvc_proc_test() local
127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
133 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, in __nlmsvc_proc_test()
142 nlmsvc_release_host(host); in __nlmsvc_proc_test()
157 struct nlm_host *host; in __nlmsvc_proc_lock() local
166 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
170 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
179 nlmsvc_release_host(host); in __nlmsvc_proc_lock()
194 struct nlm_host *host; in __nlmsvc_proc_cancel() local
209 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
217 nlmsvc_release_host(host); in __nlmsvc_proc_cancel()
235 struct nlm_host *host; in __nlmsvc_proc_unlock() local
250 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
258 nlmsvc_release_host(host); in __nlmsvc_proc_unlock()
326 struct nlm_host *host; in nlmsvc_callback() local
330 host = nlmsvc_lookup_host(rqstp, in nlmsvc_callback()
333 if (host == NULL) in nlmsvc_callback()
336 call = nlm_alloc_call(host); in nlmsvc_callback()
337 nlmsvc_release_host(host); in nlmsvc_callback()
393 struct nlm_host *host; in nlmsvc_proc_share() local
407 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
411 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
415 nlmsvc_release_host(host); in nlmsvc_proc_share()
428 struct nlm_host *host; in nlmsvc_proc_unshare() local
442 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
446 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
450 nlmsvc_release_host(host); in nlmsvc_proc_unshare()
476 struct nlm_host *host; in nlmsvc_proc_free_all() local
479 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
482 nlmsvc_free_host_resources(host); in nlmsvc_proc_free_all()
483 nlmsvc_release_host(host); in nlmsvc_proc_free_all()