• Home
  • Raw
  • Download

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()
116 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() local
123 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
126 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
129 test_owner = argp->lock.fl.fl_owner; in __nlmsvc_proc_test()
132 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
154 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_lock() local
161 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
164 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
174 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlmsvc_proc_lock()
180 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
181 argp->block, &argp->cookie, in __nlmsvc_proc_lock()
182 argp->reclaim)); in __nlmsvc_proc_lock()
188 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_lock()
203 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_cancel() local
210 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
219 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
223 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
226 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_cancel()
244 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_unlock() local
251 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
260 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
264 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
267 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_unlock()
286 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_granted() local
288 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
291 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
335 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_callback() local
341 argp->lock.caller, in nlmsvc_callback()
342 argp->lock.len); in nlmsvc_callback()
401 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_share() local
408 resp->cookie = argp->cookie; in nlmsvc_proc_share()
411 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlmsvc_proc_share()
417 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
421 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
424 nlmsvc_release_lockowner(&argp->lock); in nlmsvc_proc_share()
436 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_unshare() local
443 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
452 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
456 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
459 nlmsvc_release_lockowner(&argp->lock); in nlmsvc_proc_unshare()
471 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_nm_lock() local
475 argp->monitor = 0; /* just clean the monitor flag */ in nlmsvc_proc_nm_lock()
485 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_free_all() local
489 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
503 struct nlm_reboot *argp = rqstp->rq_argp; in nlmsvc_proc_sm_notify() local
514 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlmsvc_proc_sm_notify()
524 struct nlm_res *argp = rqstp->rq_argp; in nlmsvc_proc_granted_res() local
531 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()