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()
78 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() local
84 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
87 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
91 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
111 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock() local
118 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
121 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
131 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in __nlm4svc_proc_lock()
137 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_lock()
138 argp->block, &argp->cookie, in __nlm4svc_proc_lock()
139 argp->reclaim); in __nlm4svc_proc_lock()
159 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_cancel() local
165 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
174 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_cancel()
178 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_cancel()
198 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_unlock() local
204 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
213 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_unlock()
217 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_unlock()
238 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_granted() local
240 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
243 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlm4svc_proc_granted()
281 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_callback() local
287 argp->lock.caller, in nlm4svc_callback()
288 argp->lock.len); in nlm4svc_callback()
345 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_share() local
352 resp->cookie = argp->cookie; in nlm4svc_proc_share()
355 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlm4svc_proc_share()
361 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
365 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
379 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_unshare() local
386 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
395 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
399 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
413 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_nm_lock() local
417 argp->monitor = 0; /* just clean the monitor flag */ in nlm4svc_proc_nm_lock()
427 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_free_all() local
431 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
445 struct nlm_reboot *argp = rqstp->rq_argp; in nlm4svc_proc_sm_notify() local
456 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlm4svc_proc_sm_notify()
466 struct nlm_res *argp = rqstp->rq_argp; in nlm4svc_proc_granted_res() local
473 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()