Lines Matching refs:argp
52 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument
57 struct nlm_lock *lock = &argp->lock; in nlmsvc_retrieve_args()
66 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
114 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() local
120 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
127 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
134 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_test()
149 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_lock() local
156 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
159 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
169 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlmsvc_proc_lock()
175 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
176 argp->block, &argp->cookie, in __nlmsvc_proc_lock()
177 argp->reclaim)); in __nlmsvc_proc_lock()
183 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_lock()
198 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_cancel() local
205 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
214 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
218 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
221 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_cancel()
239 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_unlock() local
246 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
255 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
259 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
262 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_unlock()
281 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_granted() local
283 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
286 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
332 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_callback() local
338 argp->lock.caller, in nlmsvc_callback()
339 argp->lock.len); in nlmsvc_callback()
398 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_share() local
405 resp->cookie = argp->cookie; in nlmsvc_proc_share()
408 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlmsvc_proc_share()
414 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
418 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
421 nlmsvc_release_lockowner(&argp->lock); in nlmsvc_proc_share()
433 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_unshare() local
440 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
449 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
453 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
456 nlmsvc_release_lockowner(&argp->lock); in nlmsvc_proc_unshare()
468 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_nm_lock() local
472 argp->monitor = 0; /* just clean the monitor flag */ in nlmsvc_proc_nm_lock()
482 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_free_all() local
486 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
500 struct nlm_reboot *argp = rqstp->rq_argp; in nlmsvc_proc_sm_notify() local
511 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlmsvc_proc_sm_notify()
521 struct nlm_res *argp = rqstp->rq_argp; in nlmsvc_proc_granted_res() local
528 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()