Lines Matching full:resp

112 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp)  in __nlmsvc_proc_test()  argument
120 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
124 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_test()
127resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
128 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_test()
132 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test()
147 __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_lock() argument
156 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
159 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
160 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_lock()
170 resp->status = nlm_lck_denied_nolocks; in __nlmsvc_proc_lock()
175 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
178 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_lock()
181 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_lock()
196 __nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_cancel() argument
205 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
209 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_cancel()
214 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
215 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_cancel()
218 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
220 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); in __nlmsvc_proc_cancel()
237 __nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_unlock() argument
246 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
250 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_unlock()
255 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
256 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_unlock()
259 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
261 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_unlock()
279 __nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_granted() argument
283 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
286 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
287 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); in __nlmsvc_proc_granted()
399 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_proc_share() local
405 resp->cookie = argp->cookie; in nlmsvc_proc_share()
409 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_share()
414 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
415 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_share()
418 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
420 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_share()
434 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_proc_unshare() local
440 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
444 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_unshare()
449 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
450 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_unshare()
453 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
455 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_unshare()