Lines Matching refs:argp
23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument
28 struct nlm_lock *lock = &argp->lock; in nlm4svc_retrieve_args()
41 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
95 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() local
102 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
105 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
108 test_owner = argp->lock.fl.fl_owner; in __nlm4svc_proc_test()
110 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
131 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock() local
138 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
141 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
151 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlm4svc_proc_lock()
157 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_lock()
158 argp->block, &argp->cookie, in __nlm4svc_proc_lock()
159 argp->reclaim); in __nlm4svc_proc_lock()
165 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_lock()
180 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_cancel() local
186 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
195 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_cancel()
199 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_cancel()
202 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_cancel()
220 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_unlock() local
226 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
235 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_unlock()
239 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_unlock()
242 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_unlock()
261 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_granted() local
263 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
266 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlm4svc_proc_granted()
302 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_callback() local
308 argp->lock.caller, in nlm4svc_callback()
309 argp->lock.len); in nlm4svc_callback()
366 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_share() local
373 resp->cookie = argp->cookie; in nlm4svc_proc_share()
376 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlm4svc_proc_share()
382 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
386 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
389 nlmsvc_release_lockowner(&argp->lock); in nlm4svc_proc_share()
401 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_unshare() local
408 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
417 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
421 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
424 nlmsvc_release_lockowner(&argp->lock); in nlm4svc_proc_unshare()
436 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_nm_lock() local
440 argp->monitor = 0; /* just clean the monitor flag */ in nlm4svc_proc_nm_lock()
450 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_free_all() local
454 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
468 struct nlm_reboot *argp = rqstp->rq_argp; in nlm4svc_proc_sm_notify() local
479 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlm4svc_proc_sm_notify()
489 struct nlm_res *argp = rqstp->rq_argp; in nlm4svc_proc_granted_res() local
496 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()