Lines Matching refs:rqstp

23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,  in nlm4svc_retrieve_args()  argument
36 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args()
43 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) in nlm4svc_retrieve_args()
72 nlm4svc_proc_null(struct svc_rqst *rqstp) in nlm4svc_proc_null() argument
82 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_test() argument
84 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test()
93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
110 nlm4svc_proc_test(struct svc_rqst *rqstp) in nlm4svc_proc_test() argument
112 return __nlm4svc_proc_test(rqstp, rqstp->rq_resp); in nlm4svc_proc_test()
116 __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_lock() argument
118 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock()
128 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
144 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_lock()
159 nlm4svc_proc_lock(struct svc_rqst *rqstp) in nlm4svc_proc_lock() argument
161 return __nlm4svc_proc_lock(rqstp, rqstp->rq_resp); in nlm4svc_proc_lock()
165 __nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_cancel() argument
167 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_cancel()
176 if (locks_in_grace(SVC_NET(rqstp))) { in __nlm4svc_proc_cancel()
182 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_cancel()
186 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_cancel()
196 nlm4svc_proc_cancel(struct svc_rqst *rqstp) in nlm4svc_proc_cancel() argument
198 return __nlm4svc_proc_cancel(rqstp, rqstp->rq_resp); in nlm4svc_proc_cancel()
205 __nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_unlock() argument
207 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_unlock()
216 if (locks_in_grace(SVC_NET(rqstp))) { in __nlm4svc_proc_unlock()
222 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_unlock()
226 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_unlock()
236 nlm4svc_proc_unlock(struct svc_rqst *rqstp) in nlm4svc_proc_unlock() argument
238 return __nlm4svc_proc_unlock(rqstp, rqstp->rq_resp); in nlm4svc_proc_unlock()
246 __nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_granted() argument
248 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_granted()
253 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlm4svc_proc_granted()
259 nlm4svc_proc_granted(struct svc_rqst *rqstp) in nlm4svc_proc_granted() argument
261 return __nlm4svc_proc_granted(rqstp, rqstp->rq_resp); in nlm4svc_proc_granted()
288 static __be32 nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, in nlm4svc_callback() argument
291 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_callback()
296 host = nlmsvc_lookup_host(rqstp, in nlm4svc_callback()
307 stat = func(rqstp, &call->a_res); in nlm4svc_callback()
319 static __be32 nlm4svc_proc_test_msg(struct svc_rqst *rqstp) in nlm4svc_proc_test_msg() argument
322 return nlm4svc_callback(rqstp, NLMPROC_TEST_RES, __nlm4svc_proc_test); in nlm4svc_proc_test_msg()
325 static __be32 nlm4svc_proc_lock_msg(struct svc_rqst *rqstp) in nlm4svc_proc_lock_msg() argument
328 return nlm4svc_callback(rqstp, NLMPROC_LOCK_RES, __nlm4svc_proc_lock); in nlm4svc_proc_lock_msg()
331 static __be32 nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp) in nlm4svc_proc_cancel_msg() argument
334 return nlm4svc_callback(rqstp, NLMPROC_CANCEL_RES, __nlm4svc_proc_cancel); in nlm4svc_proc_cancel_msg()
337 static __be32 nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp) in nlm4svc_proc_unlock_msg() argument
340 return nlm4svc_callback(rqstp, NLMPROC_UNLOCK_RES, __nlm4svc_proc_unlock); in nlm4svc_proc_unlock_msg()
343 static __be32 nlm4svc_proc_granted_msg(struct svc_rqst *rqstp) in nlm4svc_proc_granted_msg() argument
346 return nlm4svc_callback(rqstp, NLMPROC_GRANTED_RES, __nlm4svc_proc_granted); in nlm4svc_proc_granted_msg()
353 nlm4svc_proc_share(struct svc_rqst *rqstp) in nlm4svc_proc_share() argument
355 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_share()
356 struct nlm_res *resp = rqstp->rq_resp; in nlm4svc_proc_share()
365 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlm4svc_proc_share()
371 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
388 nlm4svc_proc_unshare(struct svc_rqst *rqstp) in nlm4svc_proc_unshare() argument
390 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_unshare()
391 struct nlm_res *resp = rqstp->rq_resp; in nlm4svc_proc_unshare()
400 if (locks_in_grace(SVC_NET(rqstp))) { in nlm4svc_proc_unshare()
406 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
423 nlm4svc_proc_nm_lock(struct svc_rqst *rqstp) in nlm4svc_proc_nm_lock() argument
425 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_nm_lock()
430 return nlm4svc_proc_lock(rqstp); in nlm4svc_proc_nm_lock()
437 nlm4svc_proc_free_all(struct svc_rqst *rqstp) in nlm4svc_proc_free_all() argument
439 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_proc_free_all()
443 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
455 nlm4svc_proc_sm_notify(struct svc_rqst *rqstp) in nlm4svc_proc_sm_notify() argument
457 struct nlm_reboot *argp = rqstp->rq_argp; in nlm4svc_proc_sm_notify()
461 if (!nlm_privileged_requester(rqstp)) { in nlm4svc_proc_sm_notify()
464 svc_print_addr(rqstp, buf, sizeof(buf))); in nlm4svc_proc_sm_notify()
468 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlm4svc_proc_sm_notify()
476 nlm4svc_proc_granted_res(struct svc_rqst *rqstp) in nlm4svc_proc_granted_res() argument
478 struct nlm_res *argp = rqstp->rq_argp; in nlm4svc_proc_granted_res()
490 nlm4svc_proc_unused(struct svc_rqst *rqstp) in nlm4svc_proc_unused() argument