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()
37 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
87 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() local
93 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
96 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
100 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
106 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_test()
121 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock() local
128 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
131 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
141 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlm4svc_proc_lock()
147 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_lock()
148 argp->block, &argp->cookie, in __nlm4svc_proc_lock()
149 argp->reclaim); in __nlm4svc_proc_lock()
155 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_lock()
170 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_cancel() local
176 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
185 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_cancel()
189 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_cancel()
192 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_cancel()
210 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_unlock() local
216 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
225 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_unlock()
229 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_unlock()
232 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_unlock()
251 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_granted() local
253 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
256 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlm4svc_proc_granted()
292 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_callback() local
298 argp->lock.caller, in nlm4svc_callback()
299 argp->lock.len); in nlm4svc_callback()
356 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_share() local
363 resp->cookie = argp->cookie; in nlm4svc_proc_share()
366 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlm4svc_proc_share()
372 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
376 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
379 nlmsvc_release_lockowner(&argp->lock); in nlm4svc_proc_share()
391 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_unshare() local
398 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
407 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
411 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
414 nlmsvc_release_lockowner(&argp->lock); in nlm4svc_proc_unshare()
426 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_nm_lock() local
430 argp->monitor = 0; /* just clean the monitor flag */ in nlm4svc_proc_nm_lock()
440 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_free_all() local
444 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
458 struct nlm_reboot *argp = rqstp->rq_argp; in nlm4svc_proc_sm_notify() local
469 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlm4svc_proc_sm_notify()
479 struct nlm_res *argp = rqstp->rq_argp; in nlm4svc_proc_granted_res() local
486 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()