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()
148 nlm4svc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_void() argument
154 nlm4svc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_testargs() argument
159 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_testargs()
161 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_testargs()
163 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_testargs()
172 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_lockargs() argument
177 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_lockargs()
179 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlm4svc_decode_lockargs()
181 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_lockargs()
183 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_lockargs()
187 if (xdr_stream_decode_bool(xdr, &argp->reclaim) < 0) in nlm4svc_decode_lockargs()
189 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_lockargs()
197 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_cancargs() argument
202 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_cancargs()
204 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlm4svc_decode_cancargs()
206 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_cancargs()
208 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_cancargs()
217 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_unlockargs() argument
221 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_unlockargs()
223 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_unlockargs()
231 nlm4svc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_res() argument
235 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlm4svc_decode_res()
237 if (!svcxdr_decode_stats(xdr, &resp->status)) in nlm4svc_decode_res()
244 nlm4svc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_reboot() argument
250 if (xdr_stream_decode_u32(xdr, &len) < 0) in nlm4svc_decode_reboot()
254 p = xdr_inline_decode(xdr, len); in nlm4svc_decode_reboot()
259 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_reboot()
261 p = xdr_inline_decode(xdr, SM_PRIV_SIZE); in nlm4svc_decode_reboot()
270 nlm4svc_decode_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_shareargs() argument
279 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_shareargs()
281 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlm4svc_decode_shareargs()
283 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in nlm4svc_decode_shareargs()
285 if (!svcxdr_decode_owner(xdr, &lock->oh)) in nlm4svc_decode_shareargs()
288 if (xdr_stream_decode_u32(xdr, &argp->fsm_mode) < 0) in nlm4svc_decode_shareargs()
290 if (xdr_stream_decode_u32(xdr, &argp->fsm_access) < 0) in nlm4svc_decode_shareargs()
297 nlm4svc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_notify() argument
302 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlm4svc_decode_notify()
304 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_notify()
316 nlm4svc_encode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_void() argument
322 nlm4svc_encode_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_testres() argument
326 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_testres()
327 svcxdr_encode_testrply(xdr, resp); in nlm4svc_encode_testres()
331 nlm4svc_encode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_res() argument
335 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_res()
336 svcxdr_encode_stats(xdr, resp->status); in nlm4svc_encode_res()
340 nlm4svc_encode_shareres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_shareres() argument
344 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlm4svc_encode_shareres()
346 if (!svcxdr_encode_stats(xdr, resp->status)) in nlm4svc_encode_shareres()
349 if (xdr_stream_encode_u32(xdr, 0) < 0) in nlm4svc_encode_shareres()