Lines Matching refs:argp
60 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument
65 struct nlm_lock *lock = &argp->lock; in nlmsvc_retrieve_args()
83 || (argp->monitor && !host->h_monitored && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args()
110 nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlmsvc_proc_null() argument
120 nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_test() argument
127 resp->cookie = argp->cookie; in nlmsvc_proc_test()
136 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
140 resp->status = cast_status(nlmsvc_testlock(file, &argp->lock, &resp->lock)); in nlmsvc_proc_test()
150 nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_lock() argument
158 resp->cookie = argp->cookie; in nlmsvc_proc_lock()
161 if (nlmsvc_grace_period && !argp->reclaim) { in nlmsvc_proc_lock()
167 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_lock()
177 if (host->h_nsmstate && host->h_nsmstate != argp->state) { in nlmsvc_proc_lock()
183 resp->status = cast_status(nlmsvc_lock(rqstp, file, &argp->lock, in nlmsvc_proc_lock()
184 argp->block, &argp->cookie)); in nlmsvc_proc_lock()
193 nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_cancel() argument
201 resp->cookie = argp->cookie; in nlmsvc_proc_cancel()
210 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_cancel()
214 resp->status = cast_status(nlmsvc_cancel_blocked(file, &argp->lock)); in nlmsvc_proc_cancel()
226 nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_unlock() argument
234 resp->cookie = argp->cookie; in nlmsvc_proc_unlock()
243 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unlock()
247 resp->status = cast_status(nlmsvc_unlock(file, &argp->lock)); in nlmsvc_proc_unlock()
260 nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_granted() argument
263 resp->cookie = argp->cookie; in nlmsvc_proc_granted()
266 resp->status = nlmclnt_grant(&argp->lock); in nlmsvc_proc_granted()
277 nlmsvc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_test_msg() argument
287 if ((stat = nlmsvc_proc_test(rqstp, argp, &res)) == 0) in nlmsvc_proc_test_msg()
293 nlmsvc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_lock_msg() argument
301 if ((stat = nlmsvc_proc_lock(rqstp, argp, &res)) == 0) in nlmsvc_proc_lock_msg()
307 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_cancel_msg() argument
315 if ((stat = nlmsvc_proc_cancel(rqstp, argp, &res)) == 0) in nlmsvc_proc_cancel_msg()
321 nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_unlock_msg() argument
329 if ((stat = nlmsvc_proc_unlock(rqstp, argp, &res)) == 0) in nlmsvc_proc_unlock_msg()
335 nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_granted_msg() argument
343 if ((stat = nlmsvc_proc_granted(rqstp, argp, &res)) == 0) in nlmsvc_proc_granted_msg()
352 nlmsvc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_share() argument
360 resp->cookie = argp->cookie; in nlmsvc_proc_share()
363 if (nlmsvc_grace_period && !argp->reclaim) { in nlmsvc_proc_share()
369 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
373 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
385 nlmsvc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_unshare() argument
393 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
402 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
406 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
418 nlmsvc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_nm_lock() argument
423 argp->monitor = 0; /* just clean the monitor flag */ in nlmsvc_proc_nm_lock()
424 return nlmsvc_proc_lock(rqstp, argp, resp); in nlmsvc_proc_nm_lock()
431 nlmsvc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_proc_free_all() argument
437 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL)) in nlmsvc_proc_free_all()
449 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, in nlmsvc_proc_sm_notify() argument
470 saddr.sin_addr.s_addr = argp->addr; in nlmsvc_proc_sm_notify()
472 nlmclnt_recovery(host, argp->state); in nlmsvc_proc_sm_notify()
479 saddr.sin_addr.s_addr = argp->addr; in nlmsvc_proc_sm_notify()
494 nlmsvc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, in nlmsvc_proc_granted_res() argument
502 nlmsvc_grant_reply(rqstp, &argp->cookie, argp->status); in nlmsvc_proc_granted_res()