Lines Matching refs:argp

23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
28 struct nlm_lock *lock = &argp->lock;
37 || (argp->monitor && nsm_monitor(host) < 0))
84 struct nlm_args *argp = rqstp->rq_argp;
90 resp->cookie = argp->cookie;
93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie);
103 nlmsvc_release_lockowner(&argp->lock);
118 struct nlm_args *argp = rqstp->rq_argp;
125 resp->cookie = argp->cookie;
128 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
138 if (host->h_nsmstate && host->h_nsmstate != argp->state) {
144 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock,
145 argp->block, &argp->cookie,
146 argp->reclaim);
152 nlmsvc_release_lockowner(&argp->lock);
167 struct nlm_args *argp = rqstp->rq_argp;
173 resp->cookie = argp->cookie;
182 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
186 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock);
189 nlmsvc_release_lockowner(&argp->lock);
207 struct nlm_args *argp = rqstp->rq_argp;
213 resp->cookie = argp->cookie;
222 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
226 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock);
229 nlmsvc_release_lockowner(&argp->lock);
248 struct nlm_args *argp = rqstp->rq_argp;
250 resp->cookie = argp->cookie;
253 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
291 struct nlm_args *argp = rqstp->rq_argp;
297 argp->lock.caller,
298 argp->lock.len);
355 struct nlm_args *argp = rqstp->rq_argp;
362 resp->cookie = argp->cookie;
365 if (locks_in_grace(SVC_NET(rqstp)) && !argp->reclaim) {
371 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
375 resp->status = nlmsvc_share_file(host, file, argp);
378 nlmsvc_release_lockowner(&argp->lock);
390 struct nlm_args *argp = rqstp->rq_argp;
397 resp->cookie = argp->cookie;
406 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file)))
410 resp->status = nlmsvc_unshare_file(host, file, argp);
413 nlmsvc_release_lockowner(&argp->lock);
425 struct nlm_args *argp = rqstp->rq_argp;
429 argp->monitor = 0; /* just clean the monitor flag */
439 struct nlm_args *argp = rqstp->rq_argp;
443 if (nlm4svc_retrieve_args(rqstp, argp, &host, NULL))
457 struct nlm_reboot *argp = rqstp->rq_argp;
468 nlm_host_rebooted(SVC_NET(rqstp), argp);
478 struct nlm_res *argp = rqstp->rq_argp;
485 nlmsvc_grant_reply(&argp->cookie, argp->status);