Lines Matching refs:xdr
49 svcxdr_decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in svcxdr_decode_fhandle() argument
54 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_fhandle()
59 p = xdr_inline_decode(xdr, len); in svcxdr_decode_fhandle()
70 svcxdr_decode_lock(struct xdr_stream *xdr, struct nlm_lock *lock) in svcxdr_decode_lock() argument
76 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in svcxdr_decode_lock()
78 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in svcxdr_decode_lock()
80 if (!svcxdr_decode_owner(xdr, &lock->oh)) in svcxdr_decode_lock()
82 if (xdr_stream_decode_u32(xdr, &lock->svid) < 0) in svcxdr_decode_lock()
84 if (xdr_stream_decode_u64(xdr, &start) < 0) in svcxdr_decode_lock()
86 if (xdr_stream_decode_u64(xdr, &len) < 0) in svcxdr_decode_lock()
103 svcxdr_encode_holder(struct xdr_stream *xdr, const struct nlm_lock *lock) in svcxdr_encode_holder() argument
109 if (xdr_stream_encode_bool(xdr, fl->fl_type != F_RDLCK) < 0) in svcxdr_encode_holder()
111 if (xdr_stream_encode_u32(xdr, lock->svid) < 0) in svcxdr_encode_holder()
113 if (!svcxdr_encode_owner(xdr, &lock->oh)) in svcxdr_encode_holder()
120 if (xdr_stream_encode_u64(xdr, start) < 0) in svcxdr_encode_holder()
122 if (xdr_stream_encode_u64(xdr, len) < 0) in svcxdr_encode_holder()
129 svcxdr_encode_testrply(struct xdr_stream *xdr, const struct nlm_res *resp) in svcxdr_encode_testrply() argument
131 if (!svcxdr_encode_stats(xdr, resp->status)) in svcxdr_encode_testrply()
135 if (!svcxdr_encode_holder(xdr, &resp->lock)) in svcxdr_encode_testrply()
156 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlm4svc_decode_testargs() local
160 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_testargs()
162 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_testargs()
164 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_testargs()
175 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlm4svc_decode_lockargs() local
179 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_lockargs()
181 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlm4svc_decode_lockargs()
183 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_lockargs()
185 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_lockargs()
189 if (xdr_stream_decode_bool(xdr, &argp->reclaim) < 0) in nlm4svc_decode_lockargs()
191 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_lockargs()
201 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlm4svc_decode_cancargs() local
205 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_cancargs()
207 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlm4svc_decode_cancargs()
209 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_cancargs()
211 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_cancargs()
221 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlm4svc_decode_unlockargs() local
224 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_unlockargs()
226 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_unlockargs()
236 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlm4svc_decode_res() local
239 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlm4svc_decode_res()
241 if (!svcxdr_decode_stats(xdr, &resp->status)) in nlm4svc_decode_res()
250 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlm4svc_decode_reboot() local
254 if (xdr_stream_decode_u32(xdr, &len) < 0) in nlm4svc_decode_reboot()
258 p = xdr_inline_decode(xdr, len); in nlm4svc_decode_reboot()
263 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_reboot()
265 p = xdr_inline_decode(xdr, SM_PRIV_SIZE); in nlm4svc_decode_reboot()
276 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlm4svc_decode_shareargs() local
284 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_shareargs()
286 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlm4svc_decode_shareargs()
288 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in nlm4svc_decode_shareargs()
290 if (!svcxdr_decode_owner(xdr, &lock->oh)) in nlm4svc_decode_shareargs()
293 if (xdr_stream_decode_u32(xdr, &argp->fsm_mode) < 0) in nlm4svc_decode_shareargs()
295 if (xdr_stream_decode_u32(xdr, &argp->fsm_access) < 0) in nlm4svc_decode_shareargs()
304 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlm4svc_decode_notify() local
308 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlm4svc_decode_notify()
310 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_notify()
330 struct xdr_stream *xdr = &rqstp->rq_res_stream; in nlm4svc_encode_testres() local
333 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_testres()
334 svcxdr_encode_testrply(xdr, resp); in nlm4svc_encode_testres()
340 struct xdr_stream *xdr = &rqstp->rq_res_stream; in nlm4svc_encode_res() local
343 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_res()
344 svcxdr_encode_stats(xdr, resp->status); in nlm4svc_encode_res()
350 struct xdr_stream *xdr = &rqstp->rq_res_stream; in nlm4svc_encode_shareres() local
353 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlm4svc_encode_shareres()
355 if (!svcxdr_encode_stats(xdr, resp->status)) in nlm4svc_encode_shareres()
358 if (xdr_stream_encode_u32(xdr, 0) < 0) in nlm4svc_encode_shareres()