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()
67 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
116 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() local
122 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
125 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
129 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
136 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_test()
151 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_lock() local
158 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
161 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
171 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlmsvc_proc_lock()
177 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
178 argp->block, &argp->cookie, in __nlmsvc_proc_lock()
179 argp->reclaim)); in __nlmsvc_proc_lock()
185 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_lock()
200 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_cancel() local
207 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
216 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
220 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
223 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_cancel()
241 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_unlock() local
248 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
257 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
261 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
264 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_unlock()
283 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_granted() local
285 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
288 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
334 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_callback() local
340 argp->lock.caller, in nlmsvc_callback()
341 argp->lock.len); in nlmsvc_callback()
400 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_share() local
407 resp->cookie = argp->cookie; in nlmsvc_proc_share()
410 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlmsvc_proc_share()
416 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
420 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
423 nlmsvc_release_lockowner(&argp->lock); in nlmsvc_proc_share()
435 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_unshare() local
442 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
451 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
455 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
458 nlmsvc_release_lockowner(&argp->lock); in nlmsvc_proc_unshare()
470 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_nm_lock() local
474 argp->monitor = 0; /* just clean the monitor flag */ in nlmsvc_proc_nm_lock()
484 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_free_all() local
488 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
502 struct nlm_reboot *argp = rqstp->rq_argp; in nlmsvc_proc_sm_notify() local
513 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlmsvc_proc_sm_notify()
523 struct nlm_res *argp = rqstp->rq_argp; in nlmsvc_proc_granted_res() local
530 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()