Lines Matching refs:xdr
42 svcxdr_decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in svcxdr_decode_fhandle() argument
47 if (xdr_stream_decode_u32(xdr, &len) < 0) in svcxdr_decode_fhandle()
52 p = xdr_inline_decode(xdr, len); in svcxdr_decode_fhandle()
63 svcxdr_decode_lock(struct xdr_stream *xdr, struct nlm_lock *lock) in svcxdr_decode_lock() argument
67 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in svcxdr_decode_lock()
69 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in svcxdr_decode_lock()
71 if (!svcxdr_decode_owner(xdr, &lock->oh)) in svcxdr_decode_lock()
73 if (xdr_stream_decode_u32(xdr, &lock->svid) < 0) in svcxdr_decode_lock()
75 if (xdr_stream_decode_u64(xdr, &lock->lock_start) < 0) in svcxdr_decode_lock()
77 if (xdr_stream_decode_u64(xdr, &lock->lock_len) < 0) in svcxdr_decode_lock()
88 svcxdr_encode_holder(struct xdr_stream *xdr, const struct nlm_lock *lock) in svcxdr_encode_holder() argument
94 if (xdr_stream_encode_bool(xdr, fl->fl_type != F_RDLCK) < 0) in svcxdr_encode_holder()
96 if (xdr_stream_encode_u32(xdr, lock->svid) < 0) in svcxdr_encode_holder()
98 if (!svcxdr_encode_owner(xdr, &lock->oh)) in svcxdr_encode_holder()
105 if (xdr_stream_encode_u64(xdr, start) < 0) in svcxdr_encode_holder()
107 if (xdr_stream_encode_u64(xdr, len) < 0) in svcxdr_encode_holder()
114 svcxdr_encode_testrply(struct xdr_stream *xdr, const struct nlm_res *resp) in svcxdr_encode_testrply() argument
116 if (!svcxdr_encode_stats(xdr, resp->status)) in svcxdr_encode_testrply()
120 if (!svcxdr_encode_holder(xdr, &resp->lock)) in svcxdr_encode_testrply()
133 nlm4svc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_void() argument
139 nlm4svc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_testargs() argument
144 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_testargs()
146 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_testargs()
148 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_testargs()
157 nlm4svc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_lockargs() argument
162 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_lockargs()
164 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlm4svc_decode_lockargs()
166 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_lockargs()
168 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_lockargs()
172 if (xdr_stream_decode_bool(xdr, &argp->reclaim) < 0) in nlm4svc_decode_lockargs()
174 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_lockargs()
182 nlm4svc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_cancargs() argument
187 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_cancargs()
189 if (xdr_stream_decode_bool(xdr, &argp->block) < 0) in nlm4svc_decode_cancargs()
191 if (xdr_stream_decode_bool(xdr, &exclusive) < 0) in nlm4svc_decode_cancargs()
193 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_cancargs()
202 nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_unlockargs() argument
206 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_unlockargs()
208 if (!svcxdr_decode_lock(xdr, &argp->lock)) in nlm4svc_decode_unlockargs()
216 nlm4svc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_res() argument
220 if (!svcxdr_decode_cookie(xdr, &resp->cookie)) in nlm4svc_decode_res()
222 if (!svcxdr_decode_stats(xdr, &resp->status)) in nlm4svc_decode_res()
229 nlm4svc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_reboot() argument
235 if (xdr_stream_decode_u32(xdr, &len) < 0) in nlm4svc_decode_reboot()
239 p = xdr_inline_decode(xdr, len); in nlm4svc_decode_reboot()
244 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_reboot()
246 p = xdr_inline_decode(xdr, SM_PRIV_SIZE); in nlm4svc_decode_reboot()
255 nlm4svc_decode_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_shareargs() argument
264 if (!svcxdr_decode_cookie(xdr, &argp->cookie)) in nlm4svc_decode_shareargs()
266 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlm4svc_decode_shareargs()
268 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in nlm4svc_decode_shareargs()
270 if (!svcxdr_decode_owner(xdr, &lock->oh)) in nlm4svc_decode_shareargs()
273 if (xdr_stream_decode_u32(xdr, &argp->fsm_mode) < 0) in nlm4svc_decode_shareargs()
275 if (xdr_stream_decode_u32(xdr, &argp->fsm_access) < 0) in nlm4svc_decode_shareargs()
282 nlm4svc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_decode_notify() argument
287 if (!svcxdr_decode_string(xdr, &lock->caller, &lock->len)) in nlm4svc_decode_notify()
289 if (xdr_stream_decode_u32(xdr, &argp->state) < 0) in nlm4svc_decode_notify()
301 nlm4svc_encode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_void() argument
307 nlm4svc_encode_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_testres() argument
311 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_testres()
312 svcxdr_encode_testrply(xdr, resp); in nlm4svc_encode_testres()
316 nlm4svc_encode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_res() argument
320 return svcxdr_encode_cookie(xdr, &resp->cookie) && in nlm4svc_encode_res()
321 svcxdr_encode_stats(xdr, resp->status); in nlm4svc_encode_res()
325 nlm4svc_encode_shareres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlm4svc_encode_shareres() argument
329 if (!svcxdr_encode_cookie(xdr, &resp->cookie)) in nlm4svc_encode_shareres()
331 if (!svcxdr_encode_stats(xdr, resp->status)) in nlm4svc_encode_shareres()
334 if (xdr_stream_encode_u32(xdr, 0) < 0) in nlm4svc_encode_shareres()