Lines Matching refs:rqstp

23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
40 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len))
49 error = nlm_lookup_file(rqstp, &file, lock);
84 nlm4svc_proc_null(struct svc_rqst *rqstp)
94 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp)
96 struct nlm_args *argp = rqstp->rq_argp;
106 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
111 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie);
124 nlm4svc_proc_test(struct svc_rqst *rqstp)
126 return __nlm4svc_proc_test(rqstp, rqstp->rq_resp);
130 __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp)
132 struct nlm_args *argp = rqstp->rq_argp;
142 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
158 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock,
173 nlm4svc_proc_lock(struct svc_rqst *rqstp)
175 return __nlm4svc_proc_lock(rqstp, rqstp->rq_resp);
179 __nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp)
181 struct nlm_args *argp = rqstp->rq_argp;
190 if (locks_in_grace(SVC_NET(rqstp))) {
196 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
200 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock);
210 nlm4svc_proc_cancel(struct svc_rqst *rqstp)
212 return __nlm4svc_proc_cancel(rqstp, rqstp->rq_resp);
219 __nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp)
221 struct nlm_args *argp = rqstp->rq_argp;
230 if (locks_in_grace(SVC_NET(rqstp))) {
236 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
240 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock);
250 nlm4svc_proc_unlock(struct svc_rqst *rqstp)
252 return __nlm4svc_proc_unlock(rqstp, rqstp->rq_resp);
260 __nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp)
262 struct nlm_args *argp = rqstp->rq_argp;
267 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
273 nlm4svc_proc_granted(struct svc_rqst *rqstp)
275 return __nlm4svc_proc_granted(rqstp, rqstp->rq_resp);
300 static __be32 nlm4svc_callback(struct svc_rqst *rqstp, u32 proc,
303 struct nlm_args *argp = rqstp->rq_argp;
308 host = nlmsvc_lookup_host(rqstp,
319 stat = func(rqstp, &call->a_res);
331 static __be32 nlm4svc_proc_test_msg(struct svc_rqst *rqstp)
334 return nlm4svc_callback(rqstp, NLMPROC_TEST_RES, __nlm4svc_proc_test);
337 static __be32 nlm4svc_proc_lock_msg(struct svc_rqst *rqstp)
340 return nlm4svc_callback(rqstp, NLMPROC_LOCK_RES, __nlm4svc_proc_lock);
343 static __be32 nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp)
346 return nlm4svc_callback(rqstp, NLMPROC_CANCEL_RES, __nlm4svc_proc_cancel);
349 static __be32 nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp)
352 return nlm4svc_callback(rqstp, NLMPROC_UNLOCK_RES, __nlm4svc_proc_unlock);
355 static __be32 nlm4svc_proc_granted_msg(struct svc_rqst *rqstp)
358 return nlm4svc_callback(rqstp, NLMPROC_GRANTED_RES, __nlm4svc_proc_granted);
365 nlm4svc_proc_share(struct svc_rqst *rqstp)
367 struct nlm_args *argp = rqstp->rq_argp;
368 struct nlm_res *resp = rqstp->rq_resp;
377 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) {
383 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
400 nlm4svc_proc_unshare(struct svc_rqst *rqstp)
402 struct nlm_args *argp = rqstp->rq_argp;
403 struct nlm_res *resp = rqstp->rq_resp;
412 if (locks_in_grace(SVC_NET(rqstp))) {
418 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
435 nlm4svc_proc_nm_lock(struct svc_rqst *rqstp)
437 struct nlm_args *argp = rqstp->rq_argp;
442 return nlm4svc_proc_lock(rqstp);
449 nlm4svc_proc_free_all(struct svc_rqst *rqstp)
451 struct nlm_args *argp = rqstp->rq_argp;
455 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL))
467 nlm4svc_proc_sm_notify(struct svc_rqst *rqstp)
469 struct nlm_reboot *argp = rqstp->rq_argp;
473 if (!nlm_privileged_requester(rqstp)) {
476 svc_print_addr(rqstp, buf, sizeof(buf)));
480 nlm_host_rebooted(SVC_NET(rqstp), argp);
488 nlm4svc_proc_granted_res(struct svc_rqst *rqstp)
490 struct nlm_res *argp = rqstp->rq_argp;
502 nlm4svc_proc_unused(struct svc_rqst *rqstp)