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()
84 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() local
90 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
103 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_test()
118 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock() local
125 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
128 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
138 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlm4svc_proc_lock()
144 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_lock()
145 argp->block, &argp->cookie, in __nlm4svc_proc_lock()
146 argp->reclaim); in __nlm4svc_proc_lock()
152 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_lock()
167 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_cancel() local
173 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
182 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_cancel()
186 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_cancel()
189 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_cancel()
207 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_unlock() local
213 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
222 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_unlock()
226 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_unlock()
229 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_unlock()
248 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_granted() local
250 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
253 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlm4svc_proc_granted()
291 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_callback() local
297 argp->lock.caller, in nlm4svc_callback()
298 argp->lock.len); in nlm4svc_callback()
355 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_share() local
362 resp->cookie = argp->cookie; in nlm4svc_proc_share()
365 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlm4svc_proc_share()
371 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
375 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
378 nlmsvc_release_lockowner(&argp->lock); in nlm4svc_proc_share()
390 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_unshare() local
397 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
406 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
410 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
413 nlmsvc_release_lockowner(&argp->lock); in nlm4svc_proc_unshare()
425 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_nm_lock() local
429 argp->monitor = 0; /* just clean the monitor flag */ in nlm4svc_proc_nm_lock()
439 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_free_all() local
443 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
457 struct nlm_reboot *argp = rqstp->rq_argp; in nlm4svc_proc_sm_notify() local
468 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlm4svc_proc_sm_notify()
478 struct nlm_res *argp = rqstp->rq_argp; in nlm4svc_proc_granted_res() local
485 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()