• Home
  • Raw
  • Download

Lines Matching refs:argp

21 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,  in nlm4svc_retrieve_args()  argument
26 struct nlm_lock *lock = &argp->lock; in nlm4svc_retrieve_args()
35 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args()
64 nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlm4svc_proc_null() argument
74 nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_test() argument
82 resp->cookie = argp->cookie; in nlm4svc_proc_test()
85 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
89 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
101 nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_lock() argument
110 resp->cookie = argp->cookie; in nlm4svc_proc_lock()
113 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_lock()
123 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in nlm4svc_proc_lock()
129 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in nlm4svc_proc_lock()
130 argp->block, &argp->cookie, in nlm4svc_proc_lock()
131 argp->reclaim); in nlm4svc_proc_lock()
143 nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_cancel() argument
151 resp->cookie = argp->cookie; in nlm4svc_proc_cancel()
160 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_cancel()
164 resp->status = nlmsvc_cancel_blocked(file, &argp->lock); in nlm4svc_proc_cancel()
176 nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_unlock() argument
184 resp->cookie = argp->cookie; in nlm4svc_proc_unlock()
193 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unlock()
197 resp->status = nlmsvc_unlock(file, &argp->lock); in nlm4svc_proc_unlock()
210 nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_granted() argument
213 resp->cookie = argp->cookie; in nlm4svc_proc_granted()
216 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in nlm4svc_proc_granted()
245 static __be32 nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, in nlm4svc_callback() argument
253 argp->lock.caller, in nlm4svc_callback()
254 argp->lock.len); in nlm4svc_callback()
262 stat = func(rqstp, argp, &call->a_res); in nlm4svc_callback()
274 static __be32 nlm4svc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_test_msg() argument
278 return nlm4svc_callback(rqstp, NLMPROC_TEST_RES, argp, nlm4svc_proc_test); in nlm4svc_proc_test_msg()
281 static __be32 nlm4svc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_lock_msg() argument
285 return nlm4svc_callback(rqstp, NLMPROC_LOCK_RES, argp, nlm4svc_proc_lock); in nlm4svc_proc_lock_msg()
288 static __be32 nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_cancel_msg() argument
292 return nlm4svc_callback(rqstp, NLMPROC_CANCEL_RES, argp, nlm4svc_proc_cancel); in nlm4svc_proc_cancel_msg()
295 static __be32 nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_unlock_msg() argument
299 return nlm4svc_callback(rqstp, NLMPROC_UNLOCK_RES, argp, nlm4svc_proc_unlock); in nlm4svc_proc_unlock_msg()
302 static __be32 nlm4svc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_granted_msg() argument
306 return nlm4svc_callback(rqstp, NLMPROC_GRANTED_RES, argp, nlm4svc_proc_granted); in nlm4svc_proc_granted_msg()
313 nlm4svc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_share() argument
321 resp->cookie = argp->cookie; in nlm4svc_proc_share()
324 if (locks_in_grace() && !argp->reclaim) { in nlm4svc_proc_share()
330 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
334 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
346 nlm4svc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_unshare() argument
354 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
363 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
367 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
379 nlm4svc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_nm_lock() argument
384 argp->monitor = 0; /* just clean the monitor flag */ in nlm4svc_proc_nm_lock()
385 return nlm4svc_proc_lock(rqstp, argp, resp); in nlm4svc_proc_nm_lock()
392 nlm4svc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_free_all() argument
398 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL)) in nlm4svc_proc_free_all()
410 nlm4svc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, in nlm4svc_proc_sm_notify() argument
422 nlm_host_rebooted(argp); in nlm4svc_proc_sm_notify()
430 nlm4svc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, in nlm4svc_proc_granted_res() argument
438 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()