Lines Matching refs:rqstp
22 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument
35 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args()
42 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0) in nlm4svc_retrieve_args()
65 nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlm4svc_proc_null() argument
75 nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_test() argument
86 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
90 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
102 nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_lock() argument
114 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_lock()
130 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in nlm4svc_proc_lock()
144 nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_cancel() argument
155 if (locks_in_grace(SVC_NET(rqstp))) { in nlm4svc_proc_cancel()
161 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_cancel()
165 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); in nlm4svc_proc_cancel()
177 nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_unlock() argument
188 if (locks_in_grace(SVC_NET(rqstp))) { in nlm4svc_proc_unlock()
194 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unlock()
198 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); in nlm4svc_proc_unlock()
211 nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_granted() argument
217 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in nlm4svc_proc_granted()
246 static __be32 nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, in nlm4svc_callback() argument
253 host = nlmsvc_lookup_host(rqstp, in nlm4svc_callback()
264 stat = func(rqstp, argp, &call->a_res); in nlm4svc_callback()
276 static __be32 nlm4svc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_test_msg() argument
280 return nlm4svc_callback(rqstp, NLMPROC_TEST_RES, argp, nlm4svc_proc_test); in nlm4svc_proc_test_msg()
283 static __be32 nlm4svc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_lock_msg() argument
287 return nlm4svc_callback(rqstp, NLMPROC_LOCK_RES, argp, nlm4svc_proc_lock); in nlm4svc_proc_lock_msg()
290 static __be32 nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_cancel_msg() argument
294 return nlm4svc_callback(rqstp, NLMPROC_CANCEL_RES, argp, nlm4svc_proc_cancel); in nlm4svc_proc_cancel_msg()
297 static __be32 nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_unlock_msg() argument
301 return nlm4svc_callback(rqstp, NLMPROC_UNLOCK_RES, argp, nlm4svc_proc_unlock); in nlm4svc_proc_unlock_msg()
304 static __be32 nlm4svc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_granted_msg() argument
308 return nlm4svc_callback(rqstp, NLMPROC_GRANTED_RES, argp, nlm4svc_proc_granted); in nlm4svc_proc_granted_msg()
315 nlm4svc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_share() argument
326 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlm4svc_proc_share()
332 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
348 nlm4svc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_unshare() argument
359 if (locks_in_grace(SVC_NET(rqstp))) { in nlm4svc_proc_unshare()
365 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
381 nlm4svc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_nm_lock() argument
387 return nlm4svc_proc_lock(rqstp, argp, resp); in nlm4svc_proc_nm_lock()
394 nlm4svc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_free_all() argument
400 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
412 nlm4svc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, in nlm4svc_proc_sm_notify() argument
417 if (!nlm_privileged_requester(rqstp)) { in nlm4svc_proc_sm_notify()
420 svc_print_addr(rqstp, buf, sizeof(buf))); in nlm4svc_proc_sm_notify()
424 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlm4svc_proc_sm_notify()
432 nlm4svc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, in nlm4svc_proc_granted_res() argument