Lines Matching refs:resp

114 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp)  in __nlmsvc_proc_test()  argument
123 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
126 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
127 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_test()
132resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
133 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_test()
137 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test()
152 __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_lock() argument
161 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
164 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
165 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_lock()
175 resp->status = nlm_lck_denied_nolocks; in __nlmsvc_proc_lock()
180 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
183 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_lock()
186 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_lock()
201 __nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_cancel() argument
210 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
214 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_cancel()
219 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
220 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_cancel()
223 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
225 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); in __nlmsvc_proc_cancel()
242 __nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_unlock() argument
251 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
255 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_unlock()
260 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
261 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_unlock()
264 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
266 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_unlock()
284 __nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_granted() argument
288 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
291 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
292 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); in __nlmsvc_proc_granted()
402 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_proc_share() local
408 resp->cookie = argp->cookie; in nlmsvc_proc_share()
412 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_share()
417 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
418 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_share()
421 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
423 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_share()
437 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_proc_unshare() local
443 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
447 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_unshare()
452 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
453 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_unshare()
456 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
458 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_unshare()