Lines Matching refs:xdr

51 svcxdr_decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh)  in svcxdr_decode_fhandle()  argument
56 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_fhandle()
61 p = xdr_inline_decode(xdr, len); in svcxdr_decode_fhandle()
72 svcxdr_decode_lock(struct xdr_stream *xdr, struct nlm_lock *lock) in svcxdr_decode_lock() argument
77 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in svcxdr_decode_lock()
79 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in svcxdr_decode_lock()
81 if (!svcxdr_decode_owner(xdr, &lock->oh)) in svcxdr_decode_lock()
83 if (xdr_stream_decode_u32(xdr, &lock->svid) < 0) in svcxdr_decode_lock()
85 if (xdr_stream_decode_u32(xdr, &start) < 0) in svcxdr_decode_lock()
87 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_lock()
104 svcxdr_encode_holder(struct xdr_stream *xdr, const struct nlm_lock *lock) in svcxdr_encode_holder() argument
110 if (xdr_stream_encode_bool(xdr, fl->fl_type != F_RDLCK) < 0) in svcxdr_encode_holder()
112 if (xdr_stream_encode_u32(xdr, lock->svid) < 0) in svcxdr_encode_holder()
114 if (!svcxdr_encode_owner(xdr, &lock->oh)) in svcxdr_encode_holder()
121 if (xdr_stream_encode_u32(xdr, start) < 0) in svcxdr_encode_holder()
123 if (xdr_stream_encode_u32(xdr, len) < 0) in svcxdr_encode_holder()
130 svcxdr_encode_testrply(struct xdr_stream *xdr, const struct nlm_res *resp) in svcxdr_encode_testrply() argument
132 if (!svcxdr_encode_stats(xdr, resp->status)) in svcxdr_encode_testrply()
136 if (!svcxdr_encode_holder(xdr, &resp->lock)) in svcxdr_encode_testrply()
157 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlmsvc_decode_testargs() local
161 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_testargs()
163 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlmsvc_decode_testargs()
165 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_testargs()
176 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlmsvc_decode_lockargs() local
180 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_lockargs()
182 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlmsvc_decode_lockargs()
184 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlmsvc_decode_lockargs()
186 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_lockargs()
190 if (xdr_stream_decode_bool(xdr, &argp->reclaim) < 0) in nlmsvc_decode_lockargs()
192 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlmsvc_decode_lockargs()
202 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlmsvc_decode_cancargs() local
206 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_cancargs()
208 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlmsvc_decode_cancargs()
210 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlmsvc_decode_cancargs()
212 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_cancargs()
223 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlmsvc_decode_unlockargs() local
226 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_unlockargs()
228 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_unlockargs()
238 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlmsvc_decode_res() local
241 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlmsvc_decode_res()
243 if (!svcxdr_decode_stats(xdr, &resp->status)) in nlmsvc_decode_res()
252 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlmsvc_decode_reboot() local
256 if (xdr_stream_decode_u32(xdr, &len) < 0) in nlmsvc_decode_reboot()
260 p = xdr_inline_decode(xdr, len); in nlmsvc_decode_reboot()
265 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlmsvc_decode_reboot()
267 p = xdr_inline_decode(xdr, SM_PRIV_SIZE); in nlmsvc_decode_reboot()
278 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlmsvc_decode_shareargs() local
286 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_shareargs()
288 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlmsvc_decode_shareargs()
290 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in nlmsvc_decode_shareargs()
292 if (!svcxdr_decode_owner(xdr, &lock->oh)) in nlmsvc_decode_shareargs()
295 if (xdr_stream_decode_u32(xdr, &argp->fsm_mode) < 0) in nlmsvc_decode_shareargs()
297 if (xdr_stream_decode_u32(xdr, &argp->fsm_access) < 0) in nlmsvc_decode_shareargs()
306 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in nlmsvc_decode_notify() local
310 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlmsvc_decode_notify()
312 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlmsvc_decode_notify()
332 struct xdr_stream *xdr = &rqstp->rq_res_stream; in nlmsvc_encode_testres() local
335 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlmsvc_encode_testres()
336 svcxdr_encode_testrply(xdr, resp); in nlmsvc_encode_testres()
342 struct xdr_stream *xdr = &rqstp->rq_res_stream; in nlmsvc_encode_res() local
345 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlmsvc_encode_res()
346 svcxdr_encode_stats(xdr, resp->status); in nlmsvc_encode_res()
352 struct xdr_stream *xdr = &rqstp->rq_res_stream; in nlmsvc_encode_shareres() local
355 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlmsvc_encode_shareres()
357 if (!svcxdr_encode_stats(xdr, resp->status)) in nlmsvc_encode_shareres()
360 if (xdr_stream_encode_u32(xdr, 0) < 0) in nlmsvc_encode_shareres()