Lines Matching +full:data +full:- +full:out

1 // SPDX-License-Identifier: GPL-2.0
239 * These values specify the maximum amount of data that is not
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()
280 encode_uint32(xdr, ns->nl4_type); in encode_nl4_server()
281 switch (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()
288 ns->u.nl4_addr.netid); in encode_nl4_server()
289 encode_string(xdr, ns->u.nl4_addr.addr_len, in encode_nl4_server()
290 ns->u.nl4_addr.addr); in encode_nl4_server()
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()
310 encode_uint32(xdr, args->sync); in encode_copy()
311 if (args->cp_src == NULL) { /* intra-ssc */ in encode_copy()
316 encode_nl4_server(xdr, args->cp_src); in encode_copy()
324 encode_nfs4_stateid(xdr, &args->osa_stateid); in encode_offload_cancel()
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()
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()
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()
373 p = xdr_encode_hyper(p, devinfo->offset); in encode_layoutstats()
374 p = xdr_encode_hyper(p, devinfo->length); in encode_layoutstats()
375 encode_nfs4_stateid(xdr, &args->stateid); in encode_layoutstats()
377 p = xdr_encode_hyper(p, devinfo->read_count); in encode_layoutstats()
378 p = xdr_encode_hyper(p, devinfo->read_bytes); in encode_layoutstats()
379 p = xdr_encode_hyper(p, devinfo->write_count); in encode_layoutstats()
380 p = xdr_encode_hyper(p, devinfo->write_bytes); in encode_layoutstats()
381 p = xdr_encode_opaque_fixed(p, devinfo->dev_id.data, in encode_layoutstats()
384 *p++ = cpu_to_be32(devinfo->layout_type); in encode_layoutstats()
385 if (devinfo->ld_private.ops) in encode_layoutstats()
386 devinfo->ld_private.ops->encode(xdr, args, in encode_layoutstats()
387 &devinfo->ld_private); in encode_layoutstats()
399 encode_nfs4_stateid(xdr, &args->src_stateid); in encode_clone()
400 encode_nfs4_stateid(xdr, &args->dst_stateid); in encode_clone()
402 p = xdr_encode_hyper(p, args->src_offset); in encode_clone()
403 p = xdr_encode_hyper(p, args->dst_offset); in encode_clone()
404 xdr_encode_hyper(p, args->count); in encode_clone()
413 p = xdr_encode_opaque_fixed(p, error->dev_id.data, in encode_device_error()
415 *p++ = cpu_to_be32(error->status); in encode_device_error()
416 *p = cpu_to_be32(error->opnum); in encode_device_error()
427 p = xdr_encode_hyper(p, args->offset); in encode_layouterror()
428 p = xdr_encode_hyper(p, args->length); in encode_layouterror()
429 encode_nfs4_stateid(xdr, &args->stateid); in encode_layouterror()
432 encode_device_error(xdr, &args->errors[0]); in encode_layouterror()
446 *p = cpu_to_be32(arg->xattr_flags); in encode_setxattr()
447 encode_string(xdr, strlen(arg->xattr_name), arg->xattr_name); in encode_setxattr()
449 *p = cpu_to_be32(arg->xattr_len); in encode_setxattr()
450 if (arg->xattr_len) in encode_setxattr()
451 xdr_write_pages(xdr, arg->xattr_pages, 0, arg->xattr_len); in encode_setxattr()
461 goto out; in decode_setxattr()
463 out: in decode_setxattr()
489 return -EIO; in decode_getxattr()
498 if (len > req->rq_rcv_buf.page_len) in decode_getxattr()
499 return -ERANGE; in decode_getxattr()
501 res->xattr_len = len; in decode_getxattr()
506 return -EIO; in decode_getxattr()
527 goto out; in decode_removexattr()
530 out: in decode_removexattr()
546 p = xdr_encode_hyper(p, arg->cookie); in encode_listxattrs()
552 *p = cpu_to_be32(arg->count + 8 + 4); in encode_listxattrs()
570 if (status == -ETOOSMALL) in decode_listxattrs()
571 status = -ERANGE; in decode_listxattrs()
574 * should be translated to success with zero-length reply. in decode_listxattrs()
576 if (status == -ENODATA) { in decode_listxattrs()
577 res->eof = true; in decode_listxattrs()
580 goto out; in decode_listxattrs()
585 return -EIO; in decode_listxattrs()
587 xdr_decode_hyper(p, &res->cookie); in decode_listxattrs()
591 return -EIO; in decode_listxattrs()
593 left = res->xattr_len; in decode_listxattrs()
594 buf = res->xattr_buf; in decode_listxattrs()
607 while (count--) { in decode_listxattrs()
610 return -EIO; in decode_listxattrs()
613 if (len > (XATTR_NAME_MAX - XATTR_USER_PREFIX_LEN)) { in decode_listxattrs()
614 status = -ERANGE; in decode_listxattrs()
615 goto out; in decode_listxattrs()
620 return -EIO; in decode_listxattrs()
625 status = -ERANGE; in decode_listxattrs()
626 goto out; in decode_listxattrs()
632 buf[ulen - 1] = 0; in decode_listxattrs()
634 left -= ulen; in decode_listxattrs()
641 return -EIO; in decode_listxattrs()
643 res->eof = be32_to_cpup(p); in decode_listxattrs()
644 res->copied = copied; in decode_listxattrs()
646 out: in decode_listxattrs()
647 if (status == -ERANGE && res->xattr_len == XATTR_LIST_MAX) in decode_listxattrs()
648 status = -E2BIG; in decode_listxattrs()
658 const void *data) in nfs4_xdr_enc_allocate() argument
660 const struct nfs42_falloc_args *args = data; in nfs4_xdr_enc_allocate()
662 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
669 encode_getfattr(xdr, args->falloc_bitmask, &hdr); in nfs4_xdr_enc_allocate()
681 p = xdr_encode_hyper(p, args->dst_pos); in encode_copy_commit()
682 *p = cpu_to_be32(args->count); in encode_copy_commit()
690 const void *data) in nfs4_xdr_enc_copy() argument
692 const struct nfs42_copy_args *args = data; in nfs4_xdr_enc_copy()
694 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
701 encode_putfh(xdr, args->dst_fh, &hdr); in nfs4_xdr_enc_copy()
703 if (args->sync) in nfs4_xdr_enc_copy()
713 const void *data) in nfs4_xdr_enc_offload_cancel() argument
715 const struct nfs42_offload_status_args *args = data; in nfs4_xdr_enc_offload_cancel()
717 .minorversion = nfs4_xdr_minorversion(&args->osa_seq_args), 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()
732 const void *data) in nfs4_xdr_enc_copy_notify() argument
734 const struct nfs42_copy_notify_args *args = data; in nfs4_xdr_enc_copy_notify()
736 .minorversion = nfs4_xdr_minorversion(&args->cna_seq_args), 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()
751 const void *data) in nfs4_xdr_enc_deallocate() argument
753 const struct nfs42_falloc_args *args = data; in nfs4_xdr_enc_deallocate()
755 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
762 encode_getfattr(xdr, args->falloc_bitmask, &hdr); in nfs4_xdr_enc_deallocate()
771 const void *data) in nfs4_xdr_enc_read_plus() argument
773 const struct nfs_pgio_args *args = data; in nfs4_xdr_enc_read_plus()
775 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
783 rpc_prepare_reply_pages(req, args->pages, args->pgbase, in nfs4_xdr_enc_read_plus()
784 args->count, hdr.replen); in nfs4_xdr_enc_read_plus()
793 const void *data) in nfs4_xdr_enc_seek() argument
795 const struct nfs42_seek_args *args = data; in nfs4_xdr_enc_seek()
797 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
812 const void *data) in nfs4_xdr_enc_layoutstats() argument
814 const struct nfs42_layoutstat_args *args = data; in nfs4_xdr_enc_layoutstats()
818 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
824 WARN_ON(args->num_dev > PNFS_LAYOUTSTATS_MAXDEV); in nfs4_xdr_enc_layoutstats()
825 for (i = 0; i < args->num_dev; i++) in nfs4_xdr_enc_layoutstats()
826 encode_layoutstats(xdr, args, &args->devinfo[i], &hdr); in nfs4_xdr_enc_layoutstats()
835 const void *data) in nfs4_xdr_enc_clone() argument
837 const struct nfs42_clone_args *args = data; in nfs4_xdr_enc_clone()
839 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
846 encode_putfh(xdr, args->dst_fh, &hdr); in nfs4_xdr_enc_clone()
848 encode_getfattr(xdr, args->dst_bitmask, &hdr); in nfs4_xdr_enc_clone()
857 const void *data) in nfs4_xdr_enc_layouterror() argument
859 const struct nfs42_layouterror_args *args = data; in nfs4_xdr_enc_layouterror()
861 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
868 for (i = 0; i < args->num_errors; i++) in nfs4_xdr_enc_layouterror()
869 encode_layouterror(xdr, &args->errors[i], &hdr); in nfs4_xdr_enc_layouterror()
886 return -EIO; in decode_write_response()
889 return -EREMOTEIO; in decode_write_response()
891 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response()
894 return -EIO; in decode_write_response()
898 return -EIO; in decode_write_response()
899 p = xdr_decode_hyper(p, &res->count); in decode_write_response()
900 res->verifier.committed = be32_to_cpup(p); in decode_write_response()
901 return decode_verifier(xdr, &res->verifier.verifier); in decode_write_response()
915 return -EIO; in decode_nl4_server()
916 ns->nl4_type = be32_to_cpup(p); in decode_nl4_server()
917 switch (ns->nl4_type) { in decode_nl4_server()
924 return -EIO; in decode_nl4_server()
925 memcpy(&ns->u.nl4_str, dummy_str, dummy); in decode_nl4_server()
926 ns->u.nl4_str_sz = dummy; in decode_nl4_server()
929 naddr = &ns->u.nl4_addr; in decode_nl4_server()
936 return -EIO; in decode_nl4_server()
937 naddr->netid_len = dummy; in decode_nl4_server()
938 memcpy(naddr->netid, dummy_str, naddr->netid_len); in decode_nl4_server()
945 return -EIO; in decode_nl4_server()
946 naddr->addr_len = dummy; in decode_nl4_server()
947 memcpy(naddr->addr, dummy_str, naddr->addr_len); in decode_nl4_server()
951 return -EIO; in decode_nl4_server()
962 return -EIO; in decode_copy_requirements()
964 res->consecutive = be32_to_cpup(p++); in decode_copy_requirements()
965 res->synchronous = be32_to_cpup(p++); in decode_copy_requirements()
982 status = decode_write_response(xdr, &res->write_res); in decode_copy()
1007 return -EIO; in decode_copy_notify()
1008 p = xdr_decode_hyper(p, &res->cnr_lease_time.seconds); in decode_copy_notify()
1009 res->cnr_lease_time.nseconds = be32_to_cpup(p); in decode_copy_notify()
1011 status = decode_opaque_fixed(xdr, &res->cnr_stateid, NFS4_STATEID_SIZE); in decode_copy_notify()
1013 return -EIO; in decode_copy_notify()
1018 return -EIO; in decode_copy_notify()
1025 status = decode_nl4_server(xdr, &res->cnr_src); in decode_copy_notify()
1027 return -EIO; in decode_copy_notify()
1047 } data; member
1053 return seg->type == NFS4_CONTENT_DATA ? seg->data.length : seg->hole.length; in read_plus_segment_length()
1063 return -EIO; in decode_read_plus_segment()
1064 seg->type = be32_to_cpup(p++); in decode_read_plus_segment()
1066 p = xdr_inline_decode(xdr, seg->type == NFS4_CONTENT_DATA ? 12 : 16); in decode_read_plus_segment()
1068 return -EIO; in decode_read_plus_segment()
1069 p = xdr_decode_hyper(p, &seg->offset); in decode_read_plus_segment()
1071 if (seg->type == NFS4_CONTENT_DATA) { in decode_read_plus_segment()
1075 seg->data.length = len; in decode_read_plus_segment()
1076 seg->data.from = xdr_stream_pos(xdr); in decode_read_plus_segment()
1079 return -EIO; in decode_read_plus_segment()
1080 } else if (seg->type == NFS4_CONTENT_HOLE) { in decode_read_plus_segment()
1081 xdr_decode_hyper(p, &seg->hole.length); in decode_read_plus_segment()
1083 return -EINVAL; in decode_read_plus_segment()
1092 unsigned long offset = seg->offset; in process_read_plus_segment()
1096 if (offset + length < args->offset) in process_read_plus_segment()
1098 else if (offset > args->offset + args->count) { in process_read_plus_segment()
1099 res->eof = 0; in process_read_plus_segment()
1101 } else if (offset < args->offset) { in process_read_plus_segment()
1102 length -= (args->offset - offset); in process_read_plus_segment()
1103 offset = args->offset; in process_read_plus_segment()
1104 } else if (offset + length > args->offset + args->count) { in process_read_plus_segment()
1105 length = (args->offset + args->count) - offset; in process_read_plus_segment()
1106 res->eof = 0; in process_read_plus_segment()
1109 bufpos = xdr->buf->head[0].iov_len + (offset - args->offset); in process_read_plus_segment()
1110 if (seg->type == NFS4_CONTENT_HOLE) in process_read_plus_segment()
1113 return xdr_stream_move_subsegment(xdr, seg->data.from, bufpos, length); in process_read_plus_segment()
1120 struct nfs_pgio_args *args = &hdr->args; in decode_read_plus()
1133 return -EIO; in decode_read_plus()
1135 res->count = 0; in decode_read_plus()
1136 res->eof = be32_to_cpup(p++); in decode_read_plus()
1143 return -ENOMEM; in decode_read_plus()
1146 status = -EIO; in decode_read_plus()
1150 goto out; in decode_read_plus()
1153 xdr_set_pagelen(xdr, xdr_align_size(args->count)); in decode_read_plus()
1154 for (i = segments; i > 0; i--) in decode_read_plus()
1155 res->count += process_read_plus_segment(xdr, args, res, &segs[i-1]); in decode_read_plus()
1158 out: in decode_read_plus()
1174 return -EIO; in decode_seek()
1176 res->sr_eof = be32_to_cpup(p++); in decode_seek()
1177 p = xdr_decode_hyper(p, &res->sr_offset); in decode_seek()
1201 void *data) in nfs4_xdr_dec_allocate() argument
1203 struct nfs42_falloc_res *res = data; in nfs4_xdr_dec_allocate()
1209 goto out; in nfs4_xdr_dec_allocate()
1210 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_allocate()
1212 goto out; in nfs4_xdr_dec_allocate()
1215 goto out; in nfs4_xdr_dec_allocate()
1218 goto out; in nfs4_xdr_dec_allocate()
1219 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_allocate()
1220 out: in nfs4_xdr_dec_allocate()
1229 void *data) in nfs4_xdr_dec_copy() argument
1231 struct nfs42_copy_res *res = data; in nfs4_xdr_dec_copy()
1237 goto out; in nfs4_xdr_dec_copy()
1238 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_copy()
1240 goto out; in nfs4_xdr_dec_copy()
1243 goto out; in nfs4_xdr_dec_copy()
1246 goto out; in nfs4_xdr_dec_copy()
1249 goto out; in nfs4_xdr_dec_copy()
1252 goto out; in nfs4_xdr_dec_copy()
1253 if (res->commit_res.verf) in nfs4_xdr_dec_copy()
1254 status = decode_commit(xdr, &res->commit_res); in nfs4_xdr_dec_copy()
1255 out: in nfs4_xdr_dec_copy()
1264 void *data) in nfs4_xdr_dec_offload_cancel() argument
1266 struct nfs42_offload_status_res *res = data; in nfs4_xdr_dec_offload_cancel()
1272 goto out; in nfs4_xdr_dec_offload_cancel()
1273 status = decode_sequence(xdr, &res->osr_seq_res, rqstp); in nfs4_xdr_dec_offload_cancel()
1275 goto out; in nfs4_xdr_dec_offload_cancel()
1278 goto out; in nfs4_xdr_dec_offload_cancel()
1281 out: in nfs4_xdr_dec_offload_cancel()
1290 void *data) in nfs4_xdr_dec_copy_notify() argument
1292 struct nfs42_copy_notify_res *res = data; in nfs4_xdr_dec_copy_notify()
1298 goto out; in nfs4_xdr_dec_copy_notify()
1299 status = decode_sequence(xdr, &res->cnr_seq_res, rqstp); in nfs4_xdr_dec_copy_notify()
1301 goto out; in nfs4_xdr_dec_copy_notify()
1304 goto out; in nfs4_xdr_dec_copy_notify()
1307 out: in nfs4_xdr_dec_copy_notify()
1316 void *data) in nfs4_xdr_dec_deallocate() argument
1318 struct nfs42_falloc_res *res = data; in nfs4_xdr_dec_deallocate()
1324 goto out; in nfs4_xdr_dec_deallocate()
1325 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_deallocate()
1327 goto out; in nfs4_xdr_dec_deallocate()
1330 goto out; in nfs4_xdr_dec_deallocate()
1333 goto out; in nfs4_xdr_dec_deallocate()
1334 decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); in nfs4_xdr_dec_deallocate()
1335 out: in nfs4_xdr_dec_deallocate()
1344 void *data) in nfs4_xdr_dec_read_plus() argument
1346 struct nfs_pgio_res *res = data; in nfs4_xdr_dec_read_plus()
1352 goto out; in nfs4_xdr_dec_read_plus()
1353 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_read_plus()
1355 goto out; in nfs4_xdr_dec_read_plus()
1358 goto out; in nfs4_xdr_dec_read_plus()
1361 status = res->count; in nfs4_xdr_dec_read_plus()
1362 out: in nfs4_xdr_dec_read_plus()
1371 void *data) in nfs4_xdr_dec_seek() argument
1373 struct nfs42_seek_res *res = data; in nfs4_xdr_dec_seek()
1379 goto out; in nfs4_xdr_dec_seek()
1380 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_seek()
1382 goto out; in nfs4_xdr_dec_seek()
1385 goto out; in nfs4_xdr_dec_seek()
1387 out: in nfs4_xdr_dec_seek()
1396 void *data) in nfs4_xdr_dec_layoutstats() argument
1398 struct nfs42_layoutstat_res *res = data; in nfs4_xdr_dec_layoutstats()
1404 goto out; in nfs4_xdr_dec_layoutstats()
1405 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutstats()
1407 goto out; in nfs4_xdr_dec_layoutstats()
1410 goto out; in nfs4_xdr_dec_layoutstats()
1411 WARN_ON(res->num_dev > PNFS_LAYOUTSTATS_MAXDEV); in nfs4_xdr_dec_layoutstats()
1412 for (i = 0; i < res->num_dev; i++) { in nfs4_xdr_dec_layoutstats()
1415 goto out; in nfs4_xdr_dec_layoutstats()
1417 out: in nfs4_xdr_dec_layoutstats()
1418 res->rpc_status = status; in nfs4_xdr_dec_layoutstats()
1427 void *data) in nfs4_xdr_dec_clone() argument
1429 struct nfs42_clone_res *res = data; in nfs4_xdr_dec_clone()
1435 goto out; in nfs4_xdr_dec_clone()
1436 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_clone()
1438 goto out; in nfs4_xdr_dec_clone()
1441 goto out; in nfs4_xdr_dec_clone()
1444 goto out; in nfs4_xdr_dec_clone()
1447 goto out; in nfs4_xdr_dec_clone()
1450 goto out; in nfs4_xdr_dec_clone()
1451 decode_getfattr(xdr, res->dst_fattr, res->server); in nfs4_xdr_dec_clone()
1452 out: in nfs4_xdr_dec_clone()
1453 res->rpc_status = status; in nfs4_xdr_dec_clone()
1462 void *data) in nfs4_xdr_dec_layouterror() argument
1464 struct nfs42_layouterror_res *res = data; in nfs4_xdr_dec_layouterror()
1470 goto out; in nfs4_xdr_dec_layouterror()
1471 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layouterror()
1473 goto out; in nfs4_xdr_dec_layouterror()
1476 for (i = 0; i < res->num_errors && status == 0; i++) in nfs4_xdr_dec_layouterror()
1478 out: in nfs4_xdr_dec_layouterror()
1479 res->rpc_status = status; in nfs4_xdr_dec_layouterror()
1485 const void *data) in nfs4_xdr_enc_setxattr() argument
1487 const struct nfs42_setxattrargs *args = data; in nfs4_xdr_enc_setxattr()
1489 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
1500 void *data) in nfs4_xdr_dec_setxattr() argument
1502 struct nfs42_setxattrres *res = data; in nfs4_xdr_dec_setxattr()
1508 goto out; in nfs4_xdr_dec_setxattr()
1509 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_setxattr()
1511 goto out; in nfs4_xdr_dec_setxattr()
1514 goto out; in nfs4_xdr_dec_setxattr()
1516 status = decode_setxattr(xdr, &res->cinfo); in nfs4_xdr_dec_setxattr()
1517 out: in nfs4_xdr_dec_setxattr()
1522 const void *data) in nfs4_xdr_enc_getxattr() argument
1524 const struct nfs42_getxattrargs *args = data; in nfs4_xdr_enc_getxattr()
1526 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
1536 rpc_prepare_reply_pages(req, args->xattr_pages, 0, args->xattr_len, in nfs4_xdr_enc_getxattr()
1543 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_getxattr() argument
1545 struct nfs42_getxattrres *res = data; in nfs4_xdr_dec_getxattr()
1551 goto out; in nfs4_xdr_dec_getxattr()
1552 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getxattr()
1554 goto out; in nfs4_xdr_dec_getxattr()
1557 goto out; in nfs4_xdr_dec_getxattr()
1559 out: in nfs4_xdr_dec_getxattr()
1564 struct xdr_stream *xdr, const void *data) in nfs4_xdr_enc_listxattrs() argument
1566 const struct nfs42_listxattrsargs *args = data; in nfs4_xdr_enc_listxattrs()
1568 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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()
1578 rpc_prepare_reply_pages(req, args->xattr_pages, 0, args->count, replen); in nfs4_xdr_enc_listxattrs()
1584 struct xdr_stream *xdr, void *data) in nfs4_xdr_dec_listxattrs() argument
1586 struct nfs42_listxattrsres *res = data; in nfs4_xdr_dec_listxattrs()
1590 xdr_set_scratch_page(xdr, res->scratch); in nfs4_xdr_dec_listxattrs()
1594 goto out; in nfs4_xdr_dec_listxattrs()
1595 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_listxattrs()
1597 goto out; in nfs4_xdr_dec_listxattrs()
1600 goto out; in nfs4_xdr_dec_listxattrs()
1602 out: in nfs4_xdr_dec_listxattrs()
1607 struct xdr_stream *xdr, const void *data) in nfs4_xdr_enc_removexattr() argument
1609 const struct nfs42_removexattrargs *args = data; in nfs4_xdr_enc_removexattr()
1611 .minorversion = nfs4_xdr_minorversion(&args->seq_args), 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
1624 struct nfs42_removexattrres *res = data; in nfs4_xdr_dec_removexattr()
1630 goto out; in nfs4_xdr_dec_removexattr()
1631 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_removexattr()
1633 goto out; in nfs4_xdr_dec_removexattr()
1636 goto out; in nfs4_xdr_dec_removexattr()
1638 status = decode_removexattr(xdr, &res->cinfo); in nfs4_xdr_dec_removexattr()
1639 out: in nfs4_xdr_dec_removexattr()