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()
149 nlmsvc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_void() argument
155 nlmsvc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_testargs() argument
160 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_testargs()
162 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlmsvc_decode_testargs()
164 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_testargs()
173 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_lockargs() argument
178 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_lockargs()
180 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlmsvc_decode_lockargs()
182 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlmsvc_decode_lockargs()
184 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_lockargs()
188 if (xdr_stream_decode_bool(xdr, &argp->reclaim) < 0) in nlmsvc_decode_lockargs()
190 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlmsvc_decode_lockargs()
198 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_cancargs() argument
203 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_cancargs()
205 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlmsvc_decode_cancargs()
207 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlmsvc_decode_cancargs()
209 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_cancargs()
218 nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_unlockargs() argument
222 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_unlockargs()
224 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlmsvc_decode_unlockargs()
232 nlmsvc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_res() argument
236 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlmsvc_decode_res()
238 if (!svcxdr_decode_stats(xdr, &resp->status)) in nlmsvc_decode_res()
245 nlmsvc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_reboot() argument
251 if (xdr_stream_decode_u32(xdr, &len) < 0) in nlmsvc_decode_reboot()
255 p = xdr_inline_decode(xdr, len); in nlmsvc_decode_reboot()
260 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlmsvc_decode_reboot()
262 p = xdr_inline_decode(xdr, SM_PRIV_SIZE); in nlmsvc_decode_reboot()
271 nlmsvc_decode_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_shareargs() argument
280 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlmsvc_decode_shareargs()
282 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlmsvc_decode_shareargs()
284 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in nlmsvc_decode_shareargs()
286 if (!svcxdr_decode_owner(xdr, &lock->oh)) in nlmsvc_decode_shareargs()
289 if (xdr_stream_decode_u32(xdr, &argp->fsm_mode) < 0) in nlmsvc_decode_shareargs()
291 if (xdr_stream_decode_u32(xdr, &argp->fsm_access) < 0) in nlmsvc_decode_shareargs()
298 nlmsvc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_notify() argument
303 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlmsvc_decode_notify()
305 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlmsvc_decode_notify()
317 nlmsvc_encode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_encode_void() argument
323 nlmsvc_encode_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_encode_testres() argument
327 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlmsvc_encode_testres()
328 svcxdr_encode_testrply(xdr, resp); in nlmsvc_encode_testres()
332 nlmsvc_encode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_encode_res() argument
336 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlmsvc_encode_res()
337 svcxdr_encode_stats(xdr, resp->status); in nlmsvc_encode_res()
341 nlmsvc_encode_shareres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_encode_shareres() argument
345 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlmsvc_encode_shareres()
347 if (!svcxdr_encode_stats(xdr, resp->status)) in nlmsvc_encode_shareres()
350 if (xdr_stream_encode_u32(xdr, 0) < 0) in nlmsvc_encode_shareres()