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()
117 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() local
124 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
130 test_owner = argp->lock.fl.fl_owner; in __nlmsvc_proc_test()
133 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
155 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_lock() local
162 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
165 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
175 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlmsvc_proc_lock()
181 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
182 argp->block, &argp->cookie, in __nlmsvc_proc_lock()
183 argp->reclaim)); in __nlmsvc_proc_lock()
189 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_lock()
204 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_cancel() local
211 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
220 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
224 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
227 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_cancel()
245 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_unlock() local
252 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
261 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
265 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
268 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_unlock()
287 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_granted() local
289 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
292 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
336 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_callback() local
342 argp->lock.caller, in nlmsvc_callback()
343 argp->lock.len); in nlmsvc_callback()
402 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_share() local
409 resp->cookie = argp->cookie; in nlmsvc_proc_share()
412 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlmsvc_proc_share()
418 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
422 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
425 nlmsvc_release_lockowner(&argp->lock); in nlmsvc_proc_share()
437 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_unshare() local
444 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
453 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
457 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
460 nlmsvc_release_lockowner(&argp->lock); in nlmsvc_proc_unshare()
472 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_nm_lock() local
476 argp->monitor = 0; /* just clean the monitor flag */ in nlmsvc_proc_nm_lock()
486 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_free_all() local
490 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
504 struct nlm_reboot *argp = rqstp->rq_argp; in nlmsvc_proc_sm_notify() local
515 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlmsvc_proc_sm_notify()
525 struct nlm_res *argp = rqstp->rq_argp; in nlmsvc_proc_granted_res() local
532 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()