Lines Matching full:resp

85 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp)  in __nlm4svc_proc_test()  argument
93 resp->cookie = argp->cookie; in __nlm4svc_proc_test()
96 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test()
97 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlm4svc_proc_test()
100 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test()
101 if (resp->status == nlm_drop_reply) in __nlm4svc_proc_test()
104 dprintk("lockd: TEST4 status %d\n", ntohl(resp->status)); in __nlm4svc_proc_test()
119 __nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_lock() argument
128 resp->cookie = argp->cookie; in __nlm4svc_proc_lock()
131 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_lock()
132 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlm4svc_proc_lock()
142 resp->status = nlm_lck_denied_nolocks; in __nlm4svc_proc_lock()
147 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_lock()
150 if (resp->status == nlm_drop_reply) in __nlm4svc_proc_lock()
153 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); in __nlm4svc_proc_lock()
168 __nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_cancel() argument
176 resp->cookie = argp->cookie; in __nlm4svc_proc_cancel()
180 resp->status = nlm_lck_denied_grace_period; in __nlm4svc_proc_cancel()
185 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_cancel()
186 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlm4svc_proc_cancel()
189 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_cancel()
191 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); in __nlm4svc_proc_cancel()
208 __nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_unlock() argument
216 resp->cookie = argp->cookie; in __nlm4svc_proc_unlock()
220 resp->status = nlm_lck_denied_grace_period; in __nlm4svc_proc_unlock()
225 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_unlock()
226 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlm4svc_proc_unlock()
229 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); in __nlm4svc_proc_unlock()
231 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); in __nlm4svc_proc_unlock()
249 __nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_granted() argument
253 resp->cookie = argp->cookie; in __nlm4svc_proc_granted()
256 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlm4svc_proc_granted()
257 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); in __nlm4svc_proc_granted()
359 struct nlm_res *resp = rqstp->rq_resp; in nlm4svc_proc_share() local
365 resp->cookie = argp->cookie; in nlm4svc_proc_share()
369 resp->status = nlm_lck_denied_grace_period; in nlm4svc_proc_share()
374 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
375 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_share()
378 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
380 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); in nlm4svc_proc_share()
394 struct nlm_res *resp = rqstp->rq_resp; in nlm4svc_proc_unshare() local
400 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
404 resp->status = nlm_lck_denied_grace_period; in nlm4svc_proc_unshare()
409 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
410 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_unshare()
413 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
415 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); in nlm4svc_proc_unshare()