Lines Matching refs:argp

52 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
57 struct nlm_lock *lock = &argp->lock;
67 || (argp->monitor && nsm_monitor(host) < 0))
117 struct nlm_args *argp = rqstp->rq_argp;
124 resp->cookie = argp->cookie;
127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
130 test_owner = argp->lock.fl.c.flc_owner;
133 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie));
155 struct nlm_args *argp = rqstp->rq_argp;
162 resp->cookie = argp->cookie;
165 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
175 if (host->h_nsmstate && host->h_nsmstate != argp->state) {
181 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
182 argp->block, &argp->cookie,
183 argp->reclaim));
189 nlmsvc_release_lockowner(&argp->lock);
204 struct nlm_args *argp = rqstp->rq_argp;
211 resp->cookie = argp->cookie;
220 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
224 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock));
227 nlmsvc_release_lockowner(&argp->lock);
245 struct nlm_args *argp = rqstp->rq_argp;
252 resp->cookie = argp->cookie;
261 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
265 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock));
268 nlmsvc_release_lockowner(&argp->lock);
287 struct nlm_args *argp = rqstp->rq_argp;
289 resp->cookie = argp->cookie;
292 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
336 struct nlm_args *argp = rqstp->rq_argp;
342 argp->lock.caller,
343 argp->lock.len);
402 struct nlm_args *argp = rqstp->rq_argp;
409 resp->cookie = argp->cookie;
412 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) {
418 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
422 resp->status = cast_status(nlmsvc_share_file(host, file, argp));
425 nlmsvc_release_lockowner(&argp->lock);
437 struct nlm_args *argp = rqstp->rq_argp;
444 resp->cookie = argp->cookie;
453 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
457 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp));
460 nlmsvc_release_lockowner(&argp->lock);
472 struct nlm_args *argp = rqstp->rq_argp;
476 argp->monitor = 0; /* just clean the monitor flag */
486 struct nlm_args *argp = rqstp->rq_argp;
490 if (nlmsvc_retrieve_args(rqstp, argp, &host, NULL))
504 struct nlm_reboot *argp = rqstp->rq_argp;
515 nlm_host_rebooted(SVC_NET(rqstp), argp);
525 struct nlm_res *argp = rqstp->rq_argp;
532 nlmsvc_grant_reply(&argp->cookie, argp->status);