• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/lockd/

Lines Matching defs:rqstp

48 #define	cast_status(status) (cast_to_nlm(status, rqstp->rq_vers))
57 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
70 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len))
77 if ((error = nlm_lookup_file(rqstp, &file, &lock->fh)) != 0)
101 nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp)
111 nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp,
127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
131 resp->status = cast_status(nlmsvc_testlock(rqstp, file, &argp->lock, &resp->lock, &resp->cookie));
136 ntohl(resp->status), rqstp->rq_vers);
143 nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp,
160 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
165 resp->status = cast_status(nlmsvc_lock(rqstp, file, &argp->lock,
177 nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp,
194 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
210 nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp,
227 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
244 nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp,
250 resp->status = nlmclnt_grant(svc_addr_in(rqstp), &argp->lock);
279 static __be32 nlmsvc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp,
286 host = nlmsvc_lookup_host(rqstp,
296 stat = func(rqstp, argp, &call->a_res);
308 static __be32 nlmsvc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp,
312 return nlmsvc_callback(rqstp, NLMPROC_TEST_RES, argp, nlmsvc_proc_test);
315 static __be32 nlmsvc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp,
319 return nlmsvc_callback(rqstp, NLMPROC_LOCK_RES, argp, nlmsvc_proc_lock);
322 static __be32 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp,
326 return nlmsvc_callback(rqstp, NLMPROC_CANCEL_RES, argp, nlmsvc_proc_cancel);
330 nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp,
334 return nlmsvc_callback(rqstp, NLMPROC_UNLOCK_RES, argp, nlmsvc_proc_unlock);
338 nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp,
342 return nlmsvc_callback(rqstp, NLMPROC_GRANTED_RES, argp, nlmsvc_proc_granted);
349 nlmsvc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp,
366 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
382 nlmsvc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp,
399 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
415 nlmsvc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp,
421 return nlmsvc_proc_lock(rqstp, argp, resp);
428 nlmsvc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp,
434 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL))
446 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp,
451 memcpy(&saddr, svc_addr_in(rqstp), sizeof(saddr));
458 svc_print_addr(rqstp, buf, sizeof(buf)));
476 nlmsvc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp,