Lines Matching refs:xdr

262 static void encode_fallocate(struct xdr_stream *xdr,  in encode_fallocate()  argument
265 encode_nfs4_stateid(xdr, &args->falloc_stateid); in encode_fallocate()
266 encode_uint64(xdr, args->falloc_offset); in encode_fallocate()
267 encode_uint64(xdr, args->falloc_length); in encode_fallocate()
270 static void encode_allocate(struct xdr_stream *xdr, in encode_allocate() argument
274 encode_op_hdr(xdr, OP_ALLOCATE, decode_allocate_maxsz, hdr); in encode_allocate()
275 encode_fallocate(xdr, args); in encode_allocate()
278 static void encode_nl4_server(struct xdr_stream *xdr, in encode_nl4_server() argument
281 encode_uint32(xdr, ns->nl4_type); in encode_nl4_server()
285 encode_string(xdr, ns->u.nl4_str_sz, ns->u.nl4_str); in encode_nl4_server()
288 encode_string(xdr, ns->u.nl4_addr.netid_len, in encode_nl4_server()
290 encode_string(xdr, ns->u.nl4_addr.addr_len, in encode_nl4_server()
298 static void encode_copy(struct xdr_stream *xdr, in encode_copy() argument
302 encode_op_hdr(xdr, OP_COPY, decode_copy_maxsz, hdr); in encode_copy()
303 encode_nfs4_stateid(xdr, &args->src_stateid); in encode_copy()
304 encode_nfs4_stateid(xdr, &args->dst_stateid); in encode_copy()
306 encode_uint64(xdr, args->src_pos); in encode_copy()
307 encode_uint64(xdr, args->dst_pos); in encode_copy()
308 encode_uint64(xdr, args->count); in encode_copy()
310 encode_uint32(xdr, 1); /* consecutive = true */ in encode_copy()
311 encode_uint32(xdr, args->sync); in encode_copy()
313 encode_uint32(xdr, 0); /* no src server list */ in encode_copy()
316 encode_uint32(xdr, 1); /* supporting 1 server */ in encode_copy()
317 encode_nl4_server(xdr, args->cp_src); in encode_copy()
320 static void encode_offload_cancel(struct xdr_stream *xdr, in encode_offload_cancel() argument
324 encode_op_hdr(xdr, OP_OFFLOAD_CANCEL, decode_offload_cancel_maxsz, hdr); in encode_offload_cancel()
325 encode_nfs4_stateid(xdr, &args->osa_stateid); in encode_offload_cancel()
328 static void encode_copy_notify(struct xdr_stream *xdr, in encode_copy_notify() argument
332 encode_op_hdr(xdr, OP_COPY_NOTIFY, decode_copy_notify_maxsz, hdr); in encode_copy_notify()
333 encode_nfs4_stateid(xdr, &args->cna_src_stateid); in encode_copy_notify()
334 encode_nl4_server(xdr, &args->cna_dst); in encode_copy_notify()
337 static void encode_deallocate(struct xdr_stream *xdr, in encode_deallocate() argument
341 encode_op_hdr(xdr, OP_DEALLOCATE, decode_deallocate_maxsz, hdr); in encode_deallocate()
342 encode_fallocate(xdr, args); in encode_deallocate()
345 static void encode_read_plus(struct xdr_stream *xdr, in encode_read_plus() argument
349 encode_op_hdr(xdr, OP_READ_PLUS, decode_read_plus_maxsz, hdr); in encode_read_plus()
350 encode_nfs4_stateid(xdr, &args->stateid); in encode_read_plus()
351 encode_uint64(xdr, args->offset); in encode_read_plus()
352 encode_uint32(xdr, args->count); in encode_read_plus()
355 static void encode_seek(struct xdr_stream *xdr, in encode_seek() argument
359 encode_op_hdr(xdr, OP_SEEK, decode_seek_maxsz, hdr); in encode_seek()
360 encode_nfs4_stateid(xdr, &args->sa_stateid); in encode_seek()
361 encode_uint64(xdr, args->sa_offset); in encode_seek()
362 encode_uint32(xdr, args->sa_what); in encode_seek()
365 static void encode_layoutstats(struct xdr_stream *xdr, in encode_layoutstats() argument
372 encode_op_hdr(xdr, OP_LAYOUTSTATS, decode_layoutstats_maxsz, hdr); in encode_layoutstats()
373 p = reserve_space(xdr, 8 + 8); in encode_layoutstats()
376 encode_nfs4_stateid(xdr, &args->stateid); in encode_layoutstats()
377 p = reserve_space(xdr, 4*8 + NFS4_DEVICEID4_SIZE + 4); in encode_layoutstats()
387 devinfo->ld_private.ops->encode(xdr, args, in encode_layoutstats()
390 encode_uint32(xdr, 0); in encode_layoutstats()
393 static void encode_clone(struct xdr_stream *xdr, in encode_clone() argument
399 encode_op_hdr(xdr, OP_CLONE, decode_clone_maxsz, hdr); in encode_clone()
400 encode_nfs4_stateid(xdr, &args->src_stateid); in encode_clone()
401 encode_nfs4_stateid(xdr, &args->dst_stateid); in encode_clone()
402 p = reserve_space(xdr, 3*8); in encode_clone()
408 static void encode_device_error(struct xdr_stream *xdr, in encode_device_error() argument
413 p = reserve_space(xdr, NFS4_DEVICEID4_SIZE + 2*4); in encode_device_error()
420 static void encode_layouterror(struct xdr_stream *xdr, in encode_layouterror() argument
426 encode_op_hdr(xdr, OP_LAYOUTERROR, decode_layouterror_maxsz, hdr); in encode_layouterror()
427 p = reserve_space(xdr, 8 + 8); in encode_layouterror()
430 encode_nfs4_stateid(xdr, &args->stateid); in encode_layouterror()
431 p = reserve_space(xdr, 4); in encode_layouterror()
433 encode_device_error(xdr, &args->errors[0]); in encode_layouterror()
436 static void encode_setxattr(struct xdr_stream *xdr, in encode_setxattr() argument
445 encode_op_hdr(xdr, OP_SETXATTR, decode_setxattr_maxsz, hdr); in encode_setxattr()
446 p = reserve_space(xdr, 4); in encode_setxattr()
448 encode_string(xdr, strlen(arg->xattr_name), arg->xattr_name); in encode_setxattr()
449 p = reserve_space(xdr, 4); in encode_setxattr()
452 xdr_write_pages(xdr, arg->xattr_pages, 0, arg->xattr_len); in encode_setxattr()
455 static int decode_setxattr(struct xdr_stream *xdr, in decode_setxattr() argument
460 status = decode_op_hdr(xdr, OP_SETXATTR); in decode_setxattr()
463 status = decode_change_info(xdr, cinfo); in decode_setxattr()
469 static void encode_getxattr(struct xdr_stream *xdr, const char *name, in encode_getxattr() argument
472 encode_op_hdr(xdr, OP_GETXATTR, decode_getxattr_maxsz, hdr); in encode_getxattr()
473 encode_string(xdr, strlen(name), name); in encode_getxattr()
476 static int decode_getxattr(struct xdr_stream *xdr, in decode_getxattr() argument
484 status = decode_op_hdr(xdr, OP_GETXATTR); in decode_getxattr()
488 p = xdr_inline_decode(xdr, 4); in decode_getxattr()
505 rdlen = xdr_read_pages(xdr, len); in decode_getxattr()
513 static void encode_removexattr(struct xdr_stream *xdr, const char *name, in encode_removexattr() argument
516 encode_op_hdr(xdr, OP_REMOVEXATTR, decode_removexattr_maxsz, hdr); in encode_removexattr()
517 encode_string(xdr, strlen(name), name); in encode_removexattr()
521 static int decode_removexattr(struct xdr_stream *xdr, in decode_removexattr() argument
526 status = decode_op_hdr(xdr, OP_REMOVEXATTR); in decode_removexattr()
530 status = decode_change_info(xdr, cinfo); in decode_removexattr()
535 static void encode_listxattrs(struct xdr_stream *xdr, in encode_listxattrs() argument
541 encode_op_hdr(xdr, OP_LISTXATTRS, decode_listxattrs_maxsz, hdr); in encode_listxattrs()
543 p = reserve_space(xdr, 12); in encode_listxattrs()
556 static int decode_listxattrs(struct xdr_stream *xdr, in decode_listxattrs() argument
565 status = decode_op_hdr(xdr, OP_LISTXATTRS); in decode_listxattrs()
584 p = xdr_inline_decode(xdr, 8); in decode_listxattrs()
590 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
609 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
619 p = xdr_inline_decode(xdr, len); in decode_listxattrs()
640 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
658 struct xdr_stream *xdr, in nfs4_xdr_enc_allocate() argument
666 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_allocate()
667 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_allocate()
668 encode_putfh(xdr, args->falloc_fh, &hdr); in nfs4_xdr_enc_allocate()
669 encode_allocate(xdr, args, &hdr); in nfs4_xdr_enc_allocate()
670 encode_getfattr(xdr, args->falloc_bitmask, &hdr); in nfs4_xdr_enc_allocate()
674 static void encode_copy_commit(struct xdr_stream *xdr, in encode_copy_commit() argument
680 encode_op_hdr(xdr, OP_COMMIT, decode_commit_maxsz, hdr); in encode_copy_commit()
681 p = reserve_space(xdr, 12); in encode_copy_commit()
690 struct xdr_stream *xdr, in nfs4_xdr_enc_copy() argument
698 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_copy()
699 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_copy()
700 encode_putfh(xdr, args->src_fh, &hdr); in nfs4_xdr_enc_copy()
701 encode_savefh(xdr, &hdr); in nfs4_xdr_enc_copy()
702 encode_putfh(xdr, args->dst_fh, &hdr); in nfs4_xdr_enc_copy()
703 encode_copy(xdr, args, &hdr); in nfs4_xdr_enc_copy()
705 encode_copy_commit(xdr, args, &hdr); in nfs4_xdr_enc_copy()
713 struct xdr_stream *xdr, in nfs4_xdr_enc_offload_cancel() argument
721 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_offload_cancel()
722 encode_sequence(xdr, &args->osa_seq_args, &hdr); in nfs4_xdr_enc_offload_cancel()
723 encode_putfh(xdr, args->osa_src_fh, &hdr); in nfs4_xdr_enc_offload_cancel()
724 encode_offload_cancel(xdr, args, &hdr); in nfs4_xdr_enc_offload_cancel()
732 struct xdr_stream *xdr, in nfs4_xdr_enc_copy_notify() argument
740 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_copy_notify()
741 encode_sequence(xdr, &args->cna_seq_args, &hdr); in nfs4_xdr_enc_copy_notify()
742 encode_putfh(xdr, args->cna_src_fh, &hdr); in nfs4_xdr_enc_copy_notify()
743 encode_copy_notify(xdr, args, &hdr); in nfs4_xdr_enc_copy_notify()
751 struct xdr_stream *xdr, in nfs4_xdr_enc_deallocate() argument
759 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_deallocate()
760 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_deallocate()
761 encode_putfh(xdr, args->falloc_fh, &hdr); in nfs4_xdr_enc_deallocate()
762 encode_deallocate(xdr, args, &hdr); in nfs4_xdr_enc_deallocate()
763 encode_getfattr(xdr, args->falloc_bitmask, &hdr); in nfs4_xdr_enc_deallocate()
771 struct xdr_stream *xdr, in nfs4_xdr_enc_read_plus() argument
779 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_read_plus()
780 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_read_plus()
781 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_read_plus()
782 encode_read_plus(xdr, args, &hdr); in nfs4_xdr_enc_read_plus()
793 struct xdr_stream *xdr, in nfs4_xdr_enc_seek() argument
801 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_seek()
802 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_seek()
803 encode_putfh(xdr, args->sa_fh, &hdr); in nfs4_xdr_enc_seek()
804 encode_seek(xdr, args, &hdr); in nfs4_xdr_enc_seek()
812 struct xdr_stream *xdr, in nfs4_xdr_enc_layoutstats() argument
822 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_layoutstats()
823 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_layoutstats()
824 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_layoutstats()
827 encode_layoutstats(xdr, args, &args->devinfo[i], &hdr); in nfs4_xdr_enc_layoutstats()
835 struct xdr_stream *xdr, in nfs4_xdr_enc_clone() argument
843 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_clone()
844 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_clone()
845 encode_putfh(xdr, args->src_fh, &hdr); in nfs4_xdr_enc_clone()
846 encode_savefh(xdr, &hdr); in nfs4_xdr_enc_clone()
847 encode_putfh(xdr, args->dst_fh, &hdr); in nfs4_xdr_enc_clone()
848 encode_clone(xdr, args, &hdr); in nfs4_xdr_enc_clone()
849 encode_getfattr(xdr, args->dst_bitmask, &hdr); in nfs4_xdr_enc_clone()
857 struct xdr_stream *xdr, in nfs4_xdr_enc_layouterror() argument
866 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_layouterror()
867 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_layouterror()
868 encode_putfh(xdr, NFS_FH(args->inode), &hdr); in nfs4_xdr_enc_layouterror()
870 encode_layouterror(xdr, &args->errors[i], &hdr); in nfs4_xdr_enc_layouterror()
874 static int decode_allocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_allocate() argument
876 return decode_op_hdr(xdr, OP_ALLOCATE); in decode_allocate()
879 static int decode_write_response(struct xdr_stream *xdr, in decode_write_response() argument
885 p = xdr_inline_decode(xdr, 4); in decode_write_response()
892 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response()
897 p = xdr_inline_decode(xdr, 8 + 4); in decode_write_response()
902 return decode_verifier(xdr, &res->verifier.verifier); in decode_write_response()
905 static int decode_nl4_server(struct xdr_stream *xdr, struct nl4_server *ns) in decode_nl4_server() argument
914 p = xdr_inline_decode(xdr, 4); in decode_nl4_server()
921 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_nl4_server()
933 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_nl4_server()
942 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_nl4_server()
957 static int decode_copy_requirements(struct xdr_stream *xdr, in decode_copy_requirements() argument
961 p = xdr_inline_decode(xdr, 4 + 4); in decode_copy_requirements()
970 static int decode_copy(struct xdr_stream *xdr, struct nfs42_copy_res *res) in decode_copy() argument
974 status = decode_op_hdr(xdr, OP_COPY); in decode_copy()
976 status = decode_copy_requirements(xdr, res); in decode_copy()
983 status = decode_write_response(xdr, &res->write_res); in decode_copy()
987 return decode_copy_requirements(xdr, res); in decode_copy()
990 static int decode_offload_cancel(struct xdr_stream *xdr, in decode_offload_cancel() argument
993 return decode_op_hdr(xdr, OP_OFFLOAD_CANCEL); in decode_offload_cancel()
996 static int decode_copy_notify(struct xdr_stream *xdr, in decode_copy_notify() argument
1002 status = decode_op_hdr(xdr, OP_COPY_NOTIFY); in decode_copy_notify()
1006 p = xdr_inline_decode(xdr, 12); in decode_copy_notify()
1012 status = decode_opaque_fixed(xdr, &res->cnr_stateid, NFS4_STATEID_SIZE); in decode_copy_notify()
1017 p = xdr_inline_decode(xdr, 4); in decode_copy_notify()
1026 status = decode_nl4_server(xdr, &res->cnr_src); in decode_copy_notify()
1032 static int decode_deallocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_deallocate() argument
1034 return decode_op_hdr(xdr, OP_DEALLOCATE); in decode_deallocate()
1057 static int decode_read_plus_segment(struct xdr_stream *xdr, in decode_read_plus_segment() argument
1062 p = xdr_inline_decode(xdr, 4); in decode_read_plus_segment()
1067 p = xdr_inline_decode(xdr, seg->type == NFS4_CONTENT_DATA ? 12 : 16); in decode_read_plus_segment()
1077 seg->data.from = xdr_stream_pos(xdr); in decode_read_plus_segment()
1079 if (!xdr_stream_subsegment(xdr, &buf, xdr_align_size(len))) in decode_read_plus_segment()
1088 static int process_read_plus_segment(struct xdr_stream *xdr, in process_read_plus_segment() argument
1110 bufpos = xdr->buf->head[0].iov_len + (offset - args->offset); in process_read_plus_segment()
1112 return xdr_stream_zero(xdr, bufpos, length); in process_read_plus_segment()
1114 return xdr_stream_move_subsegment(xdr, seg->data.from, bufpos, length); in process_read_plus_segment()
1117 static int decode_read_plus(struct xdr_stream *xdr, struct nfs_pgio_res *res) in decode_read_plus() argument
1128 status = decode_op_hdr(xdr, OP_READ_PLUS); in decode_read_plus()
1132 p = xdr_inline_decode(xdr, 4 + 4); in decode_read_plus()
1146 xdr_set_scratch_buffer(xdr, &scratch_buf, sizeof(scratch_buf)); in decode_read_plus()
1149 status = decode_read_plus_segment(xdr, &segs[i]); in decode_read_plus()
1154 xdr_set_pagelen(xdr, xdr_align_size(args->count)); in decode_read_plus()
1156 res->count += process_read_plus_segment(xdr, args, res, &segs[i-1]); in decode_read_plus()
1164 static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res) in decode_seek() argument
1169 status = decode_op_hdr(xdr, OP_SEEK); in decode_seek()
1173 p = xdr_inline_decode(xdr, 4 + 8); in decode_seek()
1182 static int decode_layoutstats(struct xdr_stream *xdr) in decode_layoutstats() argument
1184 return decode_op_hdr(xdr, OP_LAYOUTSTATS); in decode_layoutstats()
1187 static int decode_clone(struct xdr_stream *xdr) in decode_clone() argument
1189 return decode_op_hdr(xdr, OP_CLONE); in decode_clone()
1192 static int decode_layouterror(struct xdr_stream *xdr) in decode_layouterror() argument
1194 return decode_op_hdr(xdr, OP_LAYOUTERROR); in decode_layouterror()
1201 struct xdr_stream *xdr, in nfs4_xdr_dec_allocate() argument
1208 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_allocate()
1211 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_allocate()
1214 status = decode_putfh(xdr); in nfs4_xdr_dec_allocate()
1217 status = decode_allocate(xdr, res); in nfs4_xdr_dec_allocate()
1220 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_allocate()
1229 struct xdr_stream *xdr, in nfs4_xdr_dec_copy() argument
1236 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_copy()
1239 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_copy()
1242 status = decode_putfh(xdr); in nfs4_xdr_dec_copy()
1245 status = decode_savefh(xdr); in nfs4_xdr_dec_copy()
1248 status = decode_putfh(xdr); in nfs4_xdr_dec_copy()
1251 status = decode_copy(xdr, res); in nfs4_xdr_dec_copy()
1255 status = decode_commit(xdr, &res->commit_res); in nfs4_xdr_dec_copy()
1264 struct xdr_stream *xdr, in nfs4_xdr_dec_offload_cancel() argument
1271 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_offload_cancel()
1274 status = decode_sequence(xdr, &res->osr_seq_res, rqstp); in nfs4_xdr_dec_offload_cancel()
1277 status = decode_putfh(xdr); in nfs4_xdr_dec_offload_cancel()
1280 status = decode_offload_cancel(xdr, res); in nfs4_xdr_dec_offload_cancel()
1290 struct xdr_stream *xdr, in nfs4_xdr_dec_copy_notify() argument
1297 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_copy_notify()
1300 status = decode_sequence(xdr, &res->cnr_seq_res, rqstp); in nfs4_xdr_dec_copy_notify()
1303 status = decode_putfh(xdr); in nfs4_xdr_dec_copy_notify()
1306 status = decode_copy_notify(xdr, res); in nfs4_xdr_dec_copy_notify()
1316 struct xdr_stream *xdr, in nfs4_xdr_dec_deallocate() argument
1323 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_deallocate()
1326 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_deallocate()
1329 status = decode_putfh(xdr); in nfs4_xdr_dec_deallocate()
1332 status = decode_deallocate(xdr, res); in nfs4_xdr_dec_deallocate()
1335 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_deallocate()
1344 struct xdr_stream *xdr, in nfs4_xdr_dec_read_plus() argument
1351 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_read_plus()
1354 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_read_plus()
1357 status = decode_putfh(xdr); in nfs4_xdr_dec_read_plus()
1360 status = decode_read_plus(xdr, res); in nfs4_xdr_dec_read_plus()
1371 struct xdr_stream *xdr, in nfs4_xdr_dec_seek() argument
1378 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_seek()
1381 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_seek()
1384 status = decode_putfh(xdr); in nfs4_xdr_dec_seek()
1387 status = decode_seek(xdr, res); in nfs4_xdr_dec_seek()
1396 struct xdr_stream *xdr, in nfs4_xdr_dec_layoutstats() argument
1403 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutstats()
1406 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutstats()
1409 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutstats()
1414 status = decode_layoutstats(xdr); in nfs4_xdr_dec_layoutstats()
1427 struct xdr_stream *xdr, in nfs4_xdr_dec_clone() argument
1434 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_clone()
1437 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_clone()
1440 status = decode_putfh(xdr); in nfs4_xdr_dec_clone()
1443 status = decode_savefh(xdr); in nfs4_xdr_dec_clone()
1446 status = decode_putfh(xdr); in nfs4_xdr_dec_clone()
1449 status = decode_clone(xdr); in nfs4_xdr_dec_clone()
1452 decode_getfattr(xdr, res->dst_fattr, res->server); in nfs4_xdr_dec_clone()
1462 struct xdr_stream *xdr, in nfs4_xdr_dec_layouterror() argument
1469 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layouterror()
1472 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layouterror()
1475 status = decode_putfh(xdr); in nfs4_xdr_dec_layouterror()
1478 status = decode_layouterror(xdr); in nfs4_xdr_dec_layouterror()
1485 static void nfs4_xdr_enc_setxattr(struct rpc_rqst *req, struct xdr_stream *xdr, in nfs4_xdr_enc_setxattr() argument
1493 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_setxattr()
1494 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_setxattr()
1495 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_setxattr()
1496 encode_setxattr(xdr, args, &hdr); in nfs4_xdr_enc_setxattr()
1500 static int nfs4_xdr_dec_setxattr(struct rpc_rqst *req, struct xdr_stream *xdr, in nfs4_xdr_dec_setxattr() argument
1507 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setxattr()
1510 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_setxattr()
1513 status = decode_putfh(xdr); in nfs4_xdr_dec_setxattr()
1517 status = decode_setxattr(xdr, &res->cinfo); in nfs4_xdr_dec_setxattr()
1522 static void nfs4_xdr_enc_getxattr(struct rpc_rqst *req, struct xdr_stream *xdr, in nfs4_xdr_enc_getxattr() argument
1531 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_getxattr()
1532 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_getxattr()
1533 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_getxattr()
1535 encode_getxattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_getxattr()
1544 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_getxattr() argument
1550 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getxattr()
1553 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getxattr()
1556 status = decode_putfh(xdr); in nfs4_xdr_dec_getxattr()
1559 status = decode_getxattr(xdr, res, rqstp); in nfs4_xdr_dec_getxattr()
1565 struct xdr_stream *xdr, const void *data) in nfs4_xdr_enc_listxattrs() argument
1573 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_listxattrs()
1574 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_listxattrs()
1575 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_listxattrs()
1577 encode_listxattrs(xdr, args, &hdr); in nfs4_xdr_enc_listxattrs()
1585 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_listxattrs() argument
1591 xdr_set_scratch_page(xdr, res->scratch); in nfs4_xdr_dec_listxattrs()
1593 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_listxattrs()
1596 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_listxattrs()
1599 status = decode_putfh(xdr); in nfs4_xdr_dec_listxattrs()
1602 status = decode_listxattrs(xdr, res); in nfs4_xdr_dec_listxattrs()
1608 struct xdr_stream *xdr, const void *data) in nfs4_xdr_enc_removexattr() argument
1615 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_removexattr()
1616 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_removexattr()
1617 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_removexattr()
1618 encode_removexattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_removexattr()
1623 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_removexattr() argument
1629 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_removexattr()
1632 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_removexattr()
1635 status = decode_putfh(xdr); in nfs4_xdr_dec_removexattr()
1639 status = decode_removexattr(xdr, &res->cinfo); in nfs4_xdr_dec_removexattr()