Lines Matching refs:host
54 struct nlm_host *host = NULL; in nlmsvc_retrieve_args() local
64 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlmsvc_retrieve_args()
65 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
67 *hostp = host; in nlmsvc_retrieve_args()
78 lock->fl.fl_owner = (fl_owner_t) host; in nlmsvc_retrieve_args()
85 nlmsvc_release_host(host); in nlmsvc_retrieve_args()
108 struct nlm_host *host; in nlmsvc_proc_test() local
116 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
120 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test()
127 nlmsvc_release_host(host); in nlmsvc_proc_test()
136 struct nlm_host *host; in nlmsvc_proc_lock() local
145 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_lock()
155 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in nlmsvc_proc_lock()
161 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in nlmsvc_proc_lock()
169 nlmsvc_release_host(host); in nlmsvc_proc_lock()
178 struct nlm_host *host; in nlmsvc_proc_cancel() local
193 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_cancel()
200 nlmsvc_release_host(host); in nlmsvc_proc_cancel()
212 struct nlm_host *host; in nlmsvc_proc_unlock() local
227 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unlock()
234 nlmsvc_release_host(host); in nlmsvc_proc_unlock()
290 struct nlm_host *host; in nlmsvc_callback() local
294 host = nlmsvc_lookup_host(rqstp, in nlmsvc_callback()
297 if (host == NULL) in nlmsvc_callback()
300 call = nlm_alloc_call(host); in nlmsvc_callback()
301 nlmsvc_release_host(host); in nlmsvc_callback()
361 struct nlm_host *host; in nlmsvc_proc_share() local
375 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
379 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
382 nlmsvc_release_host(host); in nlmsvc_proc_share()
394 struct nlm_host *host; in nlmsvc_proc_unshare() local
408 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
412 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
415 nlmsvc_release_host(host); in nlmsvc_proc_unshare()
440 struct nlm_host *host; in nlmsvc_proc_free_all() local
443 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
446 nlmsvc_free_host_resources(host); in nlmsvc_proc_free_all()
447 nlmsvc_release_host(host); in nlmsvc_proc_free_all()