Lines Matching refs:argp
51 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument
56 struct nlm_lock *lock = &argp->lock; in nlmsvc_retrieve_args()
65 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
95 nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlmsvc_proc_null() argument
105 nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_test() argument
113 resp->cookie = argp->cookie; in nlmsvc_proc_test()
116 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
120 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test()
133 nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_lock() argument
142 resp->cookie = argp->cookie; in nlmsvc_proc_lock()
145 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_lock()
155 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in nlmsvc_proc_lock()
161 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in nlmsvc_proc_lock()
162 argp->block, &argp->cookie, in nlmsvc_proc_lock()
163 argp->reclaim)); in nlmsvc_proc_lock()
175 nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_cancel() argument
184 resp->cookie = argp->cookie; in nlmsvc_proc_cancel()
193 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_cancel()
197 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in nlmsvc_proc_cancel()
209 nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_unlock() argument
218 resp->cookie = argp->cookie; in nlmsvc_proc_unlock()
227 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unlock()
231 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in nlmsvc_proc_unlock()
244 nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_granted() argument
247 resp->cookie = argp->cookie; in nlmsvc_proc_granted()
250 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in nlmsvc_proc_granted()
287 static __be32 nlmsvc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, in nlmsvc_callback() argument
295 argp->lock.caller, in nlmsvc_callback()
296 argp->lock.len); in nlmsvc_callback()
305 stat = func(rqstp, argp, &call->a_res); in nlmsvc_callback()
317 static __be32 nlmsvc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_test_msg() argument
321 return nlmsvc_callback(rqstp, NLMPROC_TEST_RES, argp, nlmsvc_proc_test); in nlmsvc_proc_test_msg()
324 static __be32 nlmsvc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_lock_msg() argument
328 return nlmsvc_callback(rqstp, NLMPROC_LOCK_RES, argp, nlmsvc_proc_lock); in nlmsvc_proc_lock_msg()
331 static __be32 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_cancel_msg() argument
335 return nlmsvc_callback(rqstp, NLMPROC_CANCEL_RES, argp, nlmsvc_proc_cancel); in nlmsvc_proc_cancel_msg()
339 nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_unlock_msg() argument
343 return nlmsvc_callback(rqstp, NLMPROC_UNLOCK_RES, argp, nlmsvc_proc_unlock); in nlmsvc_proc_unlock_msg()
347 nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_granted_msg() argument
351 return nlmsvc_callback(rqstp, NLMPROC_GRANTED_RES, argp, nlmsvc_proc_granted); in nlmsvc_proc_granted_msg()
358 nlmsvc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_share() argument
366 resp->cookie = argp->cookie; in nlmsvc_proc_share()
369 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) { in nlmsvc_proc_share()
375 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
379 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
391 nlmsvc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_unshare() argument
399 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
408 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
412 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
424 nlmsvc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_nm_lock() argument
429 argp->monitor = 0; /* just clean the monitor flag */ in nlmsvc_proc_nm_lock()
430 return nlmsvc_proc_lock(rqstp, argp, resp); in nlmsvc_proc_nm_lock()
437 nlmsvc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_free_all() argument
443 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
455 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, in nlmsvc_proc_sm_notify() argument
467 nlm_host_rebooted(SVC_NET(rqstp), argp); in nlmsvc_proc_sm_notify()
475 nlmsvc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, in nlmsvc_proc_granted_res() argument
483 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()