Lines Matching refs:xdr

261 static void encode_fallocate(struct xdr_stream *xdr,  in encode_fallocate()  argument
264 encode_nfs4_stateid(xdr, &args->falloc_stateid); in encode_fallocate()
265 encode_uint64(xdr, args->falloc_offset); in encode_fallocate()
266 encode_uint64(xdr, args->falloc_length); in encode_fallocate()
269 static void encode_allocate(struct xdr_stream *xdr, in encode_allocate() argument
273 encode_op_hdr(xdr, OP_ALLOCATE, decode_allocate_maxsz, hdr); in encode_allocate()
274 encode_fallocate(xdr, args); in encode_allocate()
277 static void encode_nl4_server(struct xdr_stream *xdr, in encode_nl4_server() argument
280 encode_uint32(xdr, ns->nl4_type); in encode_nl4_server()
284 encode_string(xdr, ns->u.nl4_str_sz, ns->u.nl4_str); in encode_nl4_server()
287 encode_string(xdr, ns->u.nl4_addr.netid_len, in encode_nl4_server()
289 encode_string(xdr, ns->u.nl4_addr.addr_len, in encode_nl4_server()
297 static void encode_copy(struct xdr_stream *xdr, in encode_copy() argument
301 encode_op_hdr(xdr, OP_COPY, decode_copy_maxsz, hdr); in encode_copy()
302 encode_nfs4_stateid(xdr, &args->src_stateid); in encode_copy()
303 encode_nfs4_stateid(xdr, &args->dst_stateid); in encode_copy()
305 encode_uint64(xdr, args->src_pos); in encode_copy()
306 encode_uint64(xdr, args->dst_pos); in encode_copy()
307 encode_uint64(xdr, args->count); in encode_copy()
309 encode_uint32(xdr, 1); /* consecutive = true */ in encode_copy()
310 encode_uint32(xdr, args->sync); in encode_copy()
312 encode_uint32(xdr, 0); /* no src server list */ in encode_copy()
315 encode_uint32(xdr, 1); /* supporting 1 server */ in encode_copy()
316 encode_nl4_server(xdr, args->cp_src); in encode_copy()
319 static void encode_offload_cancel(struct xdr_stream *xdr, in encode_offload_cancel() argument
323 encode_op_hdr(xdr, OP_OFFLOAD_CANCEL, decode_offload_cancel_maxsz, hdr); in encode_offload_cancel()
324 encode_nfs4_stateid(xdr, &args->osa_stateid); in encode_offload_cancel()
327 static void encode_copy_notify(struct xdr_stream *xdr, in encode_copy_notify() argument
331 encode_op_hdr(xdr, OP_COPY_NOTIFY, decode_copy_notify_maxsz, hdr); in encode_copy_notify()
332 encode_nfs4_stateid(xdr, &args->cna_src_stateid); in encode_copy_notify()
333 encode_nl4_server(xdr, &args->cna_dst); in encode_copy_notify()
336 static void encode_deallocate(struct xdr_stream *xdr, in encode_deallocate() argument
340 encode_op_hdr(xdr, OP_DEALLOCATE, decode_deallocate_maxsz, hdr); in encode_deallocate()
341 encode_fallocate(xdr, args); in encode_deallocate()
344 static void encode_read_plus(struct xdr_stream *xdr, in encode_read_plus() argument
348 encode_op_hdr(xdr, OP_READ_PLUS, decode_read_plus_maxsz, hdr); in encode_read_plus()
349 encode_nfs4_stateid(xdr, &args->stateid); in encode_read_plus()
350 encode_uint64(xdr, args->offset); in encode_read_plus()
351 encode_uint32(xdr, args->count); in encode_read_plus()
354 static void encode_seek(struct xdr_stream *xdr, in encode_seek() argument
358 encode_op_hdr(xdr, OP_SEEK, decode_seek_maxsz, hdr); in encode_seek()
359 encode_nfs4_stateid(xdr, &args->sa_stateid); in encode_seek()
360 encode_uint64(xdr, args->sa_offset); in encode_seek()
361 encode_uint32(xdr, args->sa_what); in encode_seek()
364 static void encode_layoutstats(struct xdr_stream *xdr, in encode_layoutstats() argument
371 encode_op_hdr(xdr, OP_LAYOUTSTATS, decode_layoutstats_maxsz, hdr); in encode_layoutstats()
372 p = reserve_space(xdr, 8 + 8); in encode_layoutstats()
375 encode_nfs4_stateid(xdr, &args->stateid); in encode_layoutstats()
376 p = reserve_space(xdr, 4*8 + NFS4_DEVICEID4_SIZE + 4); in encode_layoutstats()
386 devinfo->ld_private.ops->encode(xdr, args, in encode_layoutstats()
389 encode_uint32(xdr, 0); in encode_layoutstats()
392 static void encode_clone(struct xdr_stream *xdr, in encode_clone() argument
398 encode_op_hdr(xdr, OP_CLONE, decode_clone_maxsz, hdr); in encode_clone()
399 encode_nfs4_stateid(xdr, &args->src_stateid); in encode_clone()
400 encode_nfs4_stateid(xdr, &args->dst_stateid); in encode_clone()
401 p = reserve_space(xdr, 3*8); in encode_clone()
407 static void encode_device_error(struct xdr_stream *xdr, in encode_device_error() argument
412 p = reserve_space(xdr, NFS4_DEVICEID4_SIZE + 2*4); in encode_device_error()
419 static void encode_layouterror(struct xdr_stream *xdr, in encode_layouterror() argument
425 encode_op_hdr(xdr, OP_LAYOUTERROR, decode_layouterror_maxsz, hdr); in encode_layouterror()
426 p = reserve_space(xdr, 8 + 8); in encode_layouterror()
429 encode_nfs4_stateid(xdr, &args->stateid); in encode_layouterror()
430 p = reserve_space(xdr, 4); in encode_layouterror()
432 encode_device_error(xdr, &args->errors[0]); in encode_layouterror()
435 static void encode_setxattr(struct xdr_stream *xdr, in encode_setxattr() argument
444 encode_op_hdr(xdr, OP_SETXATTR, decode_setxattr_maxsz, hdr); in encode_setxattr()
445 p = reserve_space(xdr, 4); in encode_setxattr()
447 encode_string(xdr, strlen(arg->xattr_name), arg->xattr_name); in encode_setxattr()
448 p = reserve_space(xdr, 4); in encode_setxattr()
451 xdr_write_pages(xdr, arg->xattr_pages, 0, arg->xattr_len); in encode_setxattr()
454 static int decode_setxattr(struct xdr_stream *xdr, in decode_setxattr() argument
459 status = decode_op_hdr(xdr, OP_SETXATTR); in decode_setxattr()
462 status = decode_change_info(xdr, cinfo); in decode_setxattr()
468 static void encode_getxattr(struct xdr_stream *xdr, const char *name, in encode_getxattr() argument
471 encode_op_hdr(xdr, OP_GETXATTR, decode_getxattr_maxsz, hdr); in encode_getxattr()
472 encode_string(xdr, strlen(name), name); in encode_getxattr()
475 static int decode_getxattr(struct xdr_stream *xdr, in decode_getxattr() argument
483 status = decode_op_hdr(xdr, OP_GETXATTR); in decode_getxattr()
487 p = xdr_inline_decode(xdr, 4); in decode_getxattr()
504 rdlen = xdr_read_pages(xdr, len); in decode_getxattr()
512 static void encode_removexattr(struct xdr_stream *xdr, const char *name, in encode_removexattr() argument
515 encode_op_hdr(xdr, OP_REMOVEXATTR, decode_removexattr_maxsz, hdr); in encode_removexattr()
516 encode_string(xdr, strlen(name), name); in encode_removexattr()
520 static int decode_removexattr(struct xdr_stream *xdr, in decode_removexattr() argument
525 status = decode_op_hdr(xdr, OP_REMOVEXATTR); in decode_removexattr()
529 status = decode_change_info(xdr, cinfo); in decode_removexattr()
534 static void encode_listxattrs(struct xdr_stream *xdr, in encode_listxattrs() argument
540 encode_op_hdr(xdr, OP_LISTXATTRS, decode_listxattrs_maxsz, hdr); in encode_listxattrs()
542 p = reserve_space(xdr, 12); in encode_listxattrs()
555 static int decode_listxattrs(struct xdr_stream *xdr, in decode_listxattrs() argument
564 status = decode_op_hdr(xdr, OP_LISTXATTRS); in decode_listxattrs()
583 p = xdr_inline_decode(xdr, 8); in decode_listxattrs()
589 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
608 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
618 p = xdr_inline_decode(xdr, len); in decode_listxattrs()
639 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
657 struct xdr_stream *xdr, in nfs4_xdr_enc_allocate() argument
665 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_allocate()
666 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_allocate()
667 encode_putfh(xdr, args->falloc_fh, &hdr); in nfs4_xdr_enc_allocate()
668 encode_allocate(xdr, args, &hdr); in nfs4_xdr_enc_allocate()
669 encode_getfattr(xdr, args->falloc_bitmask, &hdr); in nfs4_xdr_enc_allocate()
673 static void encode_copy_commit(struct xdr_stream *xdr, in encode_copy_commit() argument
679 encode_op_hdr(xdr, OP_COMMIT, decode_commit_maxsz, hdr); in encode_copy_commit()
680 p = reserve_space(xdr, 12); in encode_copy_commit()
689 struct xdr_stream *xdr, in nfs4_xdr_enc_copy() argument
697 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_copy()
698 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_copy()
699 encode_putfh(xdr, args->src_fh, &hdr); in nfs4_xdr_enc_copy()
700 encode_savefh(xdr, &hdr); in nfs4_xdr_enc_copy()
701 encode_putfh(xdr, args->dst_fh, &hdr); in nfs4_xdr_enc_copy()
702 encode_copy(xdr, args, &hdr); in nfs4_xdr_enc_copy()
704 encode_copy_commit(xdr, args, &hdr); in nfs4_xdr_enc_copy()
712 struct xdr_stream *xdr, in nfs4_xdr_enc_offload_cancel() argument
720 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_offload_cancel()
721 encode_sequence(xdr, &args->osa_seq_args, &hdr); in nfs4_xdr_enc_offload_cancel()
722 encode_putfh(xdr, args->osa_src_fh, &hdr); in nfs4_xdr_enc_offload_cancel()
723 encode_offload_cancel(xdr, args, &hdr); in nfs4_xdr_enc_offload_cancel()
731 struct xdr_stream *xdr, in nfs4_xdr_enc_copy_notify() argument
739 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_copy_notify()
740 encode_sequence(xdr, &args->cna_seq_args, &hdr); in nfs4_xdr_enc_copy_notify()
741 encode_putfh(xdr, args->cna_src_fh, &hdr); in nfs4_xdr_enc_copy_notify()
742 encode_copy_notify(xdr, args, &hdr); in nfs4_xdr_enc_copy_notify()
750 struct xdr_stream *xdr, in nfs4_xdr_enc_deallocate() argument
758 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_deallocate()
759 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_deallocate()
760 encode_putfh(xdr, args->falloc_fh, &hdr); in nfs4_xdr_enc_deallocate()
761 encode_deallocate(xdr, args, &hdr); in nfs4_xdr_enc_deallocate()
762 encode_getfattr(xdr, args->falloc_bitmask, &hdr); in nfs4_xdr_enc_deallocate()
770 struct xdr_stream *xdr, in nfs4_xdr_enc_read_plus() argument
778 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_read_plus()
779 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_read_plus()
780 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_read_plus()
781 encode_read_plus(xdr, args, &hdr); in nfs4_xdr_enc_read_plus()
792 struct xdr_stream *xdr, in nfs4_xdr_enc_seek() argument
800 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_seek()
801 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_seek()
802 encode_putfh(xdr, args->sa_fh, &hdr); in nfs4_xdr_enc_seek()
803 encode_seek(xdr, args, &hdr); in nfs4_xdr_enc_seek()
811 struct xdr_stream *xdr, in nfs4_xdr_enc_layoutstats() argument
821 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_layoutstats()
822 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_layoutstats()
823 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_layoutstats()
826 encode_layoutstats(xdr, args, &args->devinfo[i], &hdr); in nfs4_xdr_enc_layoutstats()
834 struct xdr_stream *xdr, in nfs4_xdr_enc_clone() argument
842 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_clone()
843 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_clone()
844 encode_putfh(xdr, args->src_fh, &hdr); in nfs4_xdr_enc_clone()
845 encode_savefh(xdr, &hdr); in nfs4_xdr_enc_clone()
846 encode_putfh(xdr, args->dst_fh, &hdr); in nfs4_xdr_enc_clone()
847 encode_clone(xdr, args, &hdr); in nfs4_xdr_enc_clone()
848 encode_getfattr(xdr, args->dst_bitmask, &hdr); in nfs4_xdr_enc_clone()
856 struct xdr_stream *xdr, in nfs4_xdr_enc_layouterror() argument
865 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_layouterror()
866 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_layouterror()
867 encode_putfh(xdr, NFS_FH(args->inode), &hdr); in nfs4_xdr_enc_layouterror()
869 encode_layouterror(xdr, &args->errors[i], &hdr); in nfs4_xdr_enc_layouterror()
873 static int decode_allocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_allocate() argument
875 return decode_op_hdr(xdr, OP_ALLOCATE); in decode_allocate()
878 static int decode_write_response(struct xdr_stream *xdr, in decode_write_response() argument
884 p = xdr_inline_decode(xdr, 4); in decode_write_response()
891 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response()
896 p = xdr_inline_decode(xdr, 8 + 4); in decode_write_response()
901 return decode_verifier(xdr, &res->verifier.verifier); in decode_write_response()
904 static int decode_nl4_server(struct xdr_stream *xdr, struct nl4_server *ns) in decode_nl4_server() argument
913 p = xdr_inline_decode(xdr, 4); in decode_nl4_server()
920 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_nl4_server()
932 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_nl4_server()
941 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_nl4_server()
956 static int decode_copy_requirements(struct xdr_stream *xdr, in decode_copy_requirements() argument
960 p = xdr_inline_decode(xdr, 4 + 4); in decode_copy_requirements()
969 static int decode_copy(struct xdr_stream *xdr, struct nfs42_copy_res *res) in decode_copy() argument
973 status = decode_op_hdr(xdr, OP_COPY); in decode_copy()
975 status = decode_copy_requirements(xdr, res); in decode_copy()
982 status = decode_write_response(xdr, &res->write_res); in decode_copy()
986 return decode_copy_requirements(xdr, res); in decode_copy()
989 static int decode_offload_cancel(struct xdr_stream *xdr, in decode_offload_cancel() argument
992 return decode_op_hdr(xdr, OP_OFFLOAD_CANCEL); in decode_offload_cancel()
995 static int decode_copy_notify(struct xdr_stream *xdr, in decode_copy_notify() argument
1001 status = decode_op_hdr(xdr, OP_COPY_NOTIFY); in decode_copy_notify()
1005 p = xdr_inline_decode(xdr, 12); in decode_copy_notify()
1011 status = decode_opaque_fixed(xdr, &res->cnr_stateid, NFS4_STATEID_SIZE); in decode_copy_notify()
1016 p = xdr_inline_decode(xdr, 4); in decode_copy_notify()
1025 status = decode_nl4_server(xdr, &res->cnr_src); in decode_copy_notify()
1031 static int decode_deallocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_deallocate() argument
1033 return decode_op_hdr(xdr, OP_DEALLOCATE); in decode_deallocate()
1056 static int decode_read_plus_segment(struct xdr_stream *xdr, in decode_read_plus_segment() argument
1061 p = xdr_inline_decode(xdr, 4); in decode_read_plus_segment()
1066 p = xdr_inline_decode(xdr, seg->type == NFS4_CONTENT_DATA ? 12 : 16); in decode_read_plus_segment()
1076 seg->data.from = xdr_stream_pos(xdr); in decode_read_plus_segment()
1078 if (!xdr_stream_subsegment(xdr, &buf, xdr_align_size(len))) in decode_read_plus_segment()
1087 static int process_read_plus_segment(struct xdr_stream *xdr, in process_read_plus_segment() argument
1109 bufpos = xdr->buf->head[0].iov_len + (offset - args->offset); in process_read_plus_segment()
1111 return xdr_stream_zero(xdr, bufpos, length); in process_read_plus_segment()
1113 return xdr_stream_move_subsegment(xdr, seg->data.from, bufpos, length); in process_read_plus_segment()
1116 static int decode_read_plus(struct xdr_stream *xdr, struct nfs_pgio_res *res) in decode_read_plus() argument
1127 status = decode_op_hdr(xdr, OP_READ_PLUS); in decode_read_plus()
1131 p = xdr_inline_decode(xdr, 4 + 4); in decode_read_plus()
1145 xdr_set_scratch_buffer(xdr, &scratch_buf, 32); in decode_read_plus()
1148 status = decode_read_plus_segment(xdr, &segs[i]); in decode_read_plus()
1153 xdr_set_pagelen(xdr, xdr_align_size(args->count)); in decode_read_plus()
1155 res->count += process_read_plus_segment(xdr, args, res, &segs[i-1]); in decode_read_plus()
1163 static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res) in decode_seek() argument
1168 status = decode_op_hdr(xdr, OP_SEEK); in decode_seek()
1172 p = xdr_inline_decode(xdr, 4 + 8); in decode_seek()
1181 static int decode_layoutstats(struct xdr_stream *xdr) in decode_layoutstats() argument
1183 return decode_op_hdr(xdr, OP_LAYOUTSTATS); in decode_layoutstats()
1186 static int decode_clone(struct xdr_stream *xdr) in decode_clone() argument
1188 return decode_op_hdr(xdr, OP_CLONE); in decode_clone()
1191 static int decode_layouterror(struct xdr_stream *xdr) in decode_layouterror() argument
1193 return decode_op_hdr(xdr, OP_LAYOUTERROR); in decode_layouterror()
1200 struct xdr_stream *xdr, in nfs4_xdr_dec_allocate() argument
1207 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_allocate()
1210 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_allocate()
1213 status = decode_putfh(xdr); in nfs4_xdr_dec_allocate()
1216 status = decode_allocate(xdr, res); in nfs4_xdr_dec_allocate()
1219 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_allocate()
1228 struct xdr_stream *xdr, in nfs4_xdr_dec_copy() argument
1235 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_copy()
1238 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_copy()
1241 status = decode_putfh(xdr); in nfs4_xdr_dec_copy()
1244 status = decode_savefh(xdr); in nfs4_xdr_dec_copy()
1247 status = decode_putfh(xdr); in nfs4_xdr_dec_copy()
1250 status = decode_copy(xdr, res); in nfs4_xdr_dec_copy()
1254 status = decode_commit(xdr, &res->commit_res); in nfs4_xdr_dec_copy()
1263 struct xdr_stream *xdr, in nfs4_xdr_dec_offload_cancel() argument
1270 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_offload_cancel()
1273 status = decode_sequence(xdr, &res->osr_seq_res, rqstp); in nfs4_xdr_dec_offload_cancel()
1276 status = decode_putfh(xdr); in nfs4_xdr_dec_offload_cancel()
1279 status = decode_offload_cancel(xdr, res); in nfs4_xdr_dec_offload_cancel()
1289 struct xdr_stream *xdr, in nfs4_xdr_dec_copy_notify() argument
1296 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_copy_notify()
1299 status = decode_sequence(xdr, &res->cnr_seq_res, rqstp); in nfs4_xdr_dec_copy_notify()
1302 status = decode_putfh(xdr); in nfs4_xdr_dec_copy_notify()
1305 status = decode_copy_notify(xdr, res); in nfs4_xdr_dec_copy_notify()
1315 struct xdr_stream *xdr, in nfs4_xdr_dec_deallocate() argument
1322 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_deallocate()
1325 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_deallocate()
1328 status = decode_putfh(xdr); in nfs4_xdr_dec_deallocate()
1331 status = decode_deallocate(xdr, res); in nfs4_xdr_dec_deallocate()
1334 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_deallocate()
1343 struct xdr_stream *xdr, in nfs4_xdr_dec_read_plus() argument
1350 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_read_plus()
1353 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_read_plus()
1356 status = decode_putfh(xdr); in nfs4_xdr_dec_read_plus()
1359 status = decode_read_plus(xdr, res); in nfs4_xdr_dec_read_plus()
1370 struct xdr_stream *xdr, in nfs4_xdr_dec_seek() argument
1377 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_seek()
1380 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_seek()
1383 status = decode_putfh(xdr); in nfs4_xdr_dec_seek()
1386 status = decode_seek(xdr, res); in nfs4_xdr_dec_seek()
1395 struct xdr_stream *xdr, in nfs4_xdr_dec_layoutstats() argument
1402 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutstats()
1405 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutstats()
1408 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutstats()
1413 status = decode_layoutstats(xdr); in nfs4_xdr_dec_layoutstats()
1426 struct xdr_stream *xdr, in nfs4_xdr_dec_clone() argument
1433 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_clone()
1436 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_clone()
1439 status = decode_putfh(xdr); in nfs4_xdr_dec_clone()
1442 status = decode_savefh(xdr); in nfs4_xdr_dec_clone()
1445 status = decode_putfh(xdr); in nfs4_xdr_dec_clone()
1448 status = decode_clone(xdr); in nfs4_xdr_dec_clone()
1451 decode_getfattr(xdr, res->dst_fattr, res->server); in nfs4_xdr_dec_clone()
1461 struct xdr_stream *xdr, in nfs4_xdr_dec_layouterror() argument
1468 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layouterror()
1471 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layouterror()
1474 status = decode_putfh(xdr); in nfs4_xdr_dec_layouterror()
1477 status = decode_layouterror(xdr); in nfs4_xdr_dec_layouterror()
1484 static void nfs4_xdr_enc_setxattr(struct rpc_rqst *req, struct xdr_stream *xdr, in nfs4_xdr_enc_setxattr() argument
1492 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_setxattr()
1493 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_setxattr()
1494 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_setxattr()
1495 encode_setxattr(xdr, args, &hdr); in nfs4_xdr_enc_setxattr()
1499 static int nfs4_xdr_dec_setxattr(struct rpc_rqst *req, struct xdr_stream *xdr, in nfs4_xdr_dec_setxattr() argument
1506 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setxattr()
1509 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_setxattr()
1512 status = decode_putfh(xdr); in nfs4_xdr_dec_setxattr()
1516 status = decode_setxattr(xdr, &res->cinfo); in nfs4_xdr_dec_setxattr()
1521 static void nfs4_xdr_enc_getxattr(struct rpc_rqst *req, struct xdr_stream *xdr, in nfs4_xdr_enc_getxattr() argument
1530 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_getxattr()
1531 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_getxattr()
1532 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_getxattr()
1534 encode_getxattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_getxattr()
1543 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_getxattr() argument
1549 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getxattr()
1552 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getxattr()
1555 status = decode_putfh(xdr); in nfs4_xdr_dec_getxattr()
1558 status = decode_getxattr(xdr, res, rqstp); in nfs4_xdr_dec_getxattr()
1564 struct xdr_stream *xdr, const void *data) in nfs4_xdr_enc_listxattrs() argument
1572 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_listxattrs()
1573 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_listxattrs()
1574 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_listxattrs()
1576 encode_listxattrs(xdr, args, &hdr); in nfs4_xdr_enc_listxattrs()
1584 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_listxattrs() argument
1590 xdr_set_scratch_page(xdr, res->scratch); in nfs4_xdr_dec_listxattrs()
1592 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_listxattrs()
1595 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_listxattrs()
1598 status = decode_putfh(xdr); in nfs4_xdr_dec_listxattrs()
1601 status = decode_listxattrs(xdr, res); in nfs4_xdr_dec_listxattrs()
1607 struct xdr_stream *xdr, const void *data) in nfs4_xdr_enc_removexattr() argument
1614 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_removexattr()
1615 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_removexattr()
1616 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_removexattr()
1617 encode_removexattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_removexattr()
1622 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_removexattr() argument
1628 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_removexattr()
1631 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_removexattr()
1634 status = decode_putfh(xdr); in nfs4_xdr_dec_removexattr()
1638 status = decode_removexattr(xdr, &res->cinfo); in nfs4_xdr_dec_removexattr()