Lines Matching full:resp

114 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp)  in __nlmsvc_proc_test()  argument
122 resp->cookie = argp->cookie; in __nlmsvc_proc_test()
125 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
126 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_test()
129resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
130 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_test()
134 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test()
149 __nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_lock() argument
158 resp->cookie = argp->cookie; in __nlmsvc_proc_lock()
161 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
162 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_lock()
172 resp->status = nlm_lck_denied_nolocks; in __nlmsvc_proc_lock()
177 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
180 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_lock()
183 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_lock()
198 __nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_cancel() argument
207 resp->cookie = argp->cookie; in __nlmsvc_proc_cancel()
211 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_cancel()
216 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
217 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_cancel()
220 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
222 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); in __nlmsvc_proc_cancel()
239 __nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_unlock() argument
248 resp->cookie = argp->cookie; in __nlmsvc_proc_unlock()
252 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_unlock()
257 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
258 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_unlock()
261 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
263 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_unlock()
281 __nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_granted() argument
285 resp->cookie = argp->cookie; in __nlmsvc_proc_granted()
288 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
289 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); in __nlmsvc_proc_granted()
401 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_proc_share() local
407 resp->cookie = argp->cookie; in nlmsvc_proc_share()
411 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_share()
416 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
417 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_share()
420 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
422 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_share()
436 struct nlm_res *resp = rqstp->rq_resp; in nlmsvc_proc_unshare() local
442 resp->cookie = argp->cookie; in nlmsvc_proc_unshare()
446 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_unshare()
451 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
452 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_unshare()
455 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
457 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_unshare()