Lines Matching refs:argp

52 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
57 struct nlm_lock *lock = &argp->lock;
66 || (argp->monitor && nsm_monitor(host) < 0))
114 struct nlm_args *argp = rqstp->rq_argp;
120 resp->cookie = argp->cookie;
123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
127 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie));
134 nlmsvc_release_lockowner(&argp->lock);
149 struct nlm_args *argp = rqstp->rq_argp;
156 resp->cookie = argp->cookie;
159 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
169 if (host->h_nsmstate && host->h_nsmstate != argp->state) {
175 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
176 argp->block, &argp->cookie,
177 argp->reclaim));
183 nlmsvc_release_lockowner(&argp->lock);
198 struct nlm_args *argp = rqstp->rq_argp;
205 resp->cookie = argp->cookie;
214 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
218 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock));
221 nlmsvc_release_lockowner(&argp->lock);
239 struct nlm_args *argp = rqstp->rq_argp;
246 resp->cookie = argp->cookie;
255 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
259 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock));
262 nlmsvc_release_lockowner(&argp->lock);
281 struct nlm_args *argp = rqstp->rq_argp;
283 resp->cookie = argp->cookie;
286 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
332 struct nlm_args *argp = rqstp->rq_argp;
338 argp->lock.caller,
339 argp->lock.len);
398 struct nlm_args *argp = rqstp->rq_argp;
405 resp->cookie = argp->cookie;
408 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) {
414 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
418 resp->status = cast_status(nlmsvc_share_file(host, file, argp));
421 nlmsvc_release_lockowner(&argp->lock);
433 struct nlm_args *argp = rqstp->rq_argp;
440 resp->cookie = argp->cookie;
449 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
453 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp));
456 nlmsvc_release_lockowner(&argp->lock);
468 struct nlm_args *argp = rqstp->rq_argp;
472 argp->monitor = 0; /* just clean the monitor flag */
482 struct nlm_args *argp = rqstp->rq_argp;
486 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL))
500 struct nlm_reboot *argp = rqstp->rq_argp;
511 nlm_host_rebooted(SVC_NET(rqstp), argp);
521 struct nlm_res *argp = rqstp->rq_argp;
528 nlmsvc_grant_reply(&argp->cookie, argp->status);