Lines Matching refs:resp
65 nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) in nlm4svc_proc_null() argument
76 struct nlm_res *resp) in nlm4svc_proc_test() argument
83 resp->cookie = argp->cookie; in nlm4svc_proc_test()
86 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_test()
87 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_test()
90 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in nlm4svc_proc_test()
91 if (resp->status == nlm_drop_reply) in nlm4svc_proc_test()
94 dprintk("lockd: TEST4 status %d\n", ntohl(resp->status)); in nlm4svc_proc_test()
103 struct nlm_res *resp) in nlm4svc_proc_lock() argument
111 resp->cookie = argp->cookie; in nlm4svc_proc_lock()
114 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_lock()
115 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_lock()
125 resp->status = nlm_lck_denied_nolocks; in nlm4svc_proc_lock()
130 resp->status = nlmsvc_lock(rqstp, file, host, &argp->lock, in nlm4svc_proc_lock()
133 if (resp->status == nlm_drop_reply) in nlm4svc_proc_lock()
136 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); in nlm4svc_proc_lock()
145 struct nlm_res *resp) in nlm4svc_proc_cancel() argument
152 resp->cookie = argp->cookie; in nlm4svc_proc_cancel()
156 resp->status = nlm_lck_denied_grace_period; in nlm4svc_proc_cancel()
161 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_cancel()
162 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_cancel()
165 resp->status = nlmsvc_cancel_blocked(SVC_NET(rqstp), file, &argp->lock); in nlm4svc_proc_cancel()
167 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); in nlm4svc_proc_cancel()
178 struct nlm_res *resp) in nlm4svc_proc_unlock() argument
185 resp->cookie = argp->cookie; in nlm4svc_proc_unlock()
189 resp->status = nlm_lck_denied_grace_period; in nlm4svc_proc_unlock()
194 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unlock()
195 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_unlock()
198 resp->status = nlmsvc_unlock(SVC_NET(rqstp), file, &argp->lock); in nlm4svc_proc_unlock()
200 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); in nlm4svc_proc_unlock()
212 struct nlm_res *resp) in nlm4svc_proc_granted() argument
214 resp->cookie = argp->cookie; in nlm4svc_proc_granted()
217 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in nlm4svc_proc_granted()
218 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); in nlm4svc_proc_granted()
277 void *resp) in nlm4svc_proc_test_msg() argument
284 void *resp) in nlm4svc_proc_lock_msg() argument
291 void *resp) in nlm4svc_proc_cancel_msg() argument
298 void *resp) in nlm4svc_proc_unlock_msg() argument
305 void *resp) in nlm4svc_proc_granted_msg() argument
316 struct nlm_res *resp) in nlm4svc_proc_share() argument
323 resp->cookie = argp->cookie; in nlm4svc_proc_share()
327 resp->status = nlm_lck_denied_grace_period; in nlm4svc_proc_share()
332 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_share()
333 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_share()
336 resp->status = nlmsvc_share_file(host, file, argp); in nlm4svc_proc_share()
338 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); in nlm4svc_proc_share()
349 struct nlm_res *resp) in nlm4svc_proc_unshare() argument
356 resp->cookie = argp->cookie; in nlm4svc_proc_unshare()
360 resp->status = nlm_lck_denied_grace_period; in nlm4svc_proc_unshare()
365 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in nlm4svc_proc_unshare()
366 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlm4svc_proc_unshare()
369 resp->status = nlmsvc_unshare_file(host, file, argp); in nlm4svc_proc_unshare()
371 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); in nlm4svc_proc_unshare()
382 struct nlm_res *resp) in nlm4svc_proc_nm_lock() argument
387 return nlm4svc_proc_lock(rqstp, argp, resp); in nlm4svc_proc_nm_lock()
395 void *resp) in nlm4svc_proc_free_all() argument
413 void *resp) in nlm4svc_proc_sm_notify() argument
433 void *resp) in nlm4svc_proc_granted_res() argument