• Home
  • Raw
  • Download

Lines Matching refs:xdr

79 static void print_overflow_msg(const char *func, const struct xdr_stream *xdr)  in print_overflow_msg()  argument
83 func, xdr->end - xdr->p); in print_overflow_msg()
99 static void encode_bool(struct xdr_stream *xdr, const int value) in encode_bool() argument
103 p = xdr_reserve_space(xdr, 4); in encode_bool()
107 static void encode_int32(struct xdr_stream *xdr, const s32 value) in encode_int32() argument
111 p = xdr_reserve_space(xdr, 4); in encode_int32()
118 static void encode_netobj(struct xdr_stream *xdr, in encode_netobj() argument
123 p = xdr_reserve_space(xdr, 4 + length); in encode_netobj()
127 static int decode_netobj(struct xdr_stream *xdr, in decode_netobj() argument
133 p = xdr_inline_decode(xdr, 4); in decode_netobj()
146 print_overflow_msg(__func__, xdr); in decode_netobj()
153 static void encode_cookie(struct xdr_stream *xdr, in encode_cookie() argument
156 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie()
159 static int decode_cookie(struct xdr_stream *xdr, in decode_cookie() argument
165 p = xdr_inline_decode(xdr, 4); in decode_cookie()
174 p = xdr_inline_decode(xdr, length); in decode_cookie()
188 print_overflow_msg(__func__, xdr); in decode_cookie()
195 static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fh() argument
197 encode_netobj(xdr, (u8 *)&fh->data, fh->size); in encode_fh()
222 static void encode_nlm4_stat(struct xdr_stream *xdr, in encode_nlm4_stat() argument
228 p = xdr_reserve_space(xdr, 4); in encode_nlm4_stat()
232 static int decode_nlm4_stat(struct xdr_stream *xdr, __be32 *stat) in decode_nlm4_stat() argument
236 p = xdr_inline_decode(xdr, 4); in decode_nlm4_stat()
248 print_overflow_msg(__func__, xdr); in decode_nlm4_stat()
261 static void encode_nlm4_holder(struct xdr_stream *xdr, in encode_nlm4_holder() argument
268 encode_bool(xdr, lock->fl.fl_type == F_RDLCK); in encode_nlm4_holder()
269 encode_int32(xdr, lock->svid); in encode_nlm4_holder()
270 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm4_holder()
272 p = xdr_reserve_space(xdr, 4 + 4); in encode_nlm4_holder()
278 static int decode_nlm4_holder(struct xdr_stream *xdr, struct nlm_res *result) in decode_nlm4_holder() argument
291 p = xdr_inline_decode(xdr, 4 + 4); in decode_nlm4_holder()
298 error = decode_netobj(xdr, &lock->oh); in decode_nlm4_holder()
302 p = xdr_inline_decode(xdr, 8 + 8); in decode_nlm4_holder()
321 print_overflow_msg(__func__, xdr); in decode_nlm4_holder()
328 static void encode_caller_name(struct xdr_stream *xdr, const char *name) in encode_caller_name() argument
334 p = xdr_reserve_space(xdr, 4 + length); in encode_caller_name()
348 static void encode_nlm4_lock(struct xdr_stream *xdr, in encode_nlm4_lock() argument
354 encode_caller_name(xdr, lock->caller); in encode_nlm4_lock()
355 encode_fh(xdr, &lock->fh); in encode_nlm4_lock()
356 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm4_lock()
358 p = xdr_reserve_space(xdr, 4 + 8 + 8); in encode_nlm4_lock()
383 struct xdr_stream *xdr, in nlm4_xdr_enc_testargs() argument
388 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_testargs()
389 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_testargs()
390 encode_nlm4_lock(xdr, lock); in nlm4_xdr_enc_testargs()
404 struct xdr_stream *xdr, in nlm4_xdr_enc_lockargs() argument
409 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_lockargs()
410 encode_bool(xdr, args->block); in nlm4_xdr_enc_lockargs()
411 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_lockargs()
412 encode_nlm4_lock(xdr, lock); in nlm4_xdr_enc_lockargs()
413 encode_bool(xdr, args->reclaim); in nlm4_xdr_enc_lockargs()
414 encode_int32(xdr, args->state); in nlm4_xdr_enc_lockargs()
426 struct xdr_stream *xdr, in nlm4_xdr_enc_cancargs() argument
431 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_cancargs()
432 encode_bool(xdr, args->block); in nlm4_xdr_enc_cancargs()
433 encode_bool(xdr, lock->fl.fl_type == F_WRLCK); in nlm4_xdr_enc_cancargs()
434 encode_nlm4_lock(xdr, lock); in nlm4_xdr_enc_cancargs()
444 struct xdr_stream *xdr, in nlm4_xdr_enc_unlockargs() argument
449 encode_cookie(xdr, &args->cookie); in nlm4_xdr_enc_unlockargs()
450 encode_nlm4_lock(xdr, lock); in nlm4_xdr_enc_unlockargs()
460 struct xdr_stream *xdr, in nlm4_xdr_enc_res() argument
463 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_res()
464 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_res()
481 struct xdr_stream *xdr, in nlm4_xdr_enc_testres() argument
484 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_testres()
485 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_testres()
487 encode_nlm4_holder(xdr, result); in nlm4_xdr_enc_testres()
512 static int decode_nlm4_testrply(struct xdr_stream *xdr, in decode_nlm4_testrply() argument
517 error = decode_nlm4_stat(xdr, &result->status); in decode_nlm4_testrply()
521 error = decode_nlm4_holder(xdr, result); in decode_nlm4_testrply()
527 struct xdr_stream *xdr, in nlm4_xdr_dec_testres() argument
532 error = decode_cookie(xdr, &result->cookie); in nlm4_xdr_dec_testres()
535 error = decode_nlm4_testrply(xdr, result); in nlm4_xdr_dec_testres()
547 struct xdr_stream *xdr, in nlm4_xdr_dec_res() argument
552 error = decode_cookie(xdr, &result->cookie); in nlm4_xdr_dec_res()
555 error = decode_nlm4_stat(xdr, &result->status); in nlm4_xdr_dec_res()