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()
498 rdlen = xdr_read_pages(xdr, len); in decode_getxattr()
506 static void encode_removexattr(struct xdr_stream *xdr, const char *name, in encode_removexattr() argument
509 encode_op_hdr(xdr, OP_REMOVEXATTR, decode_removexattr_maxsz, hdr); in encode_removexattr()
510 encode_string(xdr, strlen(name), name); in encode_removexattr()
514 static int decode_removexattr(struct xdr_stream *xdr, in decode_removexattr() argument
519 status = decode_op_hdr(xdr, OP_REMOVEXATTR); in decode_removexattr()
523 status = decode_change_info(xdr, cinfo); in decode_removexattr()
528 static void encode_listxattrs(struct xdr_stream *xdr, in encode_listxattrs() argument
534 encode_op_hdr(xdr, OP_LISTXATTRS, decode_listxattrs_maxsz, hdr); in encode_listxattrs()
536 p = reserve_space(xdr, 12); in encode_listxattrs()
549 static int decode_listxattrs(struct xdr_stream *xdr, in decode_listxattrs() argument
558 status = decode_op_hdr(xdr, OP_LISTXATTRS); in decode_listxattrs()
569 p = xdr_inline_decode(xdr, 8); in decode_listxattrs()
575 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
594 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
604 p = xdr_inline_decode(xdr, len); in decode_listxattrs()
625 p = xdr_inline_decode(xdr, 4); in decode_listxattrs()
643 struct xdr_stream *xdr, in nfs4_xdr_enc_allocate() argument
651 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_allocate()
652 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_allocate()
653 encode_putfh(xdr, args->falloc_fh, &hdr); in nfs4_xdr_enc_allocate()
654 encode_allocate(xdr, args, &hdr); in nfs4_xdr_enc_allocate()
655 encode_getfattr(xdr, args->falloc_bitmask, &hdr); in nfs4_xdr_enc_allocate()
659 static void encode_copy_commit(struct xdr_stream *xdr, in encode_copy_commit() argument
665 encode_op_hdr(xdr, OP_COMMIT, decode_commit_maxsz, hdr); in encode_copy_commit()
666 p = reserve_space(xdr, 12); in encode_copy_commit()
675 struct xdr_stream *xdr, in nfs4_xdr_enc_copy() argument
683 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_copy()
684 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_copy()
685 encode_putfh(xdr, args->src_fh, &hdr); in nfs4_xdr_enc_copy()
686 encode_savefh(xdr, &hdr); in nfs4_xdr_enc_copy()
687 encode_putfh(xdr, args->dst_fh, &hdr); in nfs4_xdr_enc_copy()
688 encode_copy(xdr, args, &hdr); in nfs4_xdr_enc_copy()
690 encode_copy_commit(xdr, args, &hdr); in nfs4_xdr_enc_copy()
698 struct xdr_stream *xdr, in nfs4_xdr_enc_offload_cancel() argument
706 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_offload_cancel()
707 encode_sequence(xdr, &args->osa_seq_args, &hdr); in nfs4_xdr_enc_offload_cancel()
708 encode_putfh(xdr, args->osa_src_fh, &hdr); in nfs4_xdr_enc_offload_cancel()
709 encode_offload_cancel(xdr, args, &hdr); in nfs4_xdr_enc_offload_cancel()
717 struct xdr_stream *xdr, in nfs4_xdr_enc_copy_notify() argument
725 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_copy_notify()
726 encode_sequence(xdr, &args->cna_seq_args, &hdr); in nfs4_xdr_enc_copy_notify()
727 encode_putfh(xdr, args->cna_src_fh, &hdr); in nfs4_xdr_enc_copy_notify()
728 encode_copy_notify(xdr, args, &hdr); in nfs4_xdr_enc_copy_notify()
736 struct xdr_stream *xdr, in nfs4_xdr_enc_deallocate() argument
744 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_deallocate()
745 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_deallocate()
746 encode_putfh(xdr, args->falloc_fh, &hdr); in nfs4_xdr_enc_deallocate()
747 encode_deallocate(xdr, args, &hdr); in nfs4_xdr_enc_deallocate()
748 encode_getfattr(xdr, args->falloc_bitmask, &hdr); in nfs4_xdr_enc_deallocate()
756 struct xdr_stream *xdr, in nfs4_xdr_enc_read_plus() argument
764 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_read_plus()
765 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_read_plus()
766 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_read_plus()
767 encode_read_plus(xdr, args, &hdr); in nfs4_xdr_enc_read_plus()
778 struct xdr_stream *xdr, in nfs4_xdr_enc_seek() argument
786 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_seek()
787 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_seek()
788 encode_putfh(xdr, args->sa_fh, &hdr); in nfs4_xdr_enc_seek()
789 encode_seek(xdr, args, &hdr); in nfs4_xdr_enc_seek()
797 struct xdr_stream *xdr, in nfs4_xdr_enc_layoutstats() argument
807 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_layoutstats()
808 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_layoutstats()
809 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_layoutstats()
812 encode_layoutstats(xdr, args, &args->devinfo[i], &hdr); in nfs4_xdr_enc_layoutstats()
820 struct xdr_stream *xdr, in nfs4_xdr_enc_clone() argument
828 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_clone()
829 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_clone()
830 encode_putfh(xdr, args->src_fh, &hdr); in nfs4_xdr_enc_clone()
831 encode_savefh(xdr, &hdr); in nfs4_xdr_enc_clone()
832 encode_putfh(xdr, args->dst_fh, &hdr); in nfs4_xdr_enc_clone()
833 encode_clone(xdr, args, &hdr); in nfs4_xdr_enc_clone()
834 encode_getfattr(xdr, args->dst_bitmask, &hdr); in nfs4_xdr_enc_clone()
842 struct xdr_stream *xdr, in nfs4_xdr_enc_layouterror() argument
851 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_layouterror()
852 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_layouterror()
853 encode_putfh(xdr, NFS_FH(args->inode), &hdr); in nfs4_xdr_enc_layouterror()
855 encode_layouterror(xdr, &args->errors[i], &hdr); in nfs4_xdr_enc_layouterror()
859 static int decode_allocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_allocate() argument
861 return decode_op_hdr(xdr, OP_ALLOCATE); in decode_allocate()
864 static int decode_write_response(struct xdr_stream *xdr, in decode_write_response() argument
870 p = xdr_inline_decode(xdr, 4); in decode_write_response()
877 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response()
882 p = xdr_inline_decode(xdr, 8 + 4); in decode_write_response()
887 return decode_verifier(xdr, &res->verifier.verifier); in decode_write_response()
890 static int decode_nl4_server(struct xdr_stream *xdr, struct nl4_server *ns) in decode_nl4_server() argument
899 p = xdr_inline_decode(xdr, 4); in decode_nl4_server()
906 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_nl4_server()
918 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_nl4_server()
927 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_nl4_server()
942 static int decode_copy_requirements(struct xdr_stream *xdr, in decode_copy_requirements() argument
946 p = xdr_inline_decode(xdr, 4 + 4); in decode_copy_requirements()
955 static int decode_copy(struct xdr_stream *xdr, struct nfs42_copy_res *res) in decode_copy() argument
959 status = decode_op_hdr(xdr, OP_COPY); in decode_copy()
961 status = decode_copy_requirements(xdr, res); in decode_copy()
968 status = decode_write_response(xdr, &res->write_res); in decode_copy()
972 return decode_copy_requirements(xdr, res); in decode_copy()
975 static int decode_offload_cancel(struct xdr_stream *xdr, in decode_offload_cancel() argument
978 return decode_op_hdr(xdr, OP_OFFLOAD_CANCEL); in decode_offload_cancel()
981 static int decode_copy_notify(struct xdr_stream *xdr, in decode_copy_notify() argument
987 status = decode_op_hdr(xdr, OP_COPY_NOTIFY); in decode_copy_notify()
991 p = xdr_inline_decode(xdr, 12); in decode_copy_notify()
997 status = decode_opaque_fixed(xdr, &res->cnr_stateid, NFS4_STATEID_SIZE); in decode_copy_notify()
1002 p = xdr_inline_decode(xdr, 4); in decode_copy_notify()
1011 status = decode_nl4_server(xdr, &res->cnr_src); in decode_copy_notify()
1017 static int decode_deallocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) in decode_deallocate() argument
1019 return decode_op_hdr(xdr, OP_DEALLOCATE); in decode_deallocate()
1022 static int decode_read_plus_data(struct xdr_stream *xdr, in decode_read_plus_data() argument
1029 p = xdr_inline_decode(xdr, 8 + 4); in decode_read_plus_data()
1035 recvd = xdr_align_data(xdr, res->count, count); in decode_read_plus_data()
1043 static int decode_read_plus_hole(struct xdr_stream *xdr, struct nfs_pgio_res *res, in decode_read_plus_hole() argument
1049 p = xdr_inline_decode(xdr, 8 + 8); in decode_read_plus_hole()
1055 recvd = xdr_expand_hole(xdr, res->count, length); in decode_read_plus_hole()
1063 static int decode_read_plus(struct xdr_stream *xdr, struct nfs_pgio_res *res) in decode_read_plus() argument
1069 status = decode_op_hdr(xdr, OP_READ_PLUS); in decode_read_plus()
1073 p = xdr_inline_decode(xdr, 4 + 4); in decode_read_plus()
1083 p = xdr_inline_decode(xdr, 4); in decode_read_plus()
1089 status = decode_read_plus_data(xdr, res); in decode_read_plus()
1091 status = decode_read_plus_hole(xdr, res, &eof); in decode_read_plus()
1111 static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res) in decode_seek() argument
1116 status = decode_op_hdr(xdr, OP_SEEK); in decode_seek()
1120 p = xdr_inline_decode(xdr, 4 + 8); in decode_seek()
1129 static int decode_layoutstats(struct xdr_stream *xdr) in decode_layoutstats() argument
1131 return decode_op_hdr(xdr, OP_LAYOUTSTATS); in decode_layoutstats()
1134 static int decode_clone(struct xdr_stream *xdr) in decode_clone() argument
1136 return decode_op_hdr(xdr, OP_CLONE); in decode_clone()
1139 static int decode_layouterror(struct xdr_stream *xdr) in decode_layouterror() argument
1141 return decode_op_hdr(xdr, OP_LAYOUTERROR); in decode_layouterror()
1148 struct xdr_stream *xdr, in nfs4_xdr_dec_allocate() argument
1155 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_allocate()
1158 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_allocate()
1161 status = decode_putfh(xdr); in nfs4_xdr_dec_allocate()
1164 status = decode_allocate(xdr, res); in nfs4_xdr_dec_allocate()
1167 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_allocate()
1176 struct xdr_stream *xdr, in nfs4_xdr_dec_copy() argument
1183 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_copy()
1186 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_copy()
1189 status = decode_putfh(xdr); in nfs4_xdr_dec_copy()
1192 status = decode_savefh(xdr); in nfs4_xdr_dec_copy()
1195 status = decode_putfh(xdr); in nfs4_xdr_dec_copy()
1198 status = decode_copy(xdr, res); in nfs4_xdr_dec_copy()
1202 status = decode_commit(xdr, &res->commit_res); in nfs4_xdr_dec_copy()
1211 struct xdr_stream *xdr, in nfs4_xdr_dec_offload_cancel() argument
1218 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_offload_cancel()
1221 status = decode_sequence(xdr, &res->osr_seq_res, rqstp); in nfs4_xdr_dec_offload_cancel()
1224 status = decode_putfh(xdr); in nfs4_xdr_dec_offload_cancel()
1227 status = decode_offload_cancel(xdr, res); in nfs4_xdr_dec_offload_cancel()
1237 struct xdr_stream *xdr, in nfs4_xdr_dec_copy_notify() argument
1244 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_copy_notify()
1247 status = decode_sequence(xdr, &res->cnr_seq_res, rqstp); in nfs4_xdr_dec_copy_notify()
1250 status = decode_putfh(xdr); in nfs4_xdr_dec_copy_notify()
1253 status = decode_copy_notify(xdr, res); in nfs4_xdr_dec_copy_notify()
1263 struct xdr_stream *xdr, in nfs4_xdr_dec_deallocate() argument
1270 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_deallocate()
1273 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_deallocate()
1276 status = decode_putfh(xdr); in nfs4_xdr_dec_deallocate()
1279 status = decode_deallocate(xdr, res); in nfs4_xdr_dec_deallocate()
1282 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_deallocate()
1291 struct xdr_stream *xdr, in nfs4_xdr_dec_read_plus() argument
1298 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_read_plus()
1301 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_read_plus()
1304 status = decode_putfh(xdr); in nfs4_xdr_dec_read_plus()
1307 status = decode_read_plus(xdr, res); in nfs4_xdr_dec_read_plus()
1318 struct xdr_stream *xdr, in nfs4_xdr_dec_seek() argument
1325 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_seek()
1328 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_seek()
1331 status = decode_putfh(xdr); in nfs4_xdr_dec_seek()
1334 status = decode_seek(xdr, res); in nfs4_xdr_dec_seek()
1343 struct xdr_stream *xdr, in nfs4_xdr_dec_layoutstats() argument
1350 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutstats()
1353 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutstats()
1356 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutstats()
1361 status = decode_layoutstats(xdr); in nfs4_xdr_dec_layoutstats()
1374 struct xdr_stream *xdr, in nfs4_xdr_dec_clone() argument
1381 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_clone()
1384 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_clone()
1387 status = decode_putfh(xdr); in nfs4_xdr_dec_clone()
1390 status = decode_savefh(xdr); in nfs4_xdr_dec_clone()
1393 status = decode_putfh(xdr); in nfs4_xdr_dec_clone()
1396 status = decode_clone(xdr); in nfs4_xdr_dec_clone()
1399 decode_getfattr(xdr, res->dst_fattr, res->server); in nfs4_xdr_dec_clone()
1409 struct xdr_stream *xdr, in nfs4_xdr_dec_layouterror() argument
1416 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layouterror()
1419 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layouterror()
1422 status = decode_putfh(xdr); in nfs4_xdr_dec_layouterror()
1425 status = decode_layouterror(xdr); in nfs4_xdr_dec_layouterror()
1432 static void nfs4_xdr_enc_setxattr(struct rpc_rqst *req, struct xdr_stream *xdr, in nfs4_xdr_enc_setxattr() argument
1440 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_setxattr()
1441 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_setxattr()
1442 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_setxattr()
1443 encode_setxattr(xdr, args, &hdr); in nfs4_xdr_enc_setxattr()
1447 static int nfs4_xdr_dec_setxattr(struct rpc_rqst *req, struct xdr_stream *xdr, in nfs4_xdr_dec_setxattr() argument
1454 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setxattr()
1457 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_setxattr()
1460 status = decode_putfh(xdr); in nfs4_xdr_dec_setxattr()
1464 status = decode_setxattr(xdr, &res->cinfo); in nfs4_xdr_dec_setxattr()
1469 static void nfs4_xdr_enc_getxattr(struct rpc_rqst *req, struct xdr_stream *xdr, in nfs4_xdr_enc_getxattr() argument
1478 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_getxattr()
1479 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_getxattr()
1480 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_getxattr()
1481 encode_getxattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_getxattr()
1493 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_getxattr() argument
1499 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getxattr()
1502 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getxattr()
1505 status = decode_putfh(xdr); in nfs4_xdr_dec_getxattr()
1508 status = decode_getxattr(xdr, res, rqstp); in nfs4_xdr_dec_getxattr()
1514 struct xdr_stream *xdr, const void *data) in nfs4_xdr_enc_listxattrs() argument
1521 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_listxattrs()
1522 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_listxattrs()
1523 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_listxattrs()
1524 encode_listxattrs(xdr, args, &hdr); in nfs4_xdr_enc_listxattrs()
1533 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_listxattrs() argument
1539 xdr_set_scratch_buffer(xdr, page_address(res->scratch), PAGE_SIZE); in nfs4_xdr_dec_listxattrs()
1541 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_listxattrs()
1544 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_listxattrs()
1547 status = decode_putfh(xdr); in nfs4_xdr_dec_listxattrs()
1550 status = decode_listxattrs(xdr, res); in nfs4_xdr_dec_listxattrs()
1556 struct xdr_stream *xdr, const void *data) in nfs4_xdr_enc_removexattr() argument
1563 encode_compound_hdr(xdr, req, &hdr); in nfs4_xdr_enc_removexattr()
1564 encode_sequence(xdr, &args->seq_args, &hdr); in nfs4_xdr_enc_removexattr()
1565 encode_putfh(xdr, args->fh, &hdr); in nfs4_xdr_enc_removexattr()
1566 encode_removexattr(xdr, args->xattr_name, &hdr); in nfs4_xdr_enc_removexattr()
1571 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_removexattr() argument
1577 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_removexattr()
1580 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_removexattr()
1583 status = decode_putfh(xdr); in nfs4_xdr_dec_removexattr()
1587 status = decode_removexattr(xdr, &res->cinfo); in nfs4_xdr_dec_removexattr()