• Home
  • Raw
  • Download

Lines Matching refs:argp

22 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,  in nlm4svc_retrieve_args()  argument
27 struct nlm_lock *lock = &argp->lock; in nlm4svc_retrieve_args()
36 || (argp->monitor && nsm_monitor(host) < 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
83 resp->cookie = argp->cookie; in nlm4svc_proc_test()
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
111 resp->cookie = argp->cookie; in nlm4svc_proc_lock()
114 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_lock()
124 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in nlm4svc_proc_lock()
130 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in nlm4svc_proc_lock()
131 argp->block, &argp->cookie, in nlm4svc_proc_lock()
132 argp->reclaim); in nlm4svc_proc_lock()
144 nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_cancel() argument
152 resp->cookie = argp->cookie; 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
185 resp->cookie = argp->cookie; 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
214 resp->cookie = argp->cookie; in nlm4svc_proc_granted()
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
254 argp->lock.caller, in nlm4svc_callback()
255 argp->lock.len); 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
323 resp->cookie = argp->cookie; in nlm4svc_proc_share()
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()
336 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
348 nlm4svc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_unshare() argument
356 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
365 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
369 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
381 nlm4svc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_proc_nm_lock() argument
386 argp->monitor = 0; /* just clean the monitor flag */ in nlm4svc_proc_nm_lock()
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
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
440 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlm4svc_proc_granted_res()