Lines Matching refs:xdr
53 svcxdr_decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in svcxdr_decode_fhandle() argument
58 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_fhandle()
63 p = xdr_inline_decode(xdr, len); in svcxdr_decode_fhandle()
74 svcxdr_decode_lock(struct xdr_stream *xdr, struct nlm_lock *lock) in svcxdr_decode_lock() argument
78 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in svcxdr_decode_lock()
80 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in svcxdr_decode_lock()
82 if (!svcxdr_decode_owner(xdr, &lock->oh)) in svcxdr_decode_lock()
84 if (xdr_stream_decode_u32(xdr, &lock->svid) < 0) in svcxdr_decode_lock()
86 if (xdr_stream_decode_u64(xdr, &lock->lock_start) < 0) in svcxdr_decode_lock()
88 if (xdr_stream_decode_u64(xdr, &lock->lock_len) < 0) in svcxdr_decode_lock()
99 svcxdr_encode_holder(struct xdr_stream *xdr, const struct nlm_lock *lock) in svcxdr_encode_holder() argument
105 if (xdr_stream_encode_bool(xdr, fl->fl_type != F_RDLCK) < 0) in svcxdr_encode_holder()
107 if (xdr_stream_encode_u32(xdr, lock->svid) < 0) in svcxdr_encode_holder()
109 if (!svcxdr_encode_owner(xdr, &lock->oh)) in svcxdr_encode_holder()
116 if (xdr_stream_encode_u64(xdr, start) < 0) in svcxdr_encode_holder()
118 if (xdr_stream_encode_u64(xdr, len) < 0) in svcxdr_encode_holder()
125 svcxdr_encode_testrply(struct xdr_stream *xdr, const struct nlm_res *resp) in svcxdr_encode_testrply() argument
127 if (!svcxdr_encode_stats(xdr, resp->status)) in svcxdr_encode_testrply()
131 if (!svcxdr_encode_holder(xdr, &resp->lock)) in svcxdr_encode_testrply()
144 nlm4svc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_void() argument
150 nlm4svc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_testargs() argument
155 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_testargs()
157 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_testargs()
159 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_testargs()
168 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_lockargs() argument
173 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_lockargs()
175 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlm4svc_decode_lockargs()
177 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_lockargs()
179 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_lockargs()
183 if (xdr_stream_decode_bool(xdr, &argp->reclaim) < 0) in nlm4svc_decode_lockargs()
185 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_lockargs()
193 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_cancargs() argument
198 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_cancargs()
200 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlm4svc_decode_cancargs()
202 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_cancargs()
204 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_cancargs()
213 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_unlockargs() argument
217 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_unlockargs()
219 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_unlockargs()
227 nlm4svc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_res() argument
231 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlm4svc_decode_res()
233 if (!svcxdr_decode_stats(xdr, &resp->status)) in nlm4svc_decode_res()
240 nlm4svc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_reboot() argument
246 if (xdr_stream_decode_u32(xdr, &len) < 0) in nlm4svc_decode_reboot()
250 p = xdr_inline_decode(xdr, len); in nlm4svc_decode_reboot()
255 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_reboot()
257 p = xdr_inline_decode(xdr, SM_PRIV_SIZE); in nlm4svc_decode_reboot()
266 nlm4svc_decode_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_shareargs() argument
275 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_shareargs()
277 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlm4svc_decode_shareargs()
279 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in nlm4svc_decode_shareargs()
281 if (!svcxdr_decode_owner(xdr, &lock->oh)) in nlm4svc_decode_shareargs()
284 if (xdr_stream_decode_u32(xdr, &argp->fsm_mode) < 0) in nlm4svc_decode_shareargs()
286 if (xdr_stream_decode_u32(xdr, &argp->fsm_access) < 0) in nlm4svc_decode_shareargs()
293 nlm4svc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_notify() argument
298 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlm4svc_decode_notify()
300 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_notify()
312 nlm4svc_encode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_void() argument
318 nlm4svc_encode_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_testres() argument
322 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_testres()
323 svcxdr_encode_testrply(xdr, resp); in nlm4svc_encode_testres()
327 nlm4svc_encode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_res() argument
331 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_res()
332 svcxdr_encode_stats(xdr, resp->status); in nlm4svc_encode_res()
336 nlm4svc_encode_shareres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_shareres() argument
340 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlm4svc_encode_shareres()
342 if (!svcxdr_encode_stats(xdr, resp->status)) in nlm4svc_encode_shareres()
345 if (xdr_stream_encode_u32(xdr, 0) < 0) in nlm4svc_encode_shareres()