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()
96 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() local
103 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
106 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
109 test_owner = argp->lock.fl.fl_owner; in __nlm4svc_proc_test()
111 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
132 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock() local
139 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
142 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
152 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlm4svc_proc_lock()
158 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_lock()
159 argp->block, &argp->cookie, in __nlm4svc_proc_lock()
160 argp->reclaim); in __nlm4svc_proc_lock()
166 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_lock()
181 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_cancel() local
187 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
196 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_cancel()
200 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_cancel()
203 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_cancel()
221 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_unlock() local
227 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
236 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_unlock()
240 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_unlock()
243 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_unlock()
262 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_granted() local
264 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
267 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlm4svc_proc_granted()
303 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_callback() local
309 argp->lock.caller, in nlm4svc_callback()
310 argp->lock.len); in nlm4svc_callback()
367 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_share() local
374 resp->cookie = argp->cookie; in nlm4svc_proc_share()
377 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlm4svc_proc_share()
383 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
387 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
390 nlmsvc_release_lockowner(&argp->lock); in nlm4svc_proc_share()
402 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_unshare() local
409 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
418 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
422 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
425 nlmsvc_release_lockowner(&argp->lock); in nlm4svc_proc_unshare()
437 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_nm_lock() local
441 argp->monitor = 0; /* just clean the monitor flag */ in nlm4svc_proc_nm_lock()
451 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_free_all() local
455 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
469 struct nlm_reboot *argp = rqstp->rq_argp; in nlm4svc_proc_sm_notify() local
480 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlm4svc_proc_sm_notify()
490 struct nlm_res *argp = rqstp->rq_argp; in nlm4svc_proc_granted_res() local
497 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()