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()
66 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
108 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() local
114 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
117 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
121 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
142 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_lock() local
149 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
152 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
162 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlmsvc_proc_lock()
168 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
169 argp->block, &argp->cookie, in __nlmsvc_proc_lock()
170 argp->reclaim)); in __nlmsvc_proc_lock()
190 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_cancel() local
197 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
206 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
210 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
230 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_unlock() local
237 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
246 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
250 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
271 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_granted() local
273 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
276 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
322 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_callback() local
328 argp->lock.caller, in nlmsvc_callback()
329 argp->lock.len); in nlmsvc_callback()
388 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_share() local
395 resp->cookie = argp->cookie; in nlmsvc_proc_share()
398 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlmsvc_proc_share()
404 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
408 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
422 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_unshare() local
429 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
438 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
442 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
456 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_nm_lock() local
460 argp->monitor = 0; /* just clean the monitor flag */ in nlmsvc_proc_nm_lock()
470 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_proc_free_all() local
474 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
488 struct nlm_reboot *argp = rqstp->rq_argp; in nlmsvc_proc_sm_notify() local
499 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlmsvc_proc_sm_notify()
509 struct nlm_res *argp = rqstp->rq_argp; in nlmsvc_proc_granted_res() local
516 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()