Lines Matching refs:argp

23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
28 struct nlm_lock *lock = &argp->lock;
41 || (argp->monitor && nsm_monitor(host) < 0))
96 struct nlm_args *argp = rqstp->rq_argp;
103 resp->cookie = argp->cookie;
106 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
109 test_owner = argp->lock.fl.c.flc_owner;
111 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie);
132 struct nlm_args *argp = rqstp->rq_argp;
139 resp->cookie = argp->cookie;
142 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
152 if (host->h_nsmstate && host->h_nsmstate != argp->state) {
158 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock,
159 argp->block, &argp->cookie,
160 argp->reclaim);
166 nlmsvc_release_lockowner(&argp->lock);
181 struct nlm_args *argp = rqstp->rq_argp;
187 resp->cookie = argp->cookie;
196 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
200 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock);
203 nlmsvc_release_lockowner(&argp->lock);
221 struct nlm_args *argp = rqstp->rq_argp;
227 resp->cookie = argp->cookie;
236 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
240 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock);
243 nlmsvc_release_lockowner(&argp->lock);
262 struct nlm_args *argp = rqstp->rq_argp;
264 resp->cookie = argp->cookie;
267 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
303 struct nlm_args *argp = rqstp->rq_argp;
309 argp->lock.caller,
310 argp->lock.len);
367 struct nlm_args *argp = rqstp->rq_argp;
374 resp->cookie = argp->cookie;
377 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) {
383 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
387 resp->status = nlmsvc_share_file(host, file, argp);
390 nlmsvc_release_lockowner(&argp->lock);
402 struct nlm_args *argp = rqstp->rq_argp;
409 resp->cookie = argp->cookie;
418 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
422 resp->status = nlmsvc_unshare_file(host, file, argp);
425 nlmsvc_release_lockowner(&argp->lock);
437 struct nlm_args *argp = rqstp->rq_argp;
441 argp->monitor = 0; /* just clean the monitor flag */
451 struct nlm_args *argp = rqstp->rq_argp;
455 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL))
469 struct nlm_reboot *argp = rqstp->rq_argp;
480 nlm_host_rebooted(SVC_NET(rqstp), argp);
490 struct nlm_res *argp = rqstp->rq_argp;
497 nlmsvc_grant_reply(&argp->cookie, argp->status);