xdr 274 fs/afs/addr_list.c void afs_merge_fs_addr4(struct afs_addr_list *alist, __be32 xdr, u16 port) xdr 277 fs/afs/addr_list.c u32 addr = ntohl(xdr); xdr 307 fs/afs/addr_list.c srx->transport.sin.sin_addr.s_addr = xdr; xdr 315 fs/afs/addr_list.c void afs_merge_fs_addr6(struct afs_addr_list *alist, __be32 *xdr, u16 port) xdr 327 fs/afs/addr_list.c diff = memcmp(xdr, &a->sin6_addr, 16); xdr 347 fs/afs/addr_list.c memcpy(&srx->transport.sin6.sin6_addr, xdr, 16); xdr 63 fs/afs/fsclient.c const struct afs_xdr_AFSFetchStatus *xdr = (const void *)*_bp; xdr 70 fs/afs/fsclient.c abort_code = ntohl(xdr->abort_code); xdr 72 fs/afs/fsclient.c if (xdr->if_version != htonl(AFS_FSTATUS_VERSION)) { xdr 73 fs/afs/fsclient.c if (xdr->if_version == htonl(0) && xdr 85 fs/afs/fsclient.c pr_warn("Unknown AFSFetchStatus version %u\n", ntohl(xdr->if_version)); xdr 95 fs/afs/fsclient.c type = ntohl(xdr->type); xdr 106 fs/afs/fsclient.c status->nlink = ntohl(xdr->nlink); xdr 107 fs/afs/fsclient.c status->author = ntohl(xdr->author); xdr 108 fs/afs/fsclient.c status->owner = ntohl(xdr->owner); xdr 109 fs/afs/fsclient.c status->caller_access = ntohl(xdr->caller_access); /* Ticket dependent */ xdr 110 fs/afs/fsclient.c status->anon_access = ntohl(xdr->anon_access); xdr 111 fs/afs/fsclient.c status->mode = ntohl(xdr->mode) & S_IALLUGO; xdr 112 fs/afs/fsclient.c status->group = ntohl(xdr->group); xdr 113 fs/afs/fsclient.c status->lock_count = ntohl(xdr->lock_count); xdr 115 fs/afs/fsclient.c status->mtime_client.tv_sec = ntohl(xdr->mtime_client); xdr 117 fs/afs/fsclient.c status->mtime_server.tv_sec = ntohl(xdr->mtime_server); xdr 120 fs/afs/fsclient.c size = (u64)ntohl(xdr->size_lo); xdr 121 fs/afs/fsclient.c size |= (u64)ntohl(xdr->size_hi) << 32; xdr 124 fs/afs/fsclient.c data_version = (u64)ntohl(xdr->data_version_lo); xdr 125 fs/afs/fsclient.c data_version |= (u64)ntohl(xdr->data_version_hi) << 32; xdr 131 fs/afs/fsclient.c *_bp = (const void *)*_bp + sizeof(*xdr); xdr 56 fs/afs/vlclient.c struct afs_uuid__xdr *xdr; xdr 75 fs/afs/vlclient.c xdr = &uvldb->serverNumber[i]; xdr 77 fs/afs/vlclient.c uuid->time_low = xdr->time_low; xdr 78 fs/afs/vlclient.c uuid->time_mid = htons(ntohl(xdr->time_mid)); xdr 79 fs/afs/vlclient.c uuid->time_hi_and_version = htons(ntohl(xdr->time_hi_and_version)); xdr 80 fs/afs/vlclient.c uuid->clock_seq_hi_and_reserved = (u8)ntohl(xdr->clock_seq_hi_and_reserved); xdr 81 fs/afs/vlclient.c uuid->clock_seq_low = (u8)ntohl(xdr->clock_seq_low); xdr 83 fs/afs/vlclient.c uuid->node[j] = (u8)ntohl(xdr->node[j]); xdr 140 fs/afs/yfsclient.c static struct timespec64 xdr_to_time(const struct yfs_xdr_u64 xdr) xdr 142 fs/afs/yfsclient.c s64 t = xdr_to_u64(xdr); xdr 186 fs/afs/yfsclient.c const struct yfs_xdr_YFSFetchStatus *xdr = (const void *)*_bp; xdr 191 fs/afs/yfsclient.c status->abort_code = ntohl(xdr->abort_code); xdr 199 fs/afs/yfsclient.c type = ntohl(xdr->type); xdr 210 fs/afs/yfsclient.c status->nlink = ntohl(xdr->nlink); xdr 211 fs/afs/yfsclient.c status->author = xdr_to_u64(xdr->author); xdr 212 fs/afs/yfsclient.c status->owner = xdr_to_u64(xdr->owner); xdr 213 fs/afs/yfsclient.c status->caller_access = ntohl(xdr->caller_access); /* Ticket dependent */ xdr 214 fs/afs/yfsclient.c status->anon_access = ntohl(xdr->anon_access); xdr 215 fs/afs/yfsclient.c status->mode = ntohl(xdr->mode) & S_IALLUGO; xdr 216 fs/afs/yfsclient.c status->group = xdr_to_u64(xdr->group); xdr 217 fs/afs/yfsclient.c status->lock_count = ntohl(xdr->lock_count); xdr 219 fs/afs/yfsclient.c status->mtime_client = xdr_to_time(xdr->mtime_client); xdr 220 fs/afs/yfsclient.c status->mtime_server = xdr_to_time(xdr->mtime_server); xdr 221 fs/afs/yfsclient.c status->size = xdr_to_u64(xdr->size); xdr 222 fs/afs/yfsclient.c status->data_version = xdr_to_u64(xdr->data_version); xdr 227 fs/afs/yfsclient.c *_bp += xdr_size(xdr); xdr 89 fs/lockd/clnt4xdr.c static void encode_bool(struct xdr_stream *xdr, const int value) xdr 93 fs/lockd/clnt4xdr.c p = xdr_reserve_space(xdr, 4); xdr 97 fs/lockd/clnt4xdr.c static void encode_int32(struct xdr_stream *xdr, const s32 value) xdr 101 fs/lockd/clnt4xdr.c p = xdr_reserve_space(xdr, 4); xdr 108 fs/lockd/clnt4xdr.c static void encode_netobj(struct xdr_stream *xdr, xdr 113 fs/lockd/clnt4xdr.c p = xdr_reserve_space(xdr, 4 + length); xdr 117 fs/lockd/clnt4xdr.c static int decode_netobj(struct xdr_stream *xdr, xdr 122 fs/lockd/clnt4xdr.c ret = xdr_stream_decode_opaque_inline(xdr, (void *)&obj->data, xdr 133 fs/lockd/clnt4xdr.c static void encode_cookie(struct xdr_stream *xdr, xdr 136 fs/lockd/clnt4xdr.c encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); xdr 139 fs/lockd/clnt4xdr.c static int decode_cookie(struct xdr_stream *xdr, xdr 145 fs/lockd/clnt4xdr.c p = xdr_inline_decode(xdr, 4); xdr 154 fs/lockd/clnt4xdr.c p = xdr_inline_decode(xdr, length); xdr 174 fs/lockd/clnt4xdr.c static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh) xdr 176 fs/lockd/clnt4xdr.c encode_netobj(xdr, (u8 *)&fh->data, fh->size); xdr 201 fs/lockd/clnt4xdr.c static void encode_nlm4_stat(struct xdr_stream *xdr, xdr 207 fs/lockd/clnt4xdr.c p = xdr_reserve_space(xdr, 4); xdr 211 fs/lockd/clnt4xdr.c static int decode_nlm4_stat(struct xdr_stream *xdr, __be32 *stat) xdr 215 fs/lockd/clnt4xdr.c p = xdr_inline_decode(xdr, 4); xdr 239 fs/lockd/clnt4xdr.c static void encode_nlm4_holder(struct xdr_stream *xdr, xdr 246 fs/lockd/clnt4xdr.c encode_bool(xdr, lock->fl.fl_type == F_RDLCK); xdr 247 fs/lockd/clnt4xdr.c encode_int32(xdr, lock->svid); xdr 248 fs/lockd/clnt4xdr.c encode_netobj(xdr, lock->oh.data, lock->oh.len); xdr 250 fs/lockd/clnt4xdr.c p = xdr_reserve_space(xdr, 4 + 4); xdr 256 fs/lockd/clnt4xdr.c static int decode_nlm4_holder(struct xdr_stream *xdr, struct nlm_res *result) xdr 269 fs/lockd/clnt4xdr.c p = xdr_inline_decode(xdr, 4 + 4); xdr 276 fs/lockd/clnt4xdr.c error = decode_netobj(xdr, &lock->oh); xdr 280 fs/lockd/clnt4xdr.c p = xdr_inline_decode(xdr, 8 + 8); xdr 305 fs/lockd/clnt4xdr.c static void encode_caller_name(struct xdr_stream *xdr, const char *name) xdr 311 fs/lockd/clnt4xdr.c p = xdr_reserve_space(xdr, 4 + length); xdr 325 fs/lockd/clnt4xdr.c static void encode_nlm4_lock(struct xdr_stream *xdr, xdr 331 fs/lockd/clnt4xdr.c encode_caller_name(xdr, lock->caller); xdr 332 fs/lockd/clnt4xdr.c encode_fh(xdr, &lock->fh); xdr 333 fs/lockd/clnt4xdr.c encode_netobj(xdr, lock->oh.data, lock->oh.len); xdr 335 fs/lockd/clnt4xdr.c p = xdr_reserve_space(xdr, 4 + 8 + 8); xdr 360 fs/lockd/clnt4xdr.c struct xdr_stream *xdr, xdr 366 fs/lockd/clnt4xdr.c encode_cookie(xdr, &args->cookie); xdr 367 fs/lockd/clnt4xdr.c encode_bool(xdr, lock->fl.fl_type == F_WRLCK); xdr 368 fs/lockd/clnt4xdr.c encode_nlm4_lock(xdr, lock); xdr 382 fs/lockd/clnt4xdr.c struct xdr_stream *xdr, xdr 388 fs/lockd/clnt4xdr.c encode_cookie(xdr, &args->cookie); xdr 389 fs/lockd/clnt4xdr.c encode_bool(xdr, args->block); xdr 390 fs/lockd/clnt4xdr.c encode_bool(xdr, lock->fl.fl_type == F_WRLCK); xdr 391 fs/lockd/clnt4xdr.c encode_nlm4_lock(xdr, lock); xdr 392 fs/lockd/clnt4xdr.c encode_bool(xdr, args->reclaim); xdr 393 fs/lockd/clnt4xdr.c encode_int32(xdr, args->state); xdr 405 fs/lockd/clnt4xdr.c struct xdr_stream *xdr, xdr 411 fs/lockd/clnt4xdr.c encode_cookie(xdr, &args->cookie); xdr 412 fs/lockd/clnt4xdr.c encode_bool(xdr, args->block); xdr 413 fs/lockd/clnt4xdr.c encode_bool(xdr, lock->fl.fl_type == F_WRLCK); xdr 414 fs/lockd/clnt4xdr.c encode_nlm4_lock(xdr, lock); xdr 424 fs/lockd/clnt4xdr.c struct xdr_stream *xdr, xdr 430 fs/lockd/clnt4xdr.c encode_cookie(xdr, &args->cookie); xdr 431 fs/lockd/clnt4xdr.c encode_nlm4_lock(xdr, lock); xdr 441 fs/lockd/clnt4xdr.c struct xdr_stream *xdr, xdr 446 fs/lockd/clnt4xdr.c encode_cookie(xdr, &result->cookie); xdr 447 fs/lockd/clnt4xdr.c encode_nlm4_stat(xdr, result->status); xdr 464 fs/lockd/clnt4xdr.c struct xdr_stream *xdr, xdr 469 fs/lockd/clnt4xdr.c encode_cookie(xdr, &result->cookie); xdr 470 fs/lockd/clnt4xdr.c encode_nlm4_stat(xdr, result->status); xdr 472 fs/lockd/clnt4xdr.c encode_nlm4_holder(xdr, result); xdr 497 fs/lockd/clnt4xdr.c static int decode_nlm4_testrply(struct xdr_stream *xdr, xdr 502 fs/lockd/clnt4xdr.c error = decode_nlm4_stat(xdr, &result->status); xdr 506 fs/lockd/clnt4xdr.c error = decode_nlm4_holder(xdr, result); xdr 512 fs/lockd/clnt4xdr.c struct xdr_stream *xdr, xdr 518 fs/lockd/clnt4xdr.c error = decode_cookie(xdr, &result->cookie); xdr 521 fs/lockd/clnt4xdr.c error = decode_nlm4_testrply(xdr, result); xdr 533 fs/lockd/clnt4xdr.c struct xdr_stream *xdr, xdr 539 fs/lockd/clnt4xdr.c error = decode_cookie(xdr, &result->cookie); xdr 542 fs/lockd/clnt4xdr.c error = decode_nlm4_stat(xdr, &result->status); xdr 86 fs/lockd/clntxdr.c static void encode_bool(struct xdr_stream *xdr, const int value) xdr 90 fs/lockd/clntxdr.c p = xdr_reserve_space(xdr, 4); xdr 94 fs/lockd/clntxdr.c static void encode_int32(struct xdr_stream *xdr, const s32 value) xdr 98 fs/lockd/clntxdr.c p = xdr_reserve_space(xdr, 4); xdr 105 fs/lockd/clntxdr.c static void encode_netobj(struct xdr_stream *xdr, xdr 110 fs/lockd/clntxdr.c p = xdr_reserve_space(xdr, 4 + length); xdr 114 fs/lockd/clntxdr.c static int decode_netobj(struct xdr_stream *xdr, xdr 119 fs/lockd/clntxdr.c ret = xdr_stream_decode_opaque_inline(xdr, (void *)&obj->data, xdr 130 fs/lockd/clntxdr.c static void encode_cookie(struct xdr_stream *xdr, xdr 133 fs/lockd/clntxdr.c encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); xdr 136 fs/lockd/clntxdr.c static int decode_cookie(struct xdr_stream *xdr, xdr 142 fs/lockd/clntxdr.c p = xdr_inline_decode(xdr, 4); xdr 151 fs/lockd/clntxdr.c p = xdr_inline_decode(xdr, length); xdr 171 fs/lockd/clntxdr.c static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh) xdr 173 fs/lockd/clntxdr.c encode_netobj(xdr, (u8 *)&fh->data, NFS2_FHSIZE); xdr 195 fs/lockd/clntxdr.c static void encode_nlm_stat(struct xdr_stream *xdr, xdr 201 fs/lockd/clntxdr.c p = xdr_reserve_space(xdr, 4); xdr 205 fs/lockd/clntxdr.c static int decode_nlm_stat(struct xdr_stream *xdr, xdr 210 fs/lockd/clntxdr.c p = xdr_inline_decode(xdr, 4); xdr 234 fs/lockd/clntxdr.c static void encode_nlm_holder(struct xdr_stream *xdr, xdr 241 fs/lockd/clntxdr.c encode_bool(xdr, lock->fl.fl_type == F_RDLCK); xdr 242 fs/lockd/clntxdr.c encode_int32(xdr, lock->svid); xdr 243 fs/lockd/clntxdr.c encode_netobj(xdr, lock->oh.data, lock->oh.len); xdr 245 fs/lockd/clntxdr.c p = xdr_reserve_space(xdr, 4 + 4); xdr 251 fs/lockd/clntxdr.c static int decode_nlm_holder(struct xdr_stream *xdr, struct nlm_res *result) xdr 263 fs/lockd/clntxdr.c p = xdr_inline_decode(xdr, 4 + 4); xdr 270 fs/lockd/clntxdr.c error = decode_netobj(xdr, &lock->oh); xdr 274 fs/lockd/clntxdr.c p = xdr_inline_decode(xdr, 4 + 4); xdr 299 fs/lockd/clntxdr.c static void encode_caller_name(struct xdr_stream *xdr, const char *name) xdr 305 fs/lockd/clntxdr.c p = xdr_reserve_space(xdr, 4 + length); xdr 319 fs/lockd/clntxdr.c static void encode_nlm_lock(struct xdr_stream *xdr, xdr 325 fs/lockd/clntxdr.c encode_caller_name(xdr, lock->caller); xdr 326 fs/lockd/clntxdr.c encode_fh(xdr, &lock->fh); xdr 327 fs/lockd/clntxdr.c encode_netobj(xdr, lock->oh.data, lock->oh.len); xdr 329 fs/lockd/clntxdr.c p = xdr_reserve_space(xdr, 4 + 4 + 4); xdr 353 fs/lockd/clntxdr.c struct xdr_stream *xdr, xdr 359 fs/lockd/clntxdr.c encode_cookie(xdr, &args->cookie); xdr 360 fs/lockd/clntxdr.c encode_bool(xdr, lock->fl.fl_type == F_WRLCK); xdr 361 fs/lockd/clntxdr.c encode_nlm_lock(xdr, lock); xdr 375 fs/lockd/clntxdr.c struct xdr_stream *xdr, xdr 381 fs/lockd/clntxdr.c encode_cookie(xdr, &args->cookie); xdr 382 fs/lockd/clntxdr.c encode_bool(xdr, args->block); xdr 383 fs/lockd/clntxdr.c encode_bool(xdr, lock->fl.fl_type == F_WRLCK); xdr 384 fs/lockd/clntxdr.c encode_nlm_lock(xdr, lock); xdr 385 fs/lockd/clntxdr.c encode_bool(xdr, args->reclaim); xdr 386 fs/lockd/clntxdr.c encode_int32(xdr, args->state); xdr 398 fs/lockd/clntxdr.c struct xdr_stream *xdr, xdr 404 fs/lockd/clntxdr.c encode_cookie(xdr, &args->cookie); xdr 405 fs/lockd/clntxdr.c encode_bool(xdr, args->block); xdr 406 fs/lockd/clntxdr.c encode_bool(xdr, lock->fl.fl_type == F_WRLCK); xdr 407 fs/lockd/clntxdr.c encode_nlm_lock(xdr, lock); xdr 417 fs/lockd/clntxdr.c struct xdr_stream *xdr, xdr 423 fs/lockd/clntxdr.c encode_cookie(xdr, &args->cookie); xdr 424 fs/lockd/clntxdr.c encode_nlm_lock(xdr, lock); xdr 434 fs/lockd/clntxdr.c struct xdr_stream *xdr, xdr 439 fs/lockd/clntxdr.c encode_cookie(xdr, &result->cookie); xdr 440 fs/lockd/clntxdr.c encode_nlm_stat(xdr, result->status); xdr 456 fs/lockd/clntxdr.c static void encode_nlm_testrply(struct xdr_stream *xdr, xdr 460 fs/lockd/clntxdr.c encode_nlm_holder(xdr, result); xdr 464 fs/lockd/clntxdr.c struct xdr_stream *xdr, xdr 469 fs/lockd/clntxdr.c encode_cookie(xdr, &result->cookie); xdr 470 fs/lockd/clntxdr.c encode_nlm_stat(xdr, result->status); xdr 471 fs/lockd/clntxdr.c encode_nlm_testrply(xdr, result); xdr 495 fs/lockd/clntxdr.c static int decode_nlm_testrply(struct xdr_stream *xdr, xdr 500 fs/lockd/clntxdr.c error = decode_nlm_stat(xdr, &result->status); xdr 504 fs/lockd/clntxdr.c error = decode_nlm_holder(xdr, result); xdr 510 fs/lockd/clntxdr.c struct xdr_stream *xdr, xdr 516 fs/lockd/clntxdr.c error = decode_cookie(xdr, &result->cookie); xdr 519 fs/lockd/clntxdr.c error = decode_nlm_testrply(xdr, result); xdr 531 fs/lockd/clntxdr.c struct xdr_stream *xdr, xdr 537 fs/lockd/clntxdr.c error = decode_cookie(xdr, &result->cookie); xdr 540 fs/lockd/clntxdr.c error = decode_nlm_stat(xdr, &result->status); xdr 424 fs/lockd/mon.c static void encode_nsm_string(struct xdr_stream *xdr, const char *string) xdr 429 fs/lockd/mon.c p = xdr_reserve_space(xdr, 4 + len); xdr 436 fs/lockd/mon.c static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) xdr 438 fs/lockd/mon.c encode_nsm_string(xdr, argp->mon_name); xdr 447 fs/lockd/mon.c static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) xdr 451 fs/lockd/mon.c encode_nsm_string(xdr, argp->nodename); xdr 452 fs/lockd/mon.c p = xdr_reserve_space(xdr, 4 + 4 + 4); xdr 462 fs/lockd/mon.c static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) xdr 464 fs/lockd/mon.c encode_mon_name(xdr, argp); xdr 465 fs/lockd/mon.c encode_my_id(xdr, argp); xdr 473 fs/lockd/mon.c static void encode_priv(struct xdr_stream *xdr, const struct nsm_args *argp) xdr 477 fs/lockd/mon.c p = xdr_reserve_space(xdr, SM_PRIV_SIZE); xdr 481 fs/lockd/mon.c static void nsm_xdr_enc_mon(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 484 fs/lockd/mon.c encode_mon_id(xdr, argp); xdr 485 fs/lockd/mon.c encode_priv(xdr, argp); xdr 488 fs/lockd/mon.c static void nsm_xdr_enc_unmon(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 491 fs/lockd/mon.c encode_mon_id(xdr, argp); xdr 495 fs/lockd/mon.c struct xdr_stream *xdr, xdr 501 fs/lockd/mon.c p = xdr_inline_decode(xdr, 4 + 4); xdr 513 fs/lockd/mon.c struct xdr_stream *xdr, xdr 519 fs/lockd/mon.c p = xdr_inline_decode(xdr, 4); xdr 611 fs/nfs/blocklayout/blocklayout.c bl_alloc_extent(struct xdr_stream *xdr, struct pnfs_layout_hdr *lo, xdr 620 fs/nfs/blocklayout/blocklayout.c p = xdr_inline_decode(xdr, 28 + NFS4_DEVICEID4_SIZE); xdr 680 fs/nfs/blocklayout/blocklayout.c struct xdr_stream xdr; xdr 698 fs/nfs/blocklayout/blocklayout.c xdr_init_decode_pages(&xdr, &buf, xdr 700 fs/nfs/blocklayout/blocklayout.c xdr_set_scratch_buffer(&xdr, page_address(scratch), PAGE_SIZE); xdr 703 fs/nfs/blocklayout/blocklayout.c p = xdr_inline_decode(&xdr, 4); xdr 715 fs/nfs/blocklayout/blocklayout.c status = bl_alloc_extent(&xdr, lo, &lv, &extents, gfp_mask); xdr 53 fs/nfs/blocklayout/dev.c nfs4_block_decode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) xdr 58 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, 4); xdr 65 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, 4); xdr 76 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, 8 + 4); xdr 87 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, b->simple.sigs[i].sig_len); xdr 98 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, 8 + 8 + 4); xdr 106 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, 4); xdr 116 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, b->concat.volumes_count * 4); xdr 123 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, 8 + 4); xdr 134 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, b->stripe.volumes_count * 4); xdr 141 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, 4 + 4 + 4); xdr 147 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, b->scsi.designator_len); xdr 153 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(xdr, 8); xdr 502 fs/nfs/blocklayout/dev.c struct xdr_stream xdr; xdr 512 fs/nfs/blocklayout/dev.c xdr_init_decode_pages(&xdr, &buf, pdev->pages, pdev->pglen); xdr 513 fs/nfs/blocklayout/dev.c xdr_set_scratch_buffer(&xdr, page_address(scratch), PAGE_SIZE); xdr 515 fs/nfs/blocklayout/dev.c p = xdr_inline_decode(&xdr, sizeof(__be32)); xdr 526 fs/nfs/blocklayout/dev.c ret = nfs4_block_decode_volume(&xdr, &volumes[i]); xdr 75 fs/nfs/callback_xdr.c static __be32 decode_string(struct xdr_stream *xdr, unsigned int *len, xdr 80 fs/nfs/callback_xdr.c err = xdr_stream_decode_opaque_inline(xdr, (void **)str, maxlen); xdr 87 fs/nfs/callback_xdr.c static __be32 decode_fh(struct xdr_stream *xdr, struct nfs_fh *fh) xdr 91 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 4); xdr 97 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, fh->size); xdr 105 fs/nfs/callback_xdr.c static __be32 decode_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) xdr 110 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 4); xdr 114 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, attrlen << 2); xdr 124 fs/nfs/callback_xdr.c static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 128 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, NFS4_STATEID_SIZE); xdr 135 fs/nfs/callback_xdr.c static __be32 decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 138 fs/nfs/callback_xdr.c return decode_stateid(xdr, stateid); xdr 141 fs/nfs/callback_xdr.c static __be32 decode_compound_hdr_arg(struct xdr_stream *xdr, struct cb_compound_hdr_arg *hdr) xdr 146 fs/nfs/callback_xdr.c status = decode_string(xdr, &hdr->taglen, &hdr->tag, CB_OP_TAGLEN_MAXSZ); xdr 149 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 12); xdr 166 fs/nfs/callback_xdr.c static __be32 decode_op_hdr(struct xdr_stream *xdr, unsigned int *op) xdr 169 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 4); xdr 177 fs/nfs/callback_xdr.c struct xdr_stream *xdr, void *argp) xdr 182 fs/nfs/callback_xdr.c status = decode_fh(xdr, &args->fh); xdr 185 fs/nfs/callback_xdr.c return decode_bitmap(xdr, args->bitmap); xdr 189 fs/nfs/callback_xdr.c struct xdr_stream *xdr, void *argp) xdr 195 fs/nfs/callback_xdr.c status = decode_delegation_stateid(xdr, &args->stateid); xdr 198 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 4); xdr 202 fs/nfs/callback_xdr.c return decode_fh(xdr, &args->fh); xdr 206 fs/nfs/callback_xdr.c static __be32 decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 209 fs/nfs/callback_xdr.c return decode_stateid(xdr, stateid); xdr 213 fs/nfs/callback_xdr.c struct xdr_stream *xdr, void *argp) xdr 220 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 4 * sizeof(uint32_t)); xdr 234 fs/nfs/callback_xdr.c status = decode_fh(xdr, &args->cbl_fh); xdr 238 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 2 * sizeof(uint64_t)); xdr 243 fs/nfs/callback_xdr.c return decode_layout_stateid(xdr, &args->cbl_stateid); xdr 245 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 2 * sizeof(uint64_t)); xdr 257 fs/nfs/callback_xdr.c struct xdr_stream *xdr, xdr 268 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, sizeof(uint32_t)); xdr 291 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, (4 * sizeof(uint32_t)) + xdr 323 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, sizeof(uint32_t)); xdr 348 fs/nfs/callback_xdr.c static __be32 decode_sessionid(struct xdr_stream *xdr, xdr 353 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, NFS4_MAX_SESSIONID_LEN); xdr 361 fs/nfs/callback_xdr.c static __be32 decode_rc_list(struct xdr_stream *xdr, xdr 368 fs/nfs/callback_xdr.c status = decode_sessionid(xdr, &rc_list->rcl_sessionid); xdr 373 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, sizeof(uint32_t)); xdr 379 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, xdr 400 fs/nfs/callback_xdr.c struct xdr_stream *xdr, xdr 408 fs/nfs/callback_xdr.c status = decode_sessionid(xdr, &args->csa_sessionid); xdr 412 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 5 * sizeof(uint32_t)); xdr 431 fs/nfs/callback_xdr.c status = decode_rc_list(xdr, &args->csa_rclists[i]); xdr 448 fs/nfs/callback_xdr.c struct xdr_stream *xdr, xdr 455 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 4); xdr 459 fs/nfs/callback_xdr.c status = decode_bitmap(xdr, bitmap); xdr 468 fs/nfs/callback_xdr.c struct xdr_stream *xdr, xdr 474 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 4); xdr 481 fs/nfs/callback_xdr.c static __be32 decode_lockowner(struct xdr_stream *xdr, struct cb_notify_lock_args *args) xdr 486 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 12); xdr 493 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, len); xdr 512 fs/nfs/callback_xdr.c struct xdr_stream *xdr, void *argp) xdr 517 fs/nfs/callback_xdr.c status = decode_fh(xdr, &args->cbnl_fh); xdr 520 fs/nfs/callback_xdr.c return decode_lockowner(xdr, args); xdr 525 fs/nfs/callback_xdr.c static __be32 decode_write_response(struct xdr_stream *xdr, xdr 531 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 4); xdr 537 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 8 + 4); xdr 542 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, NFS4_VERIFIER_SIZE); xdr 553 fs/nfs/callback_xdr.c struct xdr_stream *xdr, xdr 561 fs/nfs/callback_xdr.c status = decode_fh(xdr, &args->coa_fh); xdr 566 fs/nfs/callback_xdr.c status = decode_stateid(xdr, &args->coa_stateid); xdr 571 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 4); xdr 576 fs/nfs/callback_xdr.c status = decode_write_response(xdr, args); xdr 580 fs/nfs/callback_xdr.c p = xdr_inline_decode(xdr, 8); xdr 590 fs/nfs/callback_xdr.c static __be32 encode_string(struct xdr_stream *xdr, unsigned int len, const char *str) xdr 592 fs/nfs/callback_xdr.c if (unlikely(xdr_stream_encode_opaque(xdr, str, len) < 0)) xdr 597 fs/nfs/callback_xdr.c static __be32 encode_attr_bitmap(struct xdr_stream *xdr, const uint32_t *bitmap, size_t sz) xdr 599 fs/nfs/callback_xdr.c if (xdr_stream_encode_uint32_array(xdr, bitmap, sz) < 0) xdr 604 fs/nfs/callback_xdr.c static __be32 encode_attr_change(struct xdr_stream *xdr, const uint32_t *bitmap, uint64_t change) xdr 610 fs/nfs/callback_xdr.c p = xdr_reserve_space(xdr, 8); xdr 617 fs/nfs/callback_xdr.c static __be32 encode_attr_size(struct xdr_stream *xdr, const uint32_t *bitmap, uint64_t size) xdr 623 fs/nfs/callback_xdr.c p = xdr_reserve_space(xdr, 8); xdr 630 fs/nfs/callback_xdr.c static __be32 encode_attr_time(struct xdr_stream *xdr, const struct timespec *time) xdr 634 fs/nfs/callback_xdr.c p = xdr_reserve_space(xdr, 12); xdr 642 fs/nfs/callback_xdr.c static __be32 encode_attr_ctime(struct xdr_stream *xdr, const uint32_t *bitmap, const struct timespec *time) xdr 646 fs/nfs/callback_xdr.c return encode_attr_time(xdr,time); xdr 649 fs/nfs/callback_xdr.c static __be32 encode_attr_mtime(struct xdr_stream *xdr, const uint32_t *bitmap, const struct timespec *time) xdr 653 fs/nfs/callback_xdr.c return encode_attr_time(xdr,time); xdr 656 fs/nfs/callback_xdr.c static __be32 encode_compound_hdr_res(struct xdr_stream *xdr, struct cb_compound_hdr_res *hdr) xdr 660 fs/nfs/callback_xdr.c hdr->status = xdr_reserve_space(xdr, 4); xdr 663 fs/nfs/callback_xdr.c status = encode_string(xdr, hdr->taglen, hdr->tag); xdr 666 fs/nfs/callback_xdr.c hdr->nops = xdr_reserve_space(xdr, 4); xdr 672 fs/nfs/callback_xdr.c static __be32 encode_op_hdr(struct xdr_stream *xdr, uint32_t op, __be32 res) xdr 676 fs/nfs/callback_xdr.c p = xdr_reserve_space(xdr, 8); xdr 684 fs/nfs/callback_xdr.c static __be32 encode_getattr_res(struct svc_rqst *rqstp, struct xdr_stream *xdr, xdr 693 fs/nfs/callback_xdr.c status = encode_attr_bitmap(xdr, res->bitmap, ARRAY_SIZE(res->bitmap)); xdr 697 fs/nfs/callback_xdr.c savep = xdr_reserve_space(xdr, sizeof(*savep)); xdr 700 fs/nfs/callback_xdr.c status = encode_attr_change(xdr, res->bitmap, res->change_attr); xdr 703 fs/nfs/callback_xdr.c status = encode_attr_size(xdr, res->bitmap, res->size); xdr 706 fs/nfs/callback_xdr.c status = encode_attr_ctime(xdr, res->bitmap, &res->ctime); xdr 709 fs/nfs/callback_xdr.c status = encode_attr_mtime(xdr, res->bitmap, &res->mtime); xdr 710 fs/nfs/callback_xdr.c *savep = htonl((unsigned int)((char *)xdr->p - (char *)(savep+1))); xdr 717 fs/nfs/callback_xdr.c static __be32 encode_sessionid(struct xdr_stream *xdr, xdr 722 fs/nfs/callback_xdr.c p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN); xdr 731 fs/nfs/callback_xdr.c struct xdr_stream *xdr, xdr 741 fs/nfs/callback_xdr.c status = encode_sessionid(xdr, &res->csr_sessionid); xdr 745 fs/nfs/callback_xdr.c p = xdr_reserve_space(xdr, 4 * sizeof(uint32_t)); xdr 375 fs/nfs/dir.c struct nfs_entry *entry, struct xdr_stream *xdr) xdr 379 fs/nfs/dir.c error = desc->decode(xdr, entry, desc->plus); xdr 40 fs/nfs/flexfilelayout/flexfilelayout.c static void ff_layout_encode_ff_layoutupdate(struct xdr_stream *xdr, xdr 72 fs/nfs/flexfilelayout/flexfilelayout.c static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 76 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(xdr, NFS4_STATEID_SIZE); xdr 86 fs/nfs/flexfilelayout/flexfilelayout.c static int decode_deviceid(struct xdr_stream *xdr, struct nfs4_deviceid *devid) xdr 90 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(xdr, NFS4_DEVICEID4_SIZE); xdr 98 fs/nfs/flexfilelayout/flexfilelayout.c static int decode_nfs_fh(struct xdr_stream *xdr, struct nfs_fh *fh) xdr 102 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(xdr, 4); xdr 112 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(xdr, fh->size); xdr 130 fs/nfs/flexfilelayout/flexfilelayout.c decode_name(struct xdr_stream *xdr, u32 *id) xdr 136 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(xdr, 4); xdr 146 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_inline_decode(xdr, len); xdr 2011 fs/nfs/flexfilelayout/flexfilelayout.c static int ff_layout_encode_ioerr(struct xdr_stream *xdr, xdr 2017 fs/nfs/flexfilelayout/flexfilelayout.c start = xdr_reserve_space(xdr, 4); xdr 2023 fs/nfs/flexfilelayout/flexfilelayout.c return ff_layout_encode_ds_ioerr(xdr, &ff_args->errors); xdr 2027 fs/nfs/flexfilelayout/flexfilelayout.c encode_opaque_fixed(struct xdr_stream *xdr, const void *buf, size_t len) xdr 2029 fs/nfs/flexfilelayout/flexfilelayout.c WARN_ON_ONCE(xdr_stream_encode_opaque_fixed(xdr, buf, len) < 0); xdr 2033 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_iostat_head(struct xdr_stream *xdr, xdr 2039 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 8 + 8); xdr 2042 fs/nfs/flexfilelayout/flexfilelayout.c encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); xdr 2043 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 4*8); xdr 2048 fs/nfs/flexfilelayout/flexfilelayout.c encode_opaque_fixed(xdr, devinfo->dev_id.data, NFS4_DEVICEID4_SIZE); xdr 2052 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_iostat(struct xdr_stream *xdr, xdr 2056 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); xdr 2057 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_layoutupdate(xdr, devinfo, xdr 2062 fs/nfs/flexfilelayout/flexfilelayout.c static void ff_layout_encode_iostats_array(struct xdr_stream *xdr, xdr 2069 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 4); xdr 2072 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_iostat(xdr, xdr 2105 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_layoutreturn(struct xdr_stream *xdr, xdr 2129 fs/nfs/flexfilelayout/flexfilelayout.c start = xdr_reserve_space(xdr, 4); xdr 2131 fs/nfs/flexfilelayout/flexfilelayout.c xdr_write_pages(xdr, ff_args->pages, 0, tmp_buf.len); xdr 2285 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_netaddr(struct xdr_stream *xdr, struct nfs4_pnfs_ds_addr *da) xdr 2319 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 4 + netid_len); xdr 2322 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 4 + len); xdr 2327 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_nfstime(struct xdr_stream *xdr, xdr 2333 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 12); xdr 2340 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_io_latency(struct xdr_stream *xdr, xdr 2345 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 5 * 8); xdr 2351 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_nfstime(xdr, stat->total_busy_time); xdr 2352 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_nfstime(xdr, stat->aggregate_completion_time); xdr 2356 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_layoutupdate(struct xdr_stream *xdr, xdr 2369 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_netaddr(xdr, da); xdr 2371 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 4 + fh->size); xdr 2375 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_io_latency(xdr, &mirror->read_stat.io_stat); xdr 2377 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_io_latency(xdr, &mirror->write_stat.io_stat); xdr 2380 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_nfstime(xdr, ktime_sub(ktime_get(), mirror->start_time)); xdr 2382 fs/nfs/flexfilelayout/flexfilelayout.c p = xdr_reserve_space(xdr, 4); xdr 2387 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_layoutstats(struct xdr_stream *xdr, const void *args, xdr 2395 fs/nfs/flexfilelayout/flexfilelayout.c start = xdr_reserve_space(xdr, 4); xdr 2396 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_encode_ff_layoutupdate(xdr, devinfo, opaque->data); xdr 2398 fs/nfs/flexfilelayout/flexfilelayout.c *start = cpu_to_be32((xdr->p - start - 1) * 4); xdr 199 fs/nfs/flexfilelayout/flexfilelayout.h int ff_layout_encode_ds_ioerr(struct xdr_stream *xdr, const struct list_head *head); xdr 473 fs/nfs/flexfilelayout/flexfilelayoutdev.c int ff_layout_encode_ds_ioerr(struct xdr_stream *xdr, const struct list_head *head) xdr 483 fs/nfs/flexfilelayout/flexfilelayoutdev.c p = xdr_reserve_space(xdr, xdr 301 fs/nfs/mount_clnt.c static void encode_mntdirpath(struct xdr_stream *xdr, const char *pathname) xdr 306 fs/nfs/mount_clnt.c p = xdr_reserve_space(xdr, 4 + pathname_len); xdr 310 fs/nfs/mount_clnt.c static void mnt_xdr_enc_dirpath(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 313 fs/nfs/mount_clnt.c encode_mntdirpath(xdr, dirpath); xdr 325 fs/nfs/mount_clnt.c static int decode_status(struct xdr_stream *xdr, struct mountres *res) xdr 331 fs/nfs/mount_clnt.c p = xdr_inline_decode(xdr, 4); xdr 348 fs/nfs/mount_clnt.c static int decode_fhandle(struct xdr_stream *xdr, struct mountres *res) xdr 353 fs/nfs/mount_clnt.c p = xdr_inline_decode(xdr, NFS2_FHSIZE); xdr 363 fs/nfs/mount_clnt.c struct xdr_stream *xdr, xdr 369 fs/nfs/mount_clnt.c status = decode_status(xdr, res); xdr 372 fs/nfs/mount_clnt.c return decode_fhandle(xdr, res); xdr 375 fs/nfs/mount_clnt.c static int decode_fhs_status(struct xdr_stream *xdr, struct mountres *res) xdr 381 fs/nfs/mount_clnt.c p = xdr_inline_decode(xdr, 4); xdr 398 fs/nfs/mount_clnt.c static int decode_fhandle3(struct xdr_stream *xdr, struct mountres *res) xdr 404 fs/nfs/mount_clnt.c p = xdr_inline_decode(xdr, 4); xdr 412 fs/nfs/mount_clnt.c p = xdr_inline_decode(xdr, size); xdr 421 fs/nfs/mount_clnt.c static int decode_auth_flavors(struct xdr_stream *xdr, struct mountres *res) xdr 431 fs/nfs/mount_clnt.c p = xdr_inline_decode(xdr, 4); xdr 439 fs/nfs/mount_clnt.c p = xdr_inline_decode(xdr, 4 * entries); xdr 456 fs/nfs/mount_clnt.c struct xdr_stream *xdr, xdr 462 fs/nfs/mount_clnt.c status = decode_fhs_status(xdr, res); xdr 465 fs/nfs/mount_clnt.c status = decode_fhandle3(xdr, res); xdr 470 fs/nfs/mount_clnt.c return decode_auth_flavors(xdr, res); xdr 96 fs/nfs/nfs2xdr.c static int decode_nfsdata(struct xdr_stream *xdr, struct nfs_pgio_res *result) xdr 101 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, 4); xdr 105 fs/nfs/nfs2xdr.c recvd = xdr_read_pages(xdr, count); xdr 141 fs/nfs/nfs2xdr.c static int decode_stat(struct xdr_stream *xdr, enum nfs_stat *status) xdr 145 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, 4); xdr 154 fs/nfs/nfs2xdr.c trace_nfs_xdr_status(xdr, (int)*status); xdr 184 fs/nfs/nfs2xdr.c static void encode_fhandle(struct xdr_stream *xdr, const struct nfs_fh *fh) xdr 188 fs/nfs/nfs2xdr.c p = xdr_reserve_space(xdr, NFS2_FHSIZE); xdr 192 fs/nfs/nfs2xdr.c static int decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) xdr 196 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, NFS2_FHSIZE); xdr 265 fs/nfs/nfs2xdr.c static int decode_fattr(struct xdr_stream *xdr, struct nfs_fattr *fattr, xdr 271 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, NFS_fattr_sz << 2); xdr 339 fs/nfs/nfs2xdr.c static void encode_sattr(struct xdr_stream *xdr, const struct iattr *attr, xdr 345 fs/nfs/nfs2xdr.c p = xdr_reserve_space(xdr, NFS_sattr_sz << 2); xdr 387 fs/nfs/nfs2xdr.c static void encode_filename(struct xdr_stream *xdr, xdr 393 fs/nfs/nfs2xdr.c p = xdr_reserve_space(xdr, 4 + length); xdr 397 fs/nfs/nfs2xdr.c static int decode_filename_inline(struct xdr_stream *xdr, xdr 403 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, 4); xdr 409 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, count); xdr 425 fs/nfs/nfs2xdr.c static void encode_path(struct xdr_stream *xdr, struct page **pages, u32 length) xdr 429 fs/nfs/nfs2xdr.c p = xdr_reserve_space(xdr, 4); xdr 431 fs/nfs/nfs2xdr.c xdr_write_pages(xdr, pages, 0, length); xdr 434 fs/nfs/nfs2xdr.c static int decode_path(struct xdr_stream *xdr) xdr 439 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, 4); xdr 443 fs/nfs/nfs2xdr.c if (unlikely(length >= xdr->buf->page_len || length > NFS_MAXPATHLEN)) xdr 445 fs/nfs/nfs2xdr.c recvd = xdr_read_pages(xdr, length); xdr 448 fs/nfs/nfs2xdr.c xdr_terminate_string(xdr->buf, length); xdr 469 fs/nfs/nfs2xdr.c static int decode_attrstat(struct xdr_stream *xdr, struct nfs_fattr *result, xdr 476 fs/nfs/nfs2xdr.c error = decode_stat(xdr, &status); xdr 483 fs/nfs/nfs2xdr.c error = decode_fattr(xdr, result, userns); xdr 498 fs/nfs/nfs2xdr.c static void encode_diropargs(struct xdr_stream *xdr, const struct nfs_fh *fh, xdr 501 fs/nfs/nfs2xdr.c encode_fhandle(xdr, fh); xdr 502 fs/nfs/nfs2xdr.c encode_filename(xdr, name, length); xdr 518 fs/nfs/nfs2xdr.c static int decode_diropok(struct xdr_stream *xdr, struct nfs_diropok *result, xdr 523 fs/nfs/nfs2xdr.c error = decode_fhandle(xdr, result->fh); xdr 526 fs/nfs/nfs2xdr.c error = decode_fattr(xdr, result->fattr, userns); xdr 531 fs/nfs/nfs2xdr.c static int decode_diropres(struct xdr_stream *xdr, struct nfs_diropok *result, xdr 537 fs/nfs/nfs2xdr.c error = decode_stat(xdr, &status); xdr 542 fs/nfs/nfs2xdr.c error = decode_diropok(xdr, result, userns); xdr 558 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 563 fs/nfs/nfs2xdr.c encode_fhandle(xdr, fh); xdr 575 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 580 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); xdr 581 fs/nfs/nfs2xdr.c encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); xdr 585 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 590 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->fh, args->name, args->len); xdr 594 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 599 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); xdr 614 fs/nfs/nfs2xdr.c static void encode_readargs(struct xdr_stream *xdr, xdr 621 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); xdr 623 fs/nfs/nfs2xdr.c p = xdr_reserve_space(xdr, 4 + 4 + 4); xdr 630 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 635 fs/nfs/nfs2xdr.c encode_readargs(xdr, args); xdr 652 fs/nfs/nfs2xdr.c static void encode_writeargs(struct xdr_stream *xdr, xdr 659 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); xdr 661 fs/nfs/nfs2xdr.c p = xdr_reserve_space(xdr, 4 + 4 + 4 + 4); xdr 668 fs/nfs/nfs2xdr.c xdr_write_pages(xdr, args->pages, args->pgbase, count); xdr 672 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 677 fs/nfs/nfs2xdr.c encode_writeargs(xdr, args); xdr 678 fs/nfs/nfs2xdr.c xdr->buf->flags |= XDRBUF_WRITE; xdr 690 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 695 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->fh, args->name, args->len); xdr 696 fs/nfs/nfs2xdr.c encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); xdr 700 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 705 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->fh, args->name.name, args->name.len); xdr 717 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 724 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->old_dir, old->name, old->len); xdr 725 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->new_dir, new->name, new->len); xdr 737 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 742 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fromfh); xdr 743 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->tofh, args->toname, args->tolen); xdr 756 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 761 fs/nfs/nfs2xdr.c encode_diropargs(xdr, args->fromfh, args->fromname, args->fromlen); xdr 762 fs/nfs/nfs2xdr.c encode_path(xdr, args->pages, args->pathlen); xdr 763 fs/nfs/nfs2xdr.c encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); xdr 775 fs/nfs/nfs2xdr.c static void encode_readdirargs(struct xdr_stream *xdr, xdr 780 fs/nfs/nfs2xdr.c encode_fhandle(xdr, args->fh); xdr 782 fs/nfs/nfs2xdr.c p = xdr_reserve_space(xdr, 4 + 4); xdr 788 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, xdr 793 fs/nfs/nfs2xdr.c encode_readdirargs(xdr, args); xdr 805 fs/nfs/nfs2xdr.c static int nfs2_xdr_dec_stat(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 811 fs/nfs/nfs2xdr.c error = decode_stat(xdr, &status); xdr 822 fs/nfs/nfs2xdr.c static int nfs2_xdr_dec_attrstat(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 825 fs/nfs/nfs2xdr.c return decode_attrstat(xdr, result, NULL, rpc_rqst_userns(req)); xdr 828 fs/nfs/nfs2xdr.c static int nfs2_xdr_dec_diropres(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 831 fs/nfs/nfs2xdr.c return decode_diropres(xdr, result, rpc_rqst_userns(req)); xdr 845 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, void *__unused) xdr 850 fs/nfs/nfs2xdr.c error = decode_stat(xdr, &status); xdr 855 fs/nfs/nfs2xdr.c error = decode_path(xdr); xdr 873 fs/nfs/nfs2xdr.c static int nfs2_xdr_dec_readres(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 880 fs/nfs/nfs2xdr.c error = decode_stat(xdr, &status); xdr 886 fs/nfs/nfs2xdr.c error = decode_fattr(xdr, result->fattr, rpc_rqst_userns(req)); xdr 889 fs/nfs/nfs2xdr.c error = decode_nfsdata(xdr, result); xdr 896 fs/nfs/nfs2xdr.c static int nfs2_xdr_dec_writeres(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 903 fs/nfs/nfs2xdr.c return decode_attrstat(xdr, result->fattr, &result->op_status, xdr 930 fs/nfs/nfs2xdr.c int nfs2_decode_dirent(struct xdr_stream *xdr, struct nfs_entry *entry, xdr 936 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, 4); xdr 940 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, 4); xdr 949 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, 4); xdr 954 fs/nfs/nfs2xdr.c error = decode_filename_inline(xdr, &entry->name, &entry->len); xdr 963 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, 4); xdr 990 fs/nfs/nfs2xdr.c static int decode_readdirok(struct xdr_stream *xdr) xdr 992 fs/nfs/nfs2xdr.c return xdr_read_pages(xdr, xdr->buf->page_len); xdr 996 fs/nfs/nfs2xdr.c struct xdr_stream *xdr, void *__unused) xdr 1001 fs/nfs/nfs2xdr.c error = decode_stat(xdr, &status); xdr 1006 fs/nfs/nfs2xdr.c error = decode_readdirok(xdr); xdr 1029 fs/nfs/nfs2xdr.c static int decode_info(struct xdr_stream *xdr, struct nfs2_fsstat *result) xdr 1033 fs/nfs/nfs2xdr.c p = xdr_inline_decode(xdr, NFS_info_sz << 2); xdr 1044 fs/nfs/nfs2xdr.c static int nfs2_xdr_dec_statfsres(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 1050 fs/nfs/nfs2xdr.c error = decode_stat(xdr, &status); xdr 1055 fs/nfs/nfs2xdr.c error = decode_info(xdr, result); xdr 132 fs/nfs/nfs3xdr.c static void encode_uint32(struct xdr_stream *xdr, u32 value) xdr 134 fs/nfs/nfs3xdr.c __be32 *p = xdr_reserve_space(xdr, 4); xdr 138 fs/nfs/nfs3xdr.c static int decode_uint32(struct xdr_stream *xdr, u32 *value) xdr 142 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 149 fs/nfs/nfs3xdr.c static int decode_uint64(struct xdr_stream *xdr, u64 *value) xdr 153 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 8); xdr 170 fs/nfs/nfs3xdr.c static int decode_fileid3(struct xdr_stream *xdr, u64 *fileid) xdr 172 fs/nfs/nfs3xdr.c return decode_uint64(xdr, fileid); xdr 180 fs/nfs/nfs3xdr.c static void encode_filename3(struct xdr_stream *xdr, xdr 186 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 4 + length); xdr 190 fs/nfs/nfs3xdr.c static int decode_inline_filename3(struct xdr_stream *xdr, xdr 196 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 202 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, count); xdr 219 fs/nfs/nfs3xdr.c static void encode_nfspath3(struct xdr_stream *xdr, struct page **pages, xdr 222 fs/nfs/nfs3xdr.c encode_uint32(xdr, length); xdr 223 fs/nfs/nfs3xdr.c xdr_write_pages(xdr, pages, 0, length); xdr 226 fs/nfs/nfs3xdr.c static int decode_nfspath3(struct xdr_stream *xdr) xdr 231 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 235 fs/nfs/nfs3xdr.c if (unlikely(count >= xdr->buf->page_len || count > NFS3_MAXPATHLEN)) xdr 237 fs/nfs/nfs3xdr.c recvd = xdr_read_pages(xdr, count); xdr 240 fs/nfs/nfs3xdr.c xdr_terminate_string(xdr->buf, count); xdr 262 fs/nfs/nfs3xdr.c static int decode_cookie3(struct xdr_stream *xdr, u64 *cookie) xdr 264 fs/nfs/nfs3xdr.c return decode_uint64(xdr, cookie); xdr 278 fs/nfs/nfs3xdr.c static int decode_cookieverf3(struct xdr_stream *xdr, __be32 *verifier) xdr 282 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, NFS3_COOKIEVERFSIZE); xdr 294 fs/nfs/nfs3xdr.c static void encode_createverf3(struct xdr_stream *xdr, const __be32 *verifier) xdr 298 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, NFS3_CREATEVERFSIZE); xdr 302 fs/nfs/nfs3xdr.c static int decode_writeverf3(struct xdr_stream *xdr, struct nfs_write_verifier *verifier) xdr 306 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, NFS3_WRITEVERFSIZE); xdr 333 fs/nfs/nfs3xdr.c static int decode_nfsstat3(struct xdr_stream *xdr, enum nfs_stat *status) xdr 337 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 346 fs/nfs/nfs3xdr.c trace_nfs_xdr_status(xdr, (int)*status); xdr 363 fs/nfs/nfs3xdr.c static void encode_ftype3(struct xdr_stream *xdr, const u32 type) xdr 365 fs/nfs/nfs3xdr.c encode_uint32(xdr, type); xdr 387 fs/nfs/nfs3xdr.c static void encode_specdata3(struct xdr_stream *xdr, const dev_t rdev) xdr 391 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 8); xdr 415 fs/nfs/nfs3xdr.c static void encode_nfs_fh3(struct xdr_stream *xdr, const struct nfs_fh *fh) xdr 420 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 4 + fh->size); xdr 424 fs/nfs/nfs3xdr.c static int decode_nfs_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) xdr 429 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 435 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, length); xdr 533 fs/nfs/nfs3xdr.c static void encode_sattr3(struct xdr_stream *xdr, const struct iattr *attr, xdr 559 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, nbytes); xdr 624 fs/nfs/nfs3xdr.c static int decode_fattr3(struct xdr_stream *xdr, struct nfs_fattr *fattr, xdr 630 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, NFS3_fattr_sz << 2); xdr 678 fs/nfs/nfs3xdr.c static int decode_post_op_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr, xdr 683 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 687 fs/nfs/nfs3xdr.c return decode_fattr3(xdr, fattr, userns); xdr 699 fs/nfs/nfs3xdr.c static int decode_wcc_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) xdr 703 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, NFS3_wcc_attr_sz << 2); xdr 736 fs/nfs/nfs3xdr.c static int decode_pre_op_attr(struct xdr_stream *xdr, struct nfs_fattr *fattr) xdr 740 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 744 fs/nfs/nfs3xdr.c return decode_wcc_attr(xdr, fattr); xdr 748 fs/nfs/nfs3xdr.c static int decode_wcc_data(struct xdr_stream *xdr, struct nfs_fattr *fattr, xdr 753 fs/nfs/nfs3xdr.c error = decode_pre_op_attr(xdr, fattr); xdr 756 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, fattr, userns); xdr 771 fs/nfs/nfs3xdr.c static int decode_post_op_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) xdr 773 fs/nfs/nfs3xdr.c __be32 *p = xdr_inline_decode(xdr, 4); xdr 777 fs/nfs/nfs3xdr.c return decode_nfs_fh3(xdr, fh); xdr 790 fs/nfs/nfs3xdr.c static void encode_diropargs3(struct xdr_stream *xdr, const struct nfs_fh *fh, xdr 793 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, fh); xdr 794 fs/nfs/nfs3xdr.c encode_filename3(xdr, name, length); xdr 813 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 818 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, fh); xdr 837 fs/nfs/nfs3xdr.c static void encode_sattrguard3(struct xdr_stream *xdr, xdr 843 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 4 + 8); xdr 847 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 4); xdr 853 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 857 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); xdr 858 fs/nfs/nfs3xdr.c encode_sattr3(xdr, args->sattr, rpc_rqst_userns(req)); xdr 859 fs/nfs/nfs3xdr.c encode_sattrguard3(xdr, args); xdr 870 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 875 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name, args->len); xdr 886 fs/nfs/nfs3xdr.c static void encode_access3args(struct xdr_stream *xdr, xdr 889 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); xdr 890 fs/nfs/nfs3xdr.c encode_uint32(xdr, args->access); xdr 894 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 899 fs/nfs/nfs3xdr.c encode_access3args(xdr, args); xdr 910 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 915 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); xdr 929 fs/nfs/nfs3xdr.c static void encode_read3args(struct xdr_stream *xdr, xdr 934 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); xdr 936 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 8 + 4); xdr 942 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 948 fs/nfs/nfs3xdr.c encode_read3args(xdr, args); xdr 971 fs/nfs/nfs3xdr.c static void encode_write3args(struct xdr_stream *xdr, xdr 976 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); xdr 978 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 8 + 4 + 4 + 4); xdr 983 fs/nfs/nfs3xdr.c xdr_write_pages(xdr, args->pages, args->pgbase, args->count); xdr 987 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 992 fs/nfs/nfs3xdr.c encode_write3args(xdr, args); xdr 993 fs/nfs/nfs3xdr.c xdr->buf->flags |= XDRBUF_WRITE; xdr 1018 fs/nfs/nfs3xdr.c static void encode_createhow3(struct xdr_stream *xdr, xdr 1022 fs/nfs/nfs3xdr.c encode_uint32(xdr, args->createmode); xdr 1026 fs/nfs/nfs3xdr.c encode_sattr3(xdr, args->sattr, userns); xdr 1029 fs/nfs/nfs3xdr.c encode_createverf3(xdr, args->verifier); xdr 1037 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1042 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name, args->len); xdr 1043 fs/nfs/nfs3xdr.c encode_createhow3(xdr, args, rpc_rqst_userns(req)); xdr 1055 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1060 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name, args->len); xdr 1061 fs/nfs/nfs3xdr.c encode_sattr3(xdr, args->sattr, rpc_rqst_userns(req)); xdr 1077 fs/nfs/nfs3xdr.c static void encode_symlinkdata3(struct xdr_stream *xdr, xdr 1083 fs/nfs/nfs3xdr.c encode_sattr3(xdr, args->sattr, userns); xdr 1084 fs/nfs/nfs3xdr.c encode_nfspath3(xdr, args->pages, args->pathlen); xdr 1088 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1093 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fromfh, args->fromname, args->fromlen); xdr 1094 fs/nfs/nfs3xdr.c encode_symlinkdata3(xdr, args, rpc_rqst_userns(req)); xdr 1095 fs/nfs/nfs3xdr.c xdr->buf->flags |= XDRBUF_WRITE; xdr 1122 fs/nfs/nfs3xdr.c static void encode_devicedata3(struct xdr_stream *xdr, xdr 1126 fs/nfs/nfs3xdr.c encode_sattr3(xdr, args->sattr, userns); xdr 1127 fs/nfs/nfs3xdr.c encode_specdata3(xdr, args->rdev); xdr 1130 fs/nfs/nfs3xdr.c static void encode_mknoddata3(struct xdr_stream *xdr, xdr 1134 fs/nfs/nfs3xdr.c encode_ftype3(xdr, args->type); xdr 1138 fs/nfs/nfs3xdr.c encode_devicedata3(xdr, args, userns); xdr 1142 fs/nfs/nfs3xdr.c encode_sattr3(xdr, args->sattr, userns); xdr 1153 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1158 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name, args->len); xdr 1159 fs/nfs/nfs3xdr.c encode_mknoddata3(xdr, args, rpc_rqst_userns(req)); xdr 1170 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1175 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->fh, args->name.name, args->name.len); xdr 1187 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1194 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->old_dir, old->name, old->len); xdr 1195 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->new_dir, new->name, new->len); xdr 1207 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1212 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fromfh); xdr 1213 fs/nfs/nfs3xdr.c encode_diropargs3(xdr, args->tofh, args->toname, args->tolen); xdr 1226 fs/nfs/nfs3xdr.c static void encode_readdir3args(struct xdr_stream *xdr, xdr 1231 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); xdr 1233 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 8 + NFS3_COOKIEVERFSIZE + 4); xdr 1240 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1245 fs/nfs/nfs3xdr.c encode_readdir3args(xdr, args); xdr 1261 fs/nfs/nfs3xdr.c static void encode_readdirplus3args(struct xdr_stream *xdr, xdr 1266 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); xdr 1268 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 8 + NFS3_COOKIEVERFSIZE + 4 + 4); xdr 1282 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1287 fs/nfs/nfs3xdr.c encode_readdirplus3args(xdr, args); xdr 1301 fs/nfs/nfs3xdr.c static void encode_commit3args(struct xdr_stream *xdr, xdr 1306 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); xdr 1308 fs/nfs/nfs3xdr.c p = xdr_reserve_space(xdr, 8 + 4); xdr 1314 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1319 fs/nfs/nfs3xdr.c encode_commit3args(xdr, args); xdr 1325 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1330 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, args->fh); xdr 1331 fs/nfs/nfs3xdr.c encode_uint32(xdr, args->mask); xdr 1341 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1348 fs/nfs/nfs3xdr.c encode_nfs_fh3(xdr, NFS_FH(args->inode)); xdr 1349 fs/nfs/nfs3xdr.c encode_uint32(xdr, args->mask); xdr 1353 fs/nfs/nfs3xdr.c xdr_write_pages(xdr, args->pages, 0, args->len); xdr 1355 fs/nfs/nfs3xdr.c xdr_reserve_space(xdr, args->len); xdr 1357 fs/nfs/nfs3xdr.c error = nfsacl_encode(xdr->buf, base, args->inode, xdr 1362 fs/nfs/nfs3xdr.c error = nfsacl_encode(xdr->buf, base + error, args->inode, xdr 1393 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1399 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1404 fs/nfs/nfs3xdr.c error = decode_fattr3(xdr, result, rpc_rqst_userns(req)); xdr 1430 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1436 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1439 fs/nfs/nfs3xdr.c error = decode_wcc_data(xdr, result, rpc_rqst_userns(req)); xdr 1471 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1479 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1484 fs/nfs/nfs3xdr.c error = decode_nfs_fh3(xdr, result->fh); xdr 1487 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->fattr, userns); xdr 1490 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->dir_attr, userns); xdr 1494 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->dir_attr, userns); xdr 1520 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1527 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1530 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); xdr 1535 fs/nfs/nfs3xdr.c error = decode_uint32(xdr, &result->access); xdr 1562 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1568 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1571 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result, rpc_rqst_userns(req)); xdr 1576 fs/nfs/nfs3xdr.c error = decode_nfspath3(xdr); xdr 1604 fs/nfs/nfs3xdr.c static int decode_read3resok(struct xdr_stream *xdr, xdr 1610 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4 + 4 + 4); xdr 1618 fs/nfs/nfs3xdr.c recvd = xdr_read_pages(xdr, count); xdr 1637 fs/nfs/nfs3xdr.c static int nfs3_xdr_dec_read3res(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 1645 fs/nfs/nfs3xdr.c pos = xdr_stream_pos(xdr); xdr 1646 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1649 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); xdr 1655 fs/nfs/nfs3xdr.c result->replen = 4 + ((xdr_stream_pos(xdr) - pos) >> 2); xdr 1656 fs/nfs/nfs3xdr.c error = decode_read3resok(xdr, result); xdr 1690 fs/nfs/nfs3xdr.c static int decode_write3resok(struct xdr_stream *xdr, xdr 1695 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4 + 4); xdr 1702 fs/nfs/nfs3xdr.c if (decode_writeverf3(xdr, &result->verf->verifier)) xdr 1710 fs/nfs/nfs3xdr.c static int nfs3_xdr_dec_write3res(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 1717 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1720 fs/nfs/nfs3xdr.c error = decode_wcc_data(xdr, result->fattr, rpc_rqst_userns(req)); xdr 1726 fs/nfs/nfs3xdr.c error = decode_write3resok(xdr, result); xdr 1753 fs/nfs/nfs3xdr.c static int decode_create3resok(struct xdr_stream *xdr, xdr 1759 fs/nfs/nfs3xdr.c error = decode_post_op_fh3(xdr, result->fh); xdr 1762 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->fattr, userns); xdr 1771 fs/nfs/nfs3xdr.c error = decode_wcc_data(xdr, result->dir_attr, userns); xdr 1777 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1785 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1790 fs/nfs/nfs3xdr.c error = decode_create3resok(xdr, result, userns); xdr 1794 fs/nfs/nfs3xdr.c error = decode_wcc_data(xdr, result->dir_attr, userns); xdr 1819 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1826 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1829 fs/nfs/nfs3xdr.c error = decode_wcc_data(xdr, result->dir_attr, rpc_rqst_userns(req)); xdr 1861 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 1869 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1872 fs/nfs/nfs3xdr.c error = decode_wcc_data(xdr, result->old_fattr, userns); xdr 1875 fs/nfs/nfs3xdr.c error = decode_wcc_data(xdr, result->new_fattr, userns); xdr 1906 fs/nfs/nfs3xdr.c static int nfs3_xdr_dec_link3res(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 1914 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 1917 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->fattr, userns); xdr 1920 fs/nfs/nfs3xdr.c error = decode_wcc_data(xdr, result->dir_attr, userns); xdr 1966 fs/nfs/nfs3xdr.c int nfs3_decode_dirent(struct xdr_stream *xdr, struct nfs_entry *entry, xdr 1975 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 1979 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 1988 fs/nfs/nfs3xdr.c error = decode_fileid3(xdr, &entry->ino); xdr 1992 fs/nfs/nfs3xdr.c error = decode_inline_filename3(xdr, &entry->name, &entry->len); xdr 1996 fs/nfs/nfs3xdr.c error = decode_cookie3(xdr, &new_cookie); xdr 2004 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, entry->fattr, userns); xdr 2016 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4); xdr 2020 fs/nfs/nfs3xdr.c error = decode_nfs_fh3(xdr, entry->fh); xdr 2070 fs/nfs/nfs3xdr.c static int decode_dirlist3(struct xdr_stream *xdr) xdr 2072 fs/nfs/nfs3xdr.c return xdr_read_pages(xdr, xdr->buf->page_len); xdr 2075 fs/nfs/nfs3xdr.c static int decode_readdir3resok(struct xdr_stream *xdr, xdr 2081 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->dir_attr, userns); xdr 2085 fs/nfs/nfs3xdr.c error = decode_cookieverf3(xdr, result->verf); xdr 2088 fs/nfs/nfs3xdr.c error = decode_dirlist3(xdr); xdr 2094 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 2101 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 2106 fs/nfs/nfs3xdr.c error = decode_readdir3resok(xdr, result, rpc_rqst_userns(req)); xdr 2110 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->dir_attr, rpc_rqst_userns(req)); xdr 2141 fs/nfs/nfs3xdr.c static int decode_fsstat3resok(struct xdr_stream *xdr, xdr 2146 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 8 * 6 + 4); xdr 2160 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 2167 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 2170 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); xdr 2175 fs/nfs/nfs3xdr.c error = decode_fsstat3resok(xdr, result); xdr 2210 fs/nfs/nfs3xdr.c static int decode_fsinfo3resok(struct xdr_stream *xdr, xdr 2215 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4 * 7 + 8 + 8 + 4); xdr 2234 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 2241 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 2244 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); xdr 2249 fs/nfs/nfs3xdr.c error = decode_fsinfo3resok(xdr, result); xdr 2280 fs/nfs/nfs3xdr.c static int decode_pathconf3resok(struct xdr_stream *xdr, xdr 2285 fs/nfs/nfs3xdr.c p = xdr_inline_decode(xdr, 4 * 6); xdr 2295 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 2302 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 2305 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->fattr, rpc_rqst_userns(req)); xdr 2310 fs/nfs/nfs3xdr.c error = decode_pathconf3resok(xdr, result); xdr 2337 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 2345 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 2348 fs/nfs/nfs3xdr.c error = decode_wcc_data(xdr, result->fattr, rpc_rqst_userns(req)); xdr 2354 fs/nfs/nfs3xdr.c error = decode_writeverf3(xdr, &verf->verifier); xdr 2365 fs/nfs/nfs3xdr.c static inline int decode_getacl3resok(struct xdr_stream *xdr, xdr 2374 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result->fattr, userns); xdr 2377 fs/nfs/nfs3xdr.c error = decode_uint32(xdr, &result->mask); xdr 2384 fs/nfs/nfs3xdr.c hdrlen = xdr_stream_pos(xdr); xdr 2392 fs/nfs/nfs3xdr.c error = nfsacl_decode(xdr->buf, hdrlen, aclcnt, acl); xdr 2402 fs/nfs/nfs3xdr.c error = nfsacl_decode(xdr->buf, hdrlen + error, aclcnt, acl); xdr 2411 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 2417 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 2422 fs/nfs/nfs3xdr.c error = decode_getacl3resok(xdr, result, rpc_rqst_userns(req)); xdr 2430 fs/nfs/nfs3xdr.c struct xdr_stream *xdr, xdr 2436 fs/nfs/nfs3xdr.c error = decode_nfsstat3(xdr, &status); xdr 2441 fs/nfs/nfs3xdr.c error = decode_post_op_attr(xdr, result, rpc_rqst_userns(req)); xdr 153 fs/nfs/nfs42xdr.c static void encode_fallocate(struct xdr_stream *xdr, xdr 156 fs/nfs/nfs42xdr.c encode_nfs4_stateid(xdr, &args->falloc_stateid); xdr 157 fs/nfs/nfs42xdr.c encode_uint64(xdr, args->falloc_offset); xdr 158 fs/nfs/nfs42xdr.c encode_uint64(xdr, args->falloc_length); xdr 161 fs/nfs/nfs42xdr.c static void encode_allocate(struct xdr_stream *xdr, xdr 165 fs/nfs/nfs42xdr.c encode_op_hdr(xdr, OP_ALLOCATE, decode_allocate_maxsz, hdr); xdr 166 fs/nfs/nfs42xdr.c encode_fallocate(xdr, args); xdr 169 fs/nfs/nfs42xdr.c static void encode_copy(struct xdr_stream *xdr, xdr 173 fs/nfs/nfs42xdr.c encode_op_hdr(xdr, OP_COPY, decode_copy_maxsz, hdr); xdr 174 fs/nfs/nfs42xdr.c encode_nfs4_stateid(xdr, &args->src_stateid); xdr 175 fs/nfs/nfs42xdr.c encode_nfs4_stateid(xdr, &args->dst_stateid); xdr 177 fs/nfs/nfs42xdr.c encode_uint64(xdr, args->src_pos); xdr 178 fs/nfs/nfs42xdr.c encode_uint64(xdr, args->dst_pos); xdr 179 fs/nfs/nfs42xdr.c encode_uint64(xdr, args->count); xdr 181 fs/nfs/nfs42xdr.c encode_uint32(xdr, 1); /* consecutive = true */ xdr 182 fs/nfs/nfs42xdr.c encode_uint32(xdr, args->sync); xdr 183 fs/nfs/nfs42xdr.c encode_uint32(xdr, 0); /* src server list */ xdr 186 fs/nfs/nfs42xdr.c static void encode_offload_cancel(struct xdr_stream *xdr, xdr 190 fs/nfs/nfs42xdr.c encode_op_hdr(xdr, OP_OFFLOAD_CANCEL, decode_offload_cancel_maxsz, hdr); xdr 191 fs/nfs/nfs42xdr.c encode_nfs4_stateid(xdr, &args->osa_stateid); xdr 194 fs/nfs/nfs42xdr.c static void encode_deallocate(struct xdr_stream *xdr, xdr 198 fs/nfs/nfs42xdr.c encode_op_hdr(xdr, OP_DEALLOCATE, decode_deallocate_maxsz, hdr); xdr 199 fs/nfs/nfs42xdr.c encode_fallocate(xdr, args); xdr 202 fs/nfs/nfs42xdr.c static void encode_seek(struct xdr_stream *xdr, xdr 206 fs/nfs/nfs42xdr.c encode_op_hdr(xdr, OP_SEEK, decode_seek_maxsz, hdr); xdr 207 fs/nfs/nfs42xdr.c encode_nfs4_stateid(xdr, &args->sa_stateid); xdr 208 fs/nfs/nfs42xdr.c encode_uint64(xdr, args->sa_offset); xdr 209 fs/nfs/nfs42xdr.c encode_uint32(xdr, args->sa_what); xdr 212 fs/nfs/nfs42xdr.c static void encode_layoutstats(struct xdr_stream *xdr, xdr 219 fs/nfs/nfs42xdr.c encode_op_hdr(xdr, OP_LAYOUTSTATS, decode_layoutstats_maxsz, hdr); xdr 220 fs/nfs/nfs42xdr.c p = reserve_space(xdr, 8 + 8); xdr 223 fs/nfs/nfs42xdr.c encode_nfs4_stateid(xdr, &args->stateid); xdr 224 fs/nfs/nfs42xdr.c p = reserve_space(xdr, 4*8 + NFS4_DEVICEID4_SIZE + 4); xdr 234 fs/nfs/nfs42xdr.c devinfo->ld_private.ops->encode(xdr, args, xdr 237 fs/nfs/nfs42xdr.c encode_uint32(xdr, 0); xdr 240 fs/nfs/nfs42xdr.c static void encode_clone(struct xdr_stream *xdr, xdr 246 fs/nfs/nfs42xdr.c encode_op_hdr(xdr, OP_CLONE, decode_clone_maxsz, hdr); xdr 247 fs/nfs/nfs42xdr.c encode_nfs4_stateid(xdr, &args->src_stateid); xdr 248 fs/nfs/nfs42xdr.c encode_nfs4_stateid(xdr, &args->dst_stateid); xdr 249 fs/nfs/nfs42xdr.c p = reserve_space(xdr, 3*8); xdr 255 fs/nfs/nfs42xdr.c static void encode_device_error(struct xdr_stream *xdr, xdr 260 fs/nfs/nfs42xdr.c p = reserve_space(xdr, NFS4_DEVICEID4_SIZE + 2*4); xdr 267 fs/nfs/nfs42xdr.c static void encode_layouterror(struct xdr_stream *xdr, xdr 273 fs/nfs/nfs42xdr.c encode_op_hdr(xdr, OP_LAYOUTERROR, decode_layouterror_maxsz, hdr); xdr 274 fs/nfs/nfs42xdr.c p = reserve_space(xdr, 8 + 8); xdr 277 fs/nfs/nfs42xdr.c encode_nfs4_stateid(xdr, &args->stateid); xdr 278 fs/nfs/nfs42xdr.c p = reserve_space(xdr, 4); xdr 280 fs/nfs/nfs42xdr.c encode_device_error(xdr, &args->errors[0]); xdr 287 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 295 fs/nfs/nfs42xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 296 fs/nfs/nfs42xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 297 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->falloc_fh, &hdr); xdr 298 fs/nfs/nfs42xdr.c encode_allocate(xdr, args, &hdr); xdr 299 fs/nfs/nfs42xdr.c encode_getfattr(xdr, args->falloc_bitmask, &hdr); xdr 303 fs/nfs/nfs42xdr.c static void encode_copy_commit(struct xdr_stream *xdr, xdr 309 fs/nfs/nfs42xdr.c encode_op_hdr(xdr, OP_COMMIT, decode_commit_maxsz, hdr); xdr 310 fs/nfs/nfs42xdr.c p = reserve_space(xdr, 12); xdr 319 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 327 fs/nfs/nfs42xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 328 fs/nfs/nfs42xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 329 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->src_fh, &hdr); xdr 330 fs/nfs/nfs42xdr.c encode_savefh(xdr, &hdr); xdr 331 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->dst_fh, &hdr); xdr 332 fs/nfs/nfs42xdr.c encode_copy(xdr, args, &hdr); xdr 334 fs/nfs/nfs42xdr.c encode_copy_commit(xdr, args, &hdr); xdr 342 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 350 fs/nfs/nfs42xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 351 fs/nfs/nfs42xdr.c encode_sequence(xdr, &args->osa_seq_args, &hdr); xdr 352 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->osa_src_fh, &hdr); xdr 353 fs/nfs/nfs42xdr.c encode_offload_cancel(xdr, args, &hdr); xdr 361 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 369 fs/nfs/nfs42xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 370 fs/nfs/nfs42xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 371 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->falloc_fh, &hdr); xdr 372 fs/nfs/nfs42xdr.c encode_deallocate(xdr, args, &hdr); xdr 373 fs/nfs/nfs42xdr.c encode_getfattr(xdr, args->falloc_bitmask, &hdr); xdr 381 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 389 fs/nfs/nfs42xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 390 fs/nfs/nfs42xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 391 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->sa_fh, &hdr); xdr 392 fs/nfs/nfs42xdr.c encode_seek(xdr, args, &hdr); xdr 400 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 410 fs/nfs/nfs42xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 411 fs/nfs/nfs42xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 412 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 415 fs/nfs/nfs42xdr.c encode_layoutstats(xdr, args, &args->devinfo[i], &hdr); xdr 423 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 431 fs/nfs/nfs42xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 432 fs/nfs/nfs42xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 433 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->src_fh, &hdr); xdr 434 fs/nfs/nfs42xdr.c encode_savefh(xdr, &hdr); xdr 435 fs/nfs/nfs42xdr.c encode_putfh(xdr, args->dst_fh, &hdr); xdr 436 fs/nfs/nfs42xdr.c encode_clone(xdr, args, &hdr); xdr 437 fs/nfs/nfs42xdr.c encode_getfattr(xdr, args->dst_bitmask, &hdr); xdr 445 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 454 fs/nfs/nfs42xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 455 fs/nfs/nfs42xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 456 fs/nfs/nfs42xdr.c encode_putfh(xdr, NFS_FH(args->inode), &hdr); xdr 458 fs/nfs/nfs42xdr.c encode_layouterror(xdr, &args->errors[i], &hdr); xdr 462 fs/nfs/nfs42xdr.c static int decode_allocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) xdr 464 fs/nfs/nfs42xdr.c return decode_op_hdr(xdr, OP_ALLOCATE); xdr 467 fs/nfs/nfs42xdr.c static int decode_write_response(struct xdr_stream *xdr, xdr 473 fs/nfs/nfs42xdr.c p = xdr_inline_decode(xdr, 4); xdr 480 fs/nfs/nfs42xdr.c status = decode_opaque_fixed(xdr, &res->stateid, xdr 485 fs/nfs/nfs42xdr.c p = xdr_inline_decode(xdr, 8 + 4); xdr 490 fs/nfs/nfs42xdr.c return decode_verifier(xdr, &res->verifier.verifier); xdr 493 fs/nfs/nfs42xdr.c static int decode_copy_requirements(struct xdr_stream *xdr, xdr 497 fs/nfs/nfs42xdr.c p = xdr_inline_decode(xdr, 4 + 4); xdr 506 fs/nfs/nfs42xdr.c static int decode_copy(struct xdr_stream *xdr, struct nfs42_copy_res *res) xdr 510 fs/nfs/nfs42xdr.c status = decode_op_hdr(xdr, OP_COPY); xdr 512 fs/nfs/nfs42xdr.c status = decode_copy_requirements(xdr, res); xdr 519 fs/nfs/nfs42xdr.c status = decode_write_response(xdr, &res->write_res); xdr 523 fs/nfs/nfs42xdr.c return decode_copy_requirements(xdr, res); xdr 526 fs/nfs/nfs42xdr.c static int decode_offload_cancel(struct xdr_stream *xdr, xdr 529 fs/nfs/nfs42xdr.c return decode_op_hdr(xdr, OP_OFFLOAD_CANCEL); xdr 532 fs/nfs/nfs42xdr.c static int decode_deallocate(struct xdr_stream *xdr, struct nfs42_falloc_res *res) xdr 534 fs/nfs/nfs42xdr.c return decode_op_hdr(xdr, OP_DEALLOCATE); xdr 537 fs/nfs/nfs42xdr.c static int decode_seek(struct xdr_stream *xdr, struct nfs42_seek_res *res) xdr 542 fs/nfs/nfs42xdr.c status = decode_op_hdr(xdr, OP_SEEK); xdr 546 fs/nfs/nfs42xdr.c p = xdr_inline_decode(xdr, 4 + 8); xdr 555 fs/nfs/nfs42xdr.c static int decode_layoutstats(struct xdr_stream *xdr) xdr 557 fs/nfs/nfs42xdr.c return decode_op_hdr(xdr, OP_LAYOUTSTATS); xdr 560 fs/nfs/nfs42xdr.c static int decode_clone(struct xdr_stream *xdr) xdr 562 fs/nfs/nfs42xdr.c return decode_op_hdr(xdr, OP_CLONE); xdr 565 fs/nfs/nfs42xdr.c static int decode_layouterror(struct xdr_stream *xdr) xdr 567 fs/nfs/nfs42xdr.c return decode_op_hdr(xdr, OP_LAYOUTERROR); xdr 574 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 581 fs/nfs/nfs42xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 584 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 587 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 590 fs/nfs/nfs42xdr.c status = decode_allocate(xdr, res); xdr 593 fs/nfs/nfs42xdr.c decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); xdr 602 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 609 fs/nfs/nfs42xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 612 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 615 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 618 fs/nfs/nfs42xdr.c status = decode_savefh(xdr); xdr 621 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 624 fs/nfs/nfs42xdr.c status = decode_copy(xdr, res); xdr 628 fs/nfs/nfs42xdr.c status = decode_commit(xdr, &res->commit_res); xdr 637 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 644 fs/nfs/nfs42xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 647 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->osr_seq_res, rqstp); xdr 650 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 653 fs/nfs/nfs42xdr.c status = decode_offload_cancel(xdr, res); xdr 663 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 670 fs/nfs/nfs42xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 673 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 676 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 679 fs/nfs/nfs42xdr.c status = decode_deallocate(xdr, res); xdr 682 fs/nfs/nfs42xdr.c decode_getfattr(xdr, res->falloc_fattr, res->falloc_server); xdr 691 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 698 fs/nfs/nfs42xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 701 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 704 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 707 fs/nfs/nfs42xdr.c status = decode_seek(xdr, res); xdr 716 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 723 fs/nfs/nfs42xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 726 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 729 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 734 fs/nfs/nfs42xdr.c status = decode_layoutstats(xdr); xdr 747 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 754 fs/nfs/nfs42xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 757 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 760 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 763 fs/nfs/nfs42xdr.c status = decode_savefh(xdr); xdr 766 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 769 fs/nfs/nfs42xdr.c status = decode_clone(xdr); xdr 772 fs/nfs/nfs42xdr.c status = decode_getfattr(xdr, res->dst_fattr, res->server); xdr 783 fs/nfs/nfs42xdr.c struct xdr_stream *xdr, xdr 790 fs/nfs/nfs42xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 793 fs/nfs/nfs42xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 796 fs/nfs/nfs42xdr.c status = decode_putfh(xdr); xdr 799 fs/nfs/nfs42xdr.c status = decode_layouterror(xdr); xdr 568 fs/nfs/nfs4trace.h const struct xdr_stream *xdr, xdr 573 fs/nfs/nfs4trace.h TP_ARGS(xdr, op, error), xdr 584 fs/nfs/nfs4trace.h const struct rpc_rqst *rqstp = xdr->rqst; xdr 71 fs/nfs/nfs4xdr.c static void encode_layoutget(struct xdr_stream *xdr, xdr 74 fs/nfs/nfs4xdr.c static int decode_layoutget(struct xdr_stream *xdr, struct rpc_rqst *req, xdr 952 fs/nfs/nfs4xdr.c static __be32 *reserve_space(struct xdr_stream *xdr, size_t nbytes) xdr 954 fs/nfs/nfs4xdr.c __be32 *p = xdr_reserve_space(xdr, nbytes); xdr 959 fs/nfs/nfs4xdr.c static void encode_opaque_fixed(struct xdr_stream *xdr, const void *buf, size_t len) xdr 961 fs/nfs/nfs4xdr.c WARN_ON_ONCE(xdr_stream_encode_opaque_fixed(xdr, buf, len) < 0); xdr 964 fs/nfs/nfs4xdr.c static void encode_string(struct xdr_stream *xdr, unsigned int len, const char *str) xdr 966 fs/nfs/nfs4xdr.c WARN_ON_ONCE(xdr_stream_encode_opaque(xdr, str, len) < 0); xdr 969 fs/nfs/nfs4xdr.c static void encode_uint32(struct xdr_stream *xdr, u32 n) xdr 971 fs/nfs/nfs4xdr.c WARN_ON_ONCE(xdr_stream_encode_u32(xdr, n) < 0); xdr 974 fs/nfs/nfs4xdr.c static void encode_uint64(struct xdr_stream *xdr, u64 n) xdr 976 fs/nfs/nfs4xdr.c WARN_ON_ONCE(xdr_stream_encode_u64(xdr, n) < 0); xdr 979 fs/nfs/nfs4xdr.c static ssize_t xdr_encode_bitmap4(struct xdr_stream *xdr, xdr 987 fs/nfs/nfs4xdr.c ret = xdr_stream_encode_uint32_array(xdr, bitmap, len); xdr 1008 fs/nfs/nfs4xdr.c static void encode_nfs4_seqid(struct xdr_stream *xdr, xdr 1012 fs/nfs/nfs4xdr.c encode_uint32(xdr, seqid->sequence->counter); xdr 1014 fs/nfs/nfs4xdr.c encode_uint32(xdr, 0); xdr 1017 fs/nfs/nfs4xdr.c static void encode_compound_hdr(struct xdr_stream *xdr, xdr 1029 fs/nfs/nfs4xdr.c encode_string(xdr, hdr->taglen, hdr->tag); xdr 1030 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 8); xdr 1036 fs/nfs/nfs4xdr.c static void encode_op_hdr(struct xdr_stream *xdr, enum nfs_opnum4 op, xdr 1040 fs/nfs/nfs4xdr.c encode_uint32(xdr, op); xdr 1051 fs/nfs/nfs4xdr.c static void encode_nfs4_stateid(struct xdr_stream *xdr, const nfs4_stateid *stateid) xdr 1053 fs/nfs/nfs4xdr.c encode_opaque_fixed(xdr, stateid, NFS4_STATEID_SIZE); xdr 1056 fs/nfs/nfs4xdr.c static void encode_nfs4_verifier(struct xdr_stream *xdr, const nfs4_verifier *verf) xdr 1058 fs/nfs/nfs4xdr.c encode_opaque_fixed(xdr, verf->data, NFS4_VERIFIER_SIZE); xdr 1069 fs/nfs/nfs4xdr.c static void encode_attrs(struct xdr_stream *xdr, const struct iattr *iap, xdr 1150 fs/nfs/nfs4xdr.c xdr_encode_bitmap4(xdr, bmval, ARRAY_SIZE(bmval)); xdr 1151 fs/nfs/nfs4xdr.c xdr_stream_encode_opaque_inline(xdr, (void **)&p, len); xdr 1191 fs/nfs/nfs4xdr.c static void encode_access(struct xdr_stream *xdr, u32 access, struct compound_hdr *hdr) xdr 1193 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_ACCESS, decode_access_maxsz, hdr); xdr 1194 fs/nfs/nfs4xdr.c encode_uint32(xdr, access); xdr 1197 fs/nfs/nfs4xdr.c static void encode_close(struct xdr_stream *xdr, const struct nfs_closeargs *arg, struct compound_hdr *hdr) xdr 1199 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_CLOSE, decode_close_maxsz, hdr); xdr 1200 fs/nfs/nfs4xdr.c encode_nfs4_seqid(xdr, arg->seqid); xdr 1201 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &arg->stateid); xdr 1204 fs/nfs/nfs4xdr.c static void encode_commit(struct xdr_stream *xdr, const struct nfs_commitargs *args, struct compound_hdr *hdr) xdr 1208 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_COMMIT, decode_commit_maxsz, hdr); xdr 1209 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 12); xdr 1214 fs/nfs/nfs4xdr.c static void encode_create(struct xdr_stream *xdr, const struct nfs4_create_arg *create, struct compound_hdr *hdr) xdr 1218 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_CREATE, decode_create_maxsz, hdr); xdr 1219 fs/nfs/nfs4xdr.c encode_uint32(xdr, create->ftype); xdr 1223 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1225 fs/nfs/nfs4xdr.c xdr_write_pages(xdr, create->u.symlink.pages, 0, xdr 1227 fs/nfs/nfs4xdr.c xdr->buf->flags |= XDRBUF_WRITE; xdr 1231 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 8); xdr 1240 fs/nfs/nfs4xdr.c encode_string(xdr, create->name->len, create->name->name); xdr 1241 fs/nfs/nfs4xdr.c encode_attrs(xdr, create->attrs, create->label, &create->umask, xdr 1245 fs/nfs/nfs4xdr.c static void encode_getattr(struct xdr_stream *xdr, xdr 1251 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_GETATTR, decode_getattr_maxsz, hdr); xdr 1258 fs/nfs/nfs4xdr.c xdr_encode_bitmap4(xdr, bitmap, len); xdr 1261 fs/nfs/nfs4xdr.c static void encode_getfattr(struct xdr_stream *xdr, const u32* bitmask, struct compound_hdr *hdr) xdr 1263 fs/nfs/nfs4xdr.c encode_getattr(xdr, nfs4_fattr_bitmap, bitmask, xdr 1267 fs/nfs/nfs4xdr.c static void encode_getfattr_open(struct xdr_stream *xdr, const u32 *bitmask, xdr 1271 fs/nfs/nfs4xdr.c encode_getattr(xdr, open_bitmap, bitmask, 3, hdr); xdr 1274 fs/nfs/nfs4xdr.c static void encode_fsinfo(struct xdr_stream *xdr, const u32* bitmask, struct compound_hdr *hdr) xdr 1276 fs/nfs/nfs4xdr.c encode_getattr(xdr, nfs4_fsinfo_bitmap, bitmask, xdr 1280 fs/nfs/nfs4xdr.c static void encode_fs_locations(struct xdr_stream *xdr, const u32* bitmask, struct compound_hdr *hdr) xdr 1282 fs/nfs/nfs4xdr.c encode_getattr(xdr, nfs4_fs_locations_bitmap, bitmask, xdr 1286 fs/nfs/nfs4xdr.c static void encode_getfh(struct xdr_stream *xdr, struct compound_hdr *hdr) xdr 1288 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_GETFH, decode_getfh_maxsz, hdr); xdr 1291 fs/nfs/nfs4xdr.c static void encode_link(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr) xdr 1293 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_LINK, decode_link_maxsz, hdr); xdr 1294 fs/nfs/nfs4xdr.c encode_string(xdr, name->len, name->name); xdr 1311 fs/nfs/nfs4xdr.c static void encode_lockowner(struct xdr_stream *xdr, const struct nfs_lowner *lowner) xdr 1315 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 32); xdr 1327 fs/nfs/nfs4xdr.c static void encode_lock(struct xdr_stream *xdr, const struct nfs_lock_args *args, struct compound_hdr *hdr) xdr 1331 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_LOCK, decode_lock_maxsz, hdr); xdr 1332 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 28); xdr 1339 fs/nfs/nfs4xdr.c encode_nfs4_seqid(xdr, args->open_seqid); xdr 1340 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &args->open_stateid); xdr 1341 fs/nfs/nfs4xdr.c encode_nfs4_seqid(xdr, args->lock_seqid); xdr 1342 fs/nfs/nfs4xdr.c encode_lockowner(xdr, &args->lock_owner); xdr 1345 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &args->lock_stateid); xdr 1346 fs/nfs/nfs4xdr.c encode_nfs4_seqid(xdr, args->lock_seqid); xdr 1350 fs/nfs/nfs4xdr.c static void encode_lockt(struct xdr_stream *xdr, const struct nfs_lockt_args *args, struct compound_hdr *hdr) xdr 1354 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_LOCKT, decode_lockt_maxsz, hdr); xdr 1355 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 20); xdr 1359 fs/nfs/nfs4xdr.c encode_lockowner(xdr, &args->lock_owner); xdr 1362 fs/nfs/nfs4xdr.c static void encode_locku(struct xdr_stream *xdr, const struct nfs_locku_args *args, struct compound_hdr *hdr) xdr 1366 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_LOCKU, decode_locku_maxsz, hdr); xdr 1367 fs/nfs/nfs4xdr.c encode_uint32(xdr, nfs4_lock_type(args->fl, 0)); xdr 1368 fs/nfs/nfs4xdr.c encode_nfs4_seqid(xdr, args->seqid); xdr 1369 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &args->stateid); xdr 1370 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 16); xdr 1375 fs/nfs/nfs4xdr.c static void encode_release_lockowner(struct xdr_stream *xdr, const struct nfs_lowner *lowner, struct compound_hdr *hdr) xdr 1377 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_RELEASE_LOCKOWNER, decode_release_lockowner_maxsz, hdr); xdr 1378 fs/nfs/nfs4xdr.c encode_lockowner(xdr, lowner); xdr 1381 fs/nfs/nfs4xdr.c static void encode_lookup(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr) xdr 1383 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_LOOKUP, decode_lookup_maxsz, hdr); xdr 1384 fs/nfs/nfs4xdr.c encode_string(xdr, name->len, name->name); xdr 1387 fs/nfs/nfs4xdr.c static void encode_lookupp(struct xdr_stream *xdr, struct compound_hdr *hdr) xdr 1389 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_LOOKUPP, decode_lookupp_maxsz, hdr); xdr 1392 fs/nfs/nfs4xdr.c static void encode_share_access(struct xdr_stream *xdr, u32 share_access) xdr 1396 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 8); xdr 1401 fs/nfs/nfs4xdr.c static inline void encode_openhdr(struct xdr_stream *xdr, const struct nfs_openargs *arg) xdr 1408 fs/nfs/nfs4xdr.c encode_nfs4_seqid(xdr, arg->seqid); xdr 1409 fs/nfs/nfs4xdr.c encode_share_access(xdr, arg->share_access); xdr 1410 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 36); xdr 1419 fs/nfs/nfs4xdr.c static inline void encode_createmode(struct xdr_stream *xdr, const struct nfs_openargs *arg) xdr 1423 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1427 fs/nfs/nfs4xdr.c encode_attrs(xdr, arg->u.attrs, arg->label, &arg->umask, xdr 1432 fs/nfs/nfs4xdr.c encode_attrs(xdr, arg->u.attrs, arg->label, &arg->umask, xdr 1437 fs/nfs/nfs4xdr.c encode_nfs4_verifier(xdr, &arg->u.verifier); xdr 1441 fs/nfs/nfs4xdr.c encode_nfs4_verifier(xdr, &arg->u.verifier); xdr 1442 fs/nfs/nfs4xdr.c encode_attrs(xdr, arg->u.attrs, arg->label, &arg->umask, xdr 1447 fs/nfs/nfs4xdr.c static void encode_opentype(struct xdr_stream *xdr, const struct nfs_openargs *arg) xdr 1451 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1458 fs/nfs/nfs4xdr.c encode_createmode(xdr, arg); xdr 1462 fs/nfs/nfs4xdr.c static inline void encode_delegation_type(struct xdr_stream *xdr, fmode_t delegation_type) xdr 1466 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1482 fs/nfs/nfs4xdr.c static inline void encode_claim_null(struct xdr_stream *xdr, const struct qstr *name) xdr 1486 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1488 fs/nfs/nfs4xdr.c encode_string(xdr, name->len, name->name); xdr 1491 fs/nfs/nfs4xdr.c static inline void encode_claim_previous(struct xdr_stream *xdr, fmode_t type) xdr 1495 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1497 fs/nfs/nfs4xdr.c encode_delegation_type(xdr, type); xdr 1500 fs/nfs/nfs4xdr.c static inline void encode_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const nfs4_stateid *stateid) xdr 1504 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1506 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, stateid); xdr 1507 fs/nfs/nfs4xdr.c encode_string(xdr, name->len, name->name); xdr 1510 fs/nfs/nfs4xdr.c static inline void encode_claim_fh(struct xdr_stream *xdr) xdr 1514 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1518 fs/nfs/nfs4xdr.c static inline void encode_claim_delegate_cur_fh(struct xdr_stream *xdr, const nfs4_stateid *stateid) xdr 1522 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1524 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, stateid); xdr 1527 fs/nfs/nfs4xdr.c static void encode_open(struct xdr_stream *xdr, const struct nfs_openargs *arg, struct compound_hdr *hdr) xdr 1529 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_OPEN, decode_open_maxsz, hdr); xdr 1530 fs/nfs/nfs4xdr.c encode_openhdr(xdr, arg); xdr 1531 fs/nfs/nfs4xdr.c encode_opentype(xdr, arg); xdr 1534 fs/nfs/nfs4xdr.c encode_claim_null(xdr, arg->name); xdr 1537 fs/nfs/nfs4xdr.c encode_claim_previous(xdr, arg->u.delegation_type); xdr 1540 fs/nfs/nfs4xdr.c encode_claim_delegate_cur(xdr, arg->name, &arg->u.delegation); xdr 1543 fs/nfs/nfs4xdr.c encode_claim_fh(xdr); xdr 1546 fs/nfs/nfs4xdr.c encode_claim_delegate_cur_fh(xdr, &arg->u.delegation); xdr 1553 fs/nfs/nfs4xdr.c static void encode_open_confirm(struct xdr_stream *xdr, const struct nfs_open_confirmargs *arg, struct compound_hdr *hdr) xdr 1555 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_OPEN_CONFIRM, decode_open_confirm_maxsz, hdr); xdr 1556 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, arg->stateid); xdr 1557 fs/nfs/nfs4xdr.c encode_nfs4_seqid(xdr, arg->seqid); xdr 1560 fs/nfs/nfs4xdr.c static void encode_open_downgrade(struct xdr_stream *xdr, const struct nfs_closeargs *arg, struct compound_hdr *hdr) xdr 1562 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_OPEN_DOWNGRADE, decode_open_downgrade_maxsz, hdr); xdr 1563 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &arg->stateid); xdr 1564 fs/nfs/nfs4xdr.c encode_nfs4_seqid(xdr, arg->seqid); xdr 1565 fs/nfs/nfs4xdr.c encode_share_access(xdr, arg->share_access); xdr 1569 fs/nfs/nfs4xdr.c encode_putfh(struct xdr_stream *xdr, const struct nfs_fh *fh, struct compound_hdr *hdr) xdr 1571 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_PUTFH, decode_putfh_maxsz, hdr); xdr 1572 fs/nfs/nfs4xdr.c encode_string(xdr, fh->size, fh->data); xdr 1575 fs/nfs/nfs4xdr.c static void encode_putrootfh(struct xdr_stream *xdr, struct compound_hdr *hdr) xdr 1577 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_PUTROOTFH, decode_putrootfh_maxsz, hdr); xdr 1580 fs/nfs/nfs4xdr.c static void encode_read(struct xdr_stream *xdr, const struct nfs_pgio_args *args, xdr 1585 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_READ, decode_read_maxsz, hdr); xdr 1586 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &args->stateid); xdr 1588 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 12); xdr 1593 fs/nfs/nfs4xdr.c static void encode_readdir(struct xdr_stream *xdr, const struct nfs4_readdir_arg *readdir, struct rpc_rqst *req, struct compound_hdr *hdr) xdr 1623 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_READDIR, decode_readdir_maxsz, hdr); xdr 1624 fs/nfs/nfs4xdr.c encode_uint64(xdr, readdir->cookie); xdr 1625 fs/nfs/nfs4xdr.c encode_nfs4_verifier(xdr, &readdir->verifier); xdr 1626 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 12 + (attrlen << 2)); xdr 1643 fs/nfs/nfs4xdr.c static void encode_readlink(struct xdr_stream *xdr, const struct nfs4_readlink *readlink, struct rpc_rqst *req, struct compound_hdr *hdr) xdr 1645 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_READLINK, decode_readlink_maxsz, hdr); xdr 1648 fs/nfs/nfs4xdr.c static void encode_remove(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr) xdr 1650 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_REMOVE, decode_remove_maxsz, hdr); xdr 1651 fs/nfs/nfs4xdr.c encode_string(xdr, name->len, name->name); xdr 1654 fs/nfs/nfs4xdr.c static void encode_rename(struct xdr_stream *xdr, const struct qstr *oldname, const struct qstr *newname, struct compound_hdr *hdr) xdr 1656 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_RENAME, decode_rename_maxsz, hdr); xdr 1657 fs/nfs/nfs4xdr.c encode_string(xdr, oldname->len, oldname->name); xdr 1658 fs/nfs/nfs4xdr.c encode_string(xdr, newname->len, newname->name); xdr 1661 fs/nfs/nfs4xdr.c static void encode_renew(struct xdr_stream *xdr, clientid4 clid, xdr 1664 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_RENEW, decode_renew_maxsz, hdr); xdr 1665 fs/nfs/nfs4xdr.c encode_uint64(xdr, clid); xdr 1669 fs/nfs/nfs4xdr.c encode_restorefh(struct xdr_stream *xdr, struct compound_hdr *hdr) xdr 1671 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_RESTOREFH, decode_restorefh_maxsz, hdr); xdr 1675 fs/nfs/nfs4xdr.c encode_setacl(struct xdr_stream *xdr, const struct nfs_setaclargs *arg, xdr 1680 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_SETATTR, decode_setacl_maxsz, hdr); xdr 1681 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &zero_stateid); xdr 1682 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 2*4); xdr 1685 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1687 fs/nfs/nfs4xdr.c xdr_write_pages(xdr, arg->acl_pages, 0, arg->acl_len); xdr 1691 fs/nfs/nfs4xdr.c encode_savefh(struct xdr_stream *xdr, struct compound_hdr *hdr) xdr 1693 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_SAVEFH, decode_savefh_maxsz, hdr); xdr 1696 fs/nfs/nfs4xdr.c static void encode_setattr(struct xdr_stream *xdr, const struct nfs_setattrargs *arg, const struct nfs_server *server, struct compound_hdr *hdr) xdr 1698 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_SETATTR, decode_setattr_maxsz, hdr); xdr 1699 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &arg->stateid); xdr 1700 fs/nfs/nfs4xdr.c encode_attrs(xdr, arg->iap, arg->label, NULL, server, xdr 1704 fs/nfs/nfs4xdr.c static void encode_setclientid(struct xdr_stream *xdr, const struct nfs4_setclientid *setclientid, struct compound_hdr *hdr) xdr 1708 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_SETCLIENTID, decode_setclientid_maxsz, hdr); xdr 1709 fs/nfs/nfs4xdr.c encode_nfs4_verifier(xdr, setclientid->sc_verifier); xdr 1711 fs/nfs/nfs4xdr.c encode_string(xdr, strlen(setclientid->sc_clnt->cl_owner_id), xdr 1713 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1715 fs/nfs/nfs4xdr.c encode_string(xdr, setclientid->sc_netid_len, setclientid->sc_netid); xdr 1716 fs/nfs/nfs4xdr.c encode_string(xdr, setclientid->sc_uaddr_len, setclientid->sc_uaddr); xdr 1717 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4); xdr 1721 fs/nfs/nfs4xdr.c static void encode_setclientid_confirm(struct xdr_stream *xdr, const struct nfs4_setclientid_res *arg, struct compound_hdr *hdr) xdr 1723 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_SETCLIENTID_CONFIRM, xdr 1725 fs/nfs/nfs4xdr.c encode_uint64(xdr, arg->clientid); xdr 1726 fs/nfs/nfs4xdr.c encode_nfs4_verifier(xdr, &arg->confirm); xdr 1729 fs/nfs/nfs4xdr.c static void encode_write(struct xdr_stream *xdr, const struct nfs_pgio_args *args, xdr 1734 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_WRITE, decode_write_maxsz, hdr); xdr 1735 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &args->stateid); xdr 1737 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 16); xdr 1742 fs/nfs/nfs4xdr.c xdr_write_pages(xdr, args->pages, args->pgbase, args->count); xdr 1745 fs/nfs/nfs4xdr.c static void encode_delegreturn(struct xdr_stream *xdr, const nfs4_stateid *stateid, struct compound_hdr *hdr) xdr 1747 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_DELEGRETURN, decode_delegreturn_maxsz, hdr); xdr 1748 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, stateid); xdr 1751 fs/nfs/nfs4xdr.c static void encode_secinfo(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr) xdr 1753 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_SECINFO, decode_secinfo_maxsz, hdr); xdr 1754 fs/nfs/nfs4xdr.c encode_string(xdr, name->len, name->name); xdr 1759 fs/nfs/nfs4xdr.c static void encode_bind_conn_to_session(struct xdr_stream *xdr, xdr 1765 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_BIND_CONN_TO_SESSION, xdr 1767 fs/nfs/nfs4xdr.c encode_opaque_fixed(xdr, args->sessionid.data, NFS4_MAX_SESSIONID_LEN); xdr 1768 fs/nfs/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 1773 fs/nfs/nfs4xdr.c static void encode_op_map(struct xdr_stream *xdr, const struct nfs4_op_map *op_map) xdr 1776 fs/nfs/nfs4xdr.c encode_uint32(xdr, NFS4_OP_MAP_NUM_WORDS); xdr 1778 fs/nfs/nfs4xdr.c encode_uint32(xdr, op_map->u.words[i]); xdr 1781 fs/nfs/nfs4xdr.c static void encode_exchange_id(struct xdr_stream *xdr, xdr 1789 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_EXCHANGE_ID, decode_exchange_id_maxsz, hdr); xdr 1790 fs/nfs/nfs4xdr.c encode_nfs4_verifier(xdr, &args->verifier); xdr 1792 fs/nfs/nfs4xdr.c encode_string(xdr, strlen(args->client->cl_owner_id), xdr 1795 fs/nfs/nfs4xdr.c encode_uint32(xdr, args->flags); xdr 1796 fs/nfs/nfs4xdr.c encode_uint32(xdr, args->state_protect.how); xdr 1802 fs/nfs/nfs4xdr.c encode_op_map(xdr, &args->state_protect.enforce); xdr 1803 fs/nfs/nfs4xdr.c encode_op_map(xdr, &args->state_protect.allow); xdr 1819 fs/nfs/nfs4xdr.c encode_uint32(xdr, 1); /* implementation id array length=1 */ xdr 1821 fs/nfs/nfs4xdr.c encode_string(xdr, xdr 1824 fs/nfs/nfs4xdr.c encode_string(xdr, len, impl_name); xdr 1826 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 12); xdr 1830 fs/nfs/nfs4xdr.c encode_uint32(xdr, 0); /* implementation id array length=0 */ xdr 1833 fs/nfs/nfs4xdr.c static void encode_create_session(struct xdr_stream *xdr, xdr 1850 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_CREATE_SESSION, decode_create_session_maxsz, hdr); xdr 1851 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 16 + 2*28 + 20 + clnt->cl_nodelen + 12); xdr 1886 fs/nfs/nfs4xdr.c static void encode_destroy_session(struct xdr_stream *xdr, xdr 1890 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_DESTROY_SESSION, decode_destroy_session_maxsz, hdr); xdr 1891 fs/nfs/nfs4xdr.c encode_opaque_fixed(xdr, session->sess_id.data, NFS4_MAX_SESSIONID_LEN); xdr 1894 fs/nfs/nfs4xdr.c static void encode_destroy_clientid(struct xdr_stream *xdr, xdr 1898 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_DESTROY_CLIENTID, decode_destroy_clientid_maxsz, hdr); xdr 1899 fs/nfs/nfs4xdr.c encode_uint64(xdr, clientid); xdr 1902 fs/nfs/nfs4xdr.c static void encode_reclaim_complete(struct xdr_stream *xdr, xdr 1906 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_RECLAIM_COMPLETE, decode_reclaim_complete_maxsz, hdr); xdr 1907 fs/nfs/nfs4xdr.c encode_uint32(xdr, args->one_fs); xdr 1911 fs/nfs/nfs4xdr.c static void encode_sequence(struct xdr_stream *xdr, xdr 1926 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_SEQUENCE, decode_sequence_maxsz, hdr); xdr 1940 fs/nfs/nfs4xdr.c p = reserve_space(xdr, NFS4_MAX_SESSIONID_LEN + 16); xdr 1951 fs/nfs/nfs4xdr.c encode_getdeviceinfo(struct xdr_stream *xdr, xdr 1957 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_GETDEVICEINFO, decode_getdeviceinfo_maxsz, hdr); xdr 1958 fs/nfs/nfs4xdr.c p = reserve_space(xdr, NFS4_DEVICEID4_SIZE + 4 + 4); xdr 1964 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 4 + 4); xdr 1970 fs/nfs/nfs4xdr.c encode_layoutget(struct xdr_stream *xdr, xdr 1976 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_LAYOUTGET, decode_layoutget_maxsz, hdr); xdr 1977 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 36); xdr 1984 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &args->stateid); xdr 1985 fs/nfs/nfs4xdr.c encode_uint32(xdr, args->maxcount); xdr 1997 fs/nfs/nfs4xdr.c encode_layoutcommit(struct xdr_stream *xdr, xdr 2007 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_LAYOUTCOMMIT, decode_layoutcommit_maxsz, hdr); xdr 2008 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 20); xdr 2013 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &args->stateid); xdr 2015 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 20); xdr 2019 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 12); xdr 2025 fs/nfs/nfs4xdr.c encode_uint32(xdr, args->layoutupdate_len); xdr 2027 fs/nfs/nfs4xdr.c xdr_write_pages(xdr, args->layoutupdate_pages, 0, xdr 2034 fs/nfs/nfs4xdr.c encode_layoutreturn(struct xdr_stream *xdr, xdr 2040 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_LAYOUTRETURN, decode_layoutreturn_maxsz, hdr); xdr 2041 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 16); xdr 2046 fs/nfs/nfs4xdr.c p = reserve_space(xdr, 16); xdr 2050 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &args->stateid); xdr 2053 fs/nfs/nfs4xdr.c args->ld_private->ops->encode(xdr, args, args->ld_private); xdr 2055 fs/nfs/nfs4xdr.c encode_uint32(xdr, 0); xdr 2059 fs/nfs/nfs4xdr.c encode_secinfo_no_name(struct xdr_stream *xdr, xdr 2063 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_SECINFO_NO_NAME, decode_secinfo_no_name_maxsz, hdr); xdr 2064 fs/nfs/nfs4xdr.c encode_uint32(xdr, args->style); xdr 2068 fs/nfs/nfs4xdr.c static void encode_test_stateid(struct xdr_stream *xdr, xdr 2072 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_TEST_STATEID, decode_test_stateid_maxsz, hdr); xdr 2073 fs/nfs/nfs4xdr.c encode_uint32(xdr, 1); xdr 2074 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, args->stateid); xdr 2077 fs/nfs/nfs4xdr.c static void encode_free_stateid(struct xdr_stream *xdr, xdr 2081 fs/nfs/nfs4xdr.c encode_op_hdr(xdr, OP_FREE_STATEID, decode_free_stateid_maxsz, hdr); xdr 2082 fs/nfs/nfs4xdr.c encode_nfs4_stateid(xdr, &args->stateid); xdr 2086 fs/nfs/nfs4xdr.c encode_layoutreturn(struct xdr_stream *xdr, xdr 2093 fs/nfs/nfs4xdr.c encode_layoutget(struct xdr_stream *xdr, xdr 2117 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_access(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2125 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2126 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2127 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2128 fs/nfs/nfs4xdr.c encode_access(xdr, args->access, &hdr); xdr 2130 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2137 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_lookup(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2145 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2146 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2147 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->dir_fh, &hdr); xdr 2148 fs/nfs/nfs4xdr.c encode_lookup(xdr, args->name, &hdr); xdr 2149 fs/nfs/nfs4xdr.c encode_getfh(xdr, &hdr); xdr 2150 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2157 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_lookupp(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2165 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2166 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2167 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2168 fs/nfs/nfs4xdr.c encode_lookupp(xdr, &hdr); xdr 2169 fs/nfs/nfs4xdr.c encode_getfh(xdr, &hdr); xdr 2170 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2178 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2186 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2187 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2188 fs/nfs/nfs4xdr.c encode_putrootfh(xdr, &hdr); xdr 2189 fs/nfs/nfs4xdr.c encode_getfh(xdr, &hdr); xdr 2190 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2197 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_remove(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2205 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2206 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2207 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2208 fs/nfs/nfs4xdr.c encode_remove(xdr, &args->name, &hdr); xdr 2215 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_rename(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2223 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2224 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2225 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->old_dir, &hdr); xdr 2226 fs/nfs/nfs4xdr.c encode_savefh(xdr, &hdr); xdr 2227 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->new_dir, &hdr); xdr 2228 fs/nfs/nfs4xdr.c encode_rename(xdr, args->old_name, args->new_name, &hdr); xdr 2235 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_link(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2243 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2244 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2245 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2246 fs/nfs/nfs4xdr.c encode_savefh(xdr, &hdr); xdr 2247 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->dir_fh, &hdr); xdr 2248 fs/nfs/nfs4xdr.c encode_link(xdr, args->name, &hdr); xdr 2249 fs/nfs/nfs4xdr.c encode_restorefh(xdr, &hdr); xdr 2250 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2257 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_create(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2265 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2266 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2267 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->dir_fh, &hdr); xdr 2268 fs/nfs/nfs4xdr.c encode_create(xdr, args, &hdr); xdr 2269 fs/nfs/nfs4xdr.c encode_getfh(xdr, &hdr); xdr 2270 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2277 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_symlink(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2282 fs/nfs/nfs4xdr.c nfs4_xdr_enc_create(req, xdr, args); xdr 2288 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_getattr(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2296 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2297 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2298 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2299 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2306 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_close(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2314 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2315 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2316 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2318 fs/nfs/nfs4xdr.c encode_layoutreturn(xdr, args->lr_args, &hdr); xdr 2320 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2321 fs/nfs/nfs4xdr.c encode_close(xdr, args, &hdr); xdr 2328 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_open(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2336 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2337 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2338 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2339 fs/nfs/nfs4xdr.c encode_open(xdr, args, &hdr); xdr 2340 fs/nfs/nfs4xdr.c encode_getfh(xdr, &hdr); xdr 2342 fs/nfs/nfs4xdr.c encode_access(xdr, args->access, &hdr); xdr 2343 fs/nfs/nfs4xdr.c encode_getfattr_open(xdr, args->bitmask, args->open_bitmap, &hdr); xdr 2345 fs/nfs/nfs4xdr.c encode_layoutget(xdr, args->lg_args, &hdr); xdr 2357 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2365 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2366 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2367 fs/nfs/nfs4xdr.c encode_open_confirm(xdr, args, &hdr); xdr 2375 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2383 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2384 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2385 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2386 fs/nfs/nfs4xdr.c encode_open(xdr, args, &hdr); xdr 2388 fs/nfs/nfs4xdr.c encode_access(xdr, args->access, &hdr); xdr 2389 fs/nfs/nfs4xdr.c encode_getfattr_open(xdr, args->bitmask, args->open_bitmap, &hdr); xdr 2391 fs/nfs/nfs4xdr.c encode_layoutget(xdr, args->lg_args, &hdr); xdr 2403 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2411 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2412 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2413 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2415 fs/nfs/nfs4xdr.c encode_layoutreturn(xdr, args->lr_args, &hdr); xdr 2416 fs/nfs/nfs4xdr.c encode_open_downgrade(xdr, args, &hdr); xdr 2423 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_lock(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2431 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2432 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2433 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2434 fs/nfs/nfs4xdr.c encode_lock(xdr, args, &hdr); xdr 2441 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_lockt(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2449 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2450 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2451 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2452 fs/nfs/nfs4xdr.c encode_lockt(xdr, args, &hdr); xdr 2459 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_locku(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2467 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2468 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2469 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2470 fs/nfs/nfs4xdr.c encode_locku(xdr, args, &hdr); xdr 2475 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2483 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2484 fs/nfs/nfs4xdr.c encode_release_lockowner(xdr, &args->lock_owner, &hdr); xdr 2491 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_readlink(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2499 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2500 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2501 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2502 fs/nfs/nfs4xdr.c encode_readlink(xdr, args, req, &hdr); xdr 2512 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_readdir(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2520 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2521 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2522 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2523 fs/nfs/nfs4xdr.c encode_readdir(xdr, args, req, &hdr); xdr 2533 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_read(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2541 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2542 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2543 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2544 fs/nfs/nfs4xdr.c encode_read(xdr, args, &hdr); xdr 2555 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_setattr(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2563 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2564 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2565 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2566 fs/nfs/nfs4xdr.c encode_setattr(xdr, args, args->server, &hdr); xdr 2567 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2574 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_getacl(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2586 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2587 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2588 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2590 fs/nfs/nfs4xdr.c encode_getattr(xdr, nfs4_acl_bitmap, NULL, xdr 2601 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_write(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2609 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2610 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2611 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2612 fs/nfs/nfs4xdr.c encode_write(xdr, args, &hdr); xdr 2615 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2622 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_commit(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2630 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2631 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2632 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2633 fs/nfs/nfs4xdr.c encode_commit(xdr, args, &hdr); xdr 2640 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_fsinfo(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2648 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2649 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2650 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2651 fs/nfs/nfs4xdr.c encode_fsinfo(xdr, args->bitmask, &hdr); xdr 2658 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_pathconf(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2666 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2667 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2668 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2669 fs/nfs/nfs4xdr.c encode_getattr(xdr, nfs4_pathconf_bitmap, args->bitmask, xdr 2677 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_statfs(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2685 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2686 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2687 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2688 fs/nfs/nfs4xdr.c encode_getattr(xdr, nfs4_statfs_bitmap, args->bitmask, xdr 2697 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2706 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2707 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2708 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fhandle, &hdr); xdr 2709 fs/nfs/nfs4xdr.c encode_getattr(xdr, bitmask, NULL, 3, &hdr); xdr 2716 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_renew(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2725 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2726 fs/nfs/nfs4xdr.c encode_renew(xdr, clp->cl_clientid, &hdr); xdr 2734 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2742 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2743 fs/nfs/nfs4xdr.c encode_setclientid(xdr, sc, &hdr); xdr 2751 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2759 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2760 fs/nfs/nfs4xdr.c encode_setclientid_confirm(xdr, arg, &hdr); xdr 2768 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2776 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2777 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2778 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fhandle, &hdr); xdr 2780 fs/nfs/nfs4xdr.c encode_layoutreturn(xdr, args->lr_args, &hdr); xdr 2782 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 2783 fs/nfs/nfs4xdr.c encode_delegreturn(xdr, args->stateid, &hdr); xdr 2791 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2800 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2801 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2803 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2805 fs/nfs/nfs4xdr.c encode_fs_locations(xdr, args->bitmask, &hdr); xdr 2807 fs/nfs/nfs4xdr.c encode_renew(xdr, args->clientid, &hdr); xdr 2809 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->dir_fh, &hdr); xdr 2810 fs/nfs/nfs4xdr.c encode_lookup(xdr, args->name, &hdr); xdr 2812 fs/nfs/nfs4xdr.c encode_fs_locations(xdr, args->bitmask, &hdr); xdr 2824 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2832 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2833 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2834 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->dir_fh, &hdr); xdr 2835 fs/nfs/nfs4xdr.c encode_secinfo(xdr, args->name, &hdr); xdr 2843 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2851 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2852 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 2853 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 2854 fs/nfs/nfs4xdr.c encode_getfh(xdr, &hdr); xdr 2856 fs/nfs/nfs4xdr.c encode_renew(xdr, args->clientid, &hdr); xdr 2865 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2873 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2874 fs/nfs/nfs4xdr.c encode_bind_conn_to_session(xdr, args, &hdr); xdr 2882 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2890 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2891 fs/nfs/nfs4xdr.c encode_exchange_id(xdr, args, &hdr); xdr 2899 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2907 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2908 fs/nfs/nfs4xdr.c encode_create_session(xdr, args, &hdr); xdr 2916 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2924 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2925 fs/nfs/nfs4xdr.c encode_destroy_session(xdr, session, &hdr); xdr 2933 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2941 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2942 fs/nfs/nfs4xdr.c encode_destroy_clientid(xdr, clp->cl_clientid, &hdr); xdr 2949 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_sequence(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 2957 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2958 fs/nfs/nfs4xdr.c encode_sequence(xdr, args, &hdr); xdr 2968 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2977 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2978 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->la_seq_args, &hdr); xdr 2979 fs/nfs/nfs4xdr.c encode_putrootfh(xdr, &hdr); xdr 2980 fs/nfs/nfs4xdr.c encode_fsinfo(xdr, lease_bitmap, &hdr); xdr 2990 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 2998 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 2999 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 3000 fs/nfs/nfs4xdr.c encode_reclaim_complete(xdr, args, &hdr); xdr 3008 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 3016 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 3017 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 3018 fs/nfs/nfs4xdr.c encode_getdeviceinfo(xdr, args, &hdr); xdr 3031 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 3039 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 3040 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 3041 fs/nfs/nfs4xdr.c encode_putfh(xdr, NFS_FH(args->inode), &hdr); xdr 3042 fs/nfs/nfs4xdr.c encode_layoutget(xdr, args, &hdr); xdr 3053 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 3063 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 3064 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 3065 fs/nfs/nfs4xdr.c encode_putfh(xdr, NFS_FH(args->inode), &hdr); xdr 3066 fs/nfs/nfs4xdr.c encode_layoutcommit(xdr, data->args.inode, args, &hdr); xdr 3067 fs/nfs/nfs4xdr.c encode_getfattr(xdr, args->bitmask, &hdr); xdr 3075 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 3083 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 3084 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 3085 fs/nfs/nfs4xdr.c encode_putfh(xdr, NFS_FH(args->inode), &hdr); xdr 3086 fs/nfs/nfs4xdr.c encode_layoutreturn(xdr, args, &hdr); xdr 3094 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 3102 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 3103 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 3104 fs/nfs/nfs4xdr.c encode_putrootfh(xdr, &hdr); xdr 3105 fs/nfs/nfs4xdr.c encode_secinfo_no_name(xdr, args, &hdr); xdr 3113 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 3121 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 3122 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 3123 fs/nfs/nfs4xdr.c encode_test_stateid(xdr, args, &hdr); xdr 3131 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 3139 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 3140 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 3141 fs/nfs/nfs4xdr.c encode_free_stateid(xdr, args, &hdr); xdr 3146 fs/nfs/nfs4xdr.c static int decode_opaque_inline(struct xdr_stream *xdr, unsigned int *len, char **string) xdr 3148 fs/nfs/nfs4xdr.c ssize_t ret = xdr_stream_decode_opaque_inline(xdr, (void **)string, xdr 3156 fs/nfs/nfs4xdr.c static int decode_compound_hdr(struct xdr_stream *xdr, struct compound_hdr *hdr) xdr 3160 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3166 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, hdr->taglen + 4); xdr 3177 fs/nfs/nfs4xdr.c static bool __decode_op_hdr(struct xdr_stream *xdr, enum nfs_opnum4 expected, xdr 3184 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3196 fs/nfs/nfs4xdr.c trace_nfs4_xdr_status(xdr, opnum, nfserr); xdr 3210 fs/nfs/nfs4xdr.c static int decode_op_hdr(struct xdr_stream *xdr, enum nfs_opnum4 expected) xdr 3214 fs/nfs/nfs4xdr.c __decode_op_hdr(xdr, expected, &retval); xdr 3219 fs/nfs/nfs4xdr.c static int decode_ace(struct xdr_stream *xdr, void *ace) xdr 3225 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 12); xdr 3228 fs/nfs/nfs4xdr.c return decode_opaque_inline(xdr, &strlen, &str); xdr 3232 fs/nfs/nfs4xdr.c decode_bitmap4(struct xdr_stream *xdr, uint32_t *bitmap, size_t sz) xdr 3236 fs/nfs/nfs4xdr.c ret = xdr_stream_decode_uint32_array(xdr, bitmap, sz); xdr 3244 fs/nfs/nfs4xdr.c static int decode_attr_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) xdr 3247 fs/nfs/nfs4xdr.c ret = decode_bitmap4(xdr, bitmap, 3); xdr 3251 fs/nfs/nfs4xdr.c static int decode_attr_length(struct xdr_stream *xdr, uint32_t *attrlen, unsigned int *savep) xdr 3255 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3259 fs/nfs/nfs4xdr.c *savep = xdr_stream_pos(xdr); xdr 3263 fs/nfs/nfs4xdr.c static int decode_attr_supported(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *bitmask) xdr 3267 fs/nfs/nfs4xdr.c ret = decode_attr_bitmap(xdr, bitmask); xdr 3278 fs/nfs/nfs4xdr.c static int decode_attr_type(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *type) xdr 3287 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3302 fs/nfs/nfs4xdr.c static int decode_attr_fh_expire_type(struct xdr_stream *xdr, xdr 3311 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3321 fs/nfs/nfs4xdr.c static int decode_attr_change(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *change) xdr 3330 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3342 fs/nfs/nfs4xdr.c static int decode_attr_size(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *size) xdr 3351 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3362 fs/nfs/nfs4xdr.c static int decode_attr_link_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) xdr 3370 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3380 fs/nfs/nfs4xdr.c static int decode_attr_symlink_support(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) xdr 3388 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3398 fs/nfs/nfs4xdr.c static int decode_attr_fsid(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fsid *fsid) xdr 3408 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 16); xdr 3422 fs/nfs/nfs4xdr.c static int decode_attr_lease_time(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) xdr 3430 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3440 fs/nfs/nfs4xdr.c static int decode_attr_error(struct xdr_stream *xdr, uint32_t *bitmap, int32_t *res) xdr 3447 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3456 fs/nfs/nfs4xdr.c static int decode_attr_exclcreat_supported(struct xdr_stream *xdr, xdr 3461 fs/nfs/nfs4xdr.c ret = decode_attr_bitmap(xdr, bitmask); xdr 3472 fs/nfs/nfs4xdr.c static int decode_attr_filehandle(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fh *fh) xdr 3483 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3489 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, len); xdr 3501 fs/nfs/nfs4xdr.c static int decode_attr_aclsupport(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) xdr 3509 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3519 fs/nfs/nfs4xdr.c static int decode_attr_fileid(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *fileid) xdr 3528 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3539 fs/nfs/nfs4xdr.c static int decode_attr_mounted_on_fileid(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *fileid) xdr 3548 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3559 fs/nfs/nfs4xdr.c static int decode_attr_files_avail(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) xdr 3568 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3578 fs/nfs/nfs4xdr.c static int decode_attr_files_free(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) xdr 3587 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3597 fs/nfs/nfs4xdr.c static int decode_attr_files_total(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) xdr 3606 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3616 fs/nfs/nfs4xdr.c static int decode_pathname(struct xdr_stream *xdr, struct nfs4_pathname *path) xdr 3622 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3635 fs/nfs/nfs4xdr.c status = decode_opaque_inline(xdr, &component->len, &component->data); xdr 3658 fs/nfs/nfs4xdr.c static int decode_attr_fs_locations(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs4_fs_locations *res) xdr 3675 fs/nfs/nfs4xdr.c status = decode_pathname(xdr, &res->fs_path); xdr 3678 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3691 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3710 fs/nfs/nfs4xdr.c status = decode_opaque_inline(xdr, &len, &data); xdr 3717 fs/nfs/nfs4xdr.c status = decode_opaque_inline(xdr, &server->len, &server->data); xdr 3722 fs/nfs/nfs4xdr.c status = decode_pathname(xdr, &loc->rootpath); xdr 3736 fs/nfs/nfs4xdr.c static int decode_attr_maxfilesize(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) xdr 3745 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3755 fs/nfs/nfs4xdr.c static int decode_attr_maxlink(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *maxlink) xdr 3764 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3774 fs/nfs/nfs4xdr.c static int decode_attr_maxname(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *maxname) xdr 3783 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3793 fs/nfs/nfs4xdr.c static int decode_attr_maxread(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) xdr 3803 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3816 fs/nfs/nfs4xdr.c static int decode_attr_maxwrite(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *res) xdr 3826 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3839 fs/nfs/nfs4xdr.c static int decode_attr_mode(struct xdr_stream *xdr, uint32_t *bitmap, umode_t *mode) xdr 3849 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3861 fs/nfs/nfs4xdr.c static int decode_attr_nlink(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *nlink) xdr 3870 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 3881 fs/nfs/nfs4xdr.c static ssize_t decode_nfs4_string(struct xdr_stream *xdr, xdr 3886 fs/nfs/nfs4xdr.c ret = xdr_stream_decode_string_dup(xdr, &name->data, xdr 3894 fs/nfs/nfs4xdr.c static int decode_attr_owner(struct xdr_stream *xdr, uint32_t *bitmap, xdr 3909 fs/nfs/nfs4xdr.c len = decode_nfs4_string(xdr, owner_name, GFP_NOIO); xdr 3915 fs/nfs/nfs4xdr.c len = xdr_stream_decode_opaque_inline(xdr, (void **)&p, xdr 3928 fs/nfs/nfs4xdr.c static int decode_attr_group(struct xdr_stream *xdr, uint32_t *bitmap, xdr 3943 fs/nfs/nfs4xdr.c len = decode_nfs4_string(xdr, group_name, GFP_NOIO); xdr 3949 fs/nfs/nfs4xdr.c len = xdr_stream_decode_opaque_inline(xdr, (void **)&p, xdr 3962 fs/nfs/nfs4xdr.c static int decode_attr_rdev(struct xdr_stream *xdr, uint32_t *bitmap, dev_t *rdev) xdr 3974 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 3989 fs/nfs/nfs4xdr.c static int decode_attr_space_avail(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) xdr 3998 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 4008 fs/nfs/nfs4xdr.c static int decode_attr_space_free(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) xdr 4017 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 4027 fs/nfs/nfs4xdr.c static int decode_attr_space_total(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *res) xdr 4036 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 4046 fs/nfs/nfs4xdr.c static int decode_attr_space_used(struct xdr_stream *xdr, uint32_t *bitmap, uint64_t *used) xdr 4055 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 4078 fs/nfs/nfs4xdr.c static int decode_attr_time(struct xdr_stream *xdr, struct timespec *time) xdr 4082 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, nfstime4_maxsz << 2); xdr 4089 fs/nfs/nfs4xdr.c static int decode_attr_time_access(struct xdr_stream *xdr, uint32_t *bitmap, struct timespec *time) xdr 4098 fs/nfs/nfs4xdr.c status = decode_attr_time(xdr, time); xdr 4107 fs/nfs/nfs4xdr.c static int decode_attr_time_metadata(struct xdr_stream *xdr, uint32_t *bitmap, struct timespec *time) xdr 4116 fs/nfs/nfs4xdr.c status = decode_attr_time(xdr, time); xdr 4125 fs/nfs/nfs4xdr.c static int decode_attr_time_delta(struct xdr_stream *xdr, uint32_t *bitmap, xdr 4135 fs/nfs/nfs4xdr.c status = decode_attr_time(xdr, time); xdr 4143 fs/nfs/nfs4xdr.c static int decode_attr_security_label(struct xdr_stream *xdr, uint32_t *bitmap, xdr 4155 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4159 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4163 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4167 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, len); xdr 4189 fs/nfs/nfs4xdr.c static int decode_attr_time_modify(struct xdr_stream *xdr, uint32_t *bitmap, struct timespec *time) xdr 4198 fs/nfs/nfs4xdr.c status = decode_attr_time(xdr, time); xdr 4207 fs/nfs/nfs4xdr.c static int verify_attr_len(struct xdr_stream *xdr, unsigned int savep, uint32_t attrlen) xdr 4210 fs/nfs/nfs4xdr.c unsigned int nwords = (xdr_stream_pos(xdr) - savep) >> 2; xdr 4224 fs/nfs/nfs4xdr.c static int decode_change_info(struct xdr_stream *xdr, struct nfs4_change_info *cinfo) xdr 4228 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 20); xdr 4237 fs/nfs/nfs4xdr.c static int decode_access(struct xdr_stream *xdr, u32 *supported, u32 *access) xdr 4243 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_ACCESS); xdr 4246 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 4256 fs/nfs/nfs4xdr.c static int decode_opaque_fixed(struct xdr_stream *xdr, void *buf, size_t len) xdr 4258 fs/nfs/nfs4xdr.c ssize_t ret = xdr_stream_decode_opaque_fixed(xdr, buf, len); xdr 4264 fs/nfs/nfs4xdr.c static int decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 4266 fs/nfs/nfs4xdr.c return decode_opaque_fixed(xdr, stateid, NFS4_STATEID_SIZE); xdr 4269 fs/nfs/nfs4xdr.c static int decode_open_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 4272 fs/nfs/nfs4xdr.c return decode_stateid(xdr, stateid); xdr 4275 fs/nfs/nfs4xdr.c static int decode_lock_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 4278 fs/nfs/nfs4xdr.c return decode_stateid(xdr, stateid); xdr 4281 fs/nfs/nfs4xdr.c static int decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 4284 fs/nfs/nfs4xdr.c return decode_stateid(xdr, stateid); xdr 4287 fs/nfs/nfs4xdr.c static int decode_invalid_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 4292 fs/nfs/nfs4xdr.c return decode_stateid(xdr, &dummy); xdr 4295 fs/nfs/nfs4xdr.c static int decode_close(struct xdr_stream *xdr, struct nfs_closeres *res) xdr 4299 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_CLOSE); xdr 4303 fs/nfs/nfs4xdr.c status = decode_invalid_stateid(xdr, &res->stateid); xdr 4307 fs/nfs/nfs4xdr.c static int decode_verifier(struct xdr_stream *xdr, void *verifier) xdr 4309 fs/nfs/nfs4xdr.c return decode_opaque_fixed(xdr, verifier, NFS4_VERIFIER_SIZE); xdr 4312 fs/nfs/nfs4xdr.c static int decode_write_verifier(struct xdr_stream *xdr, struct nfs_write_verifier *verifier) xdr 4314 fs/nfs/nfs4xdr.c return decode_opaque_fixed(xdr, verifier->data, NFS4_VERIFIER_SIZE); xdr 4317 fs/nfs/nfs4xdr.c static int decode_commit(struct xdr_stream *xdr, struct nfs_commitres *res) xdr 4322 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_COMMIT); xdr 4324 fs/nfs/nfs4xdr.c status = decode_write_verifier(xdr, &verf->verifier); xdr 4330 fs/nfs/nfs4xdr.c static int decode_create(struct xdr_stream *xdr, struct nfs4_change_info *cinfo) xdr 4336 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_CREATE); xdr 4339 fs/nfs/nfs4xdr.c if ((status = decode_change_info(xdr, cinfo))) xdr 4341 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4345 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, bmlen << 2); xdr 4351 fs/nfs/nfs4xdr.c static int decode_server_caps(struct xdr_stream *xdr, struct nfs4_server_caps_res *res) xdr 4357 fs/nfs/nfs4xdr.c if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) xdr 4359 fs/nfs/nfs4xdr.c if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) xdr 4361 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) xdr 4363 fs/nfs/nfs4xdr.c if ((status = decode_attr_supported(xdr, bitmap, res->attr_bitmask)) != 0) xdr 4365 fs/nfs/nfs4xdr.c if ((status = decode_attr_fh_expire_type(xdr, bitmap, xdr 4368 fs/nfs/nfs4xdr.c if ((status = decode_attr_link_support(xdr, bitmap, &res->has_links)) != 0) xdr 4370 fs/nfs/nfs4xdr.c if ((status = decode_attr_symlink_support(xdr, bitmap, &res->has_symlinks)) != 0) xdr 4372 fs/nfs/nfs4xdr.c if ((status = decode_attr_aclsupport(xdr, bitmap, &res->acl_bitmask)) != 0) xdr 4374 fs/nfs/nfs4xdr.c if ((status = decode_attr_exclcreat_supported(xdr, bitmap, xdr 4377 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); xdr 4383 fs/nfs/nfs4xdr.c static int decode_statfs(struct xdr_stream *xdr, struct nfs_fsstat *fsstat) xdr 4389 fs/nfs/nfs4xdr.c if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) xdr 4391 fs/nfs/nfs4xdr.c if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) xdr 4393 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) xdr 4396 fs/nfs/nfs4xdr.c if ((status = decode_attr_files_avail(xdr, bitmap, &fsstat->afiles)) != 0) xdr 4398 fs/nfs/nfs4xdr.c if ((status = decode_attr_files_free(xdr, bitmap, &fsstat->ffiles)) != 0) xdr 4400 fs/nfs/nfs4xdr.c if ((status = decode_attr_files_total(xdr, bitmap, &fsstat->tfiles)) != 0) xdr 4407 fs/nfs/nfs4xdr.c if ((status = decode_attr_space_avail(xdr, bitmap, &fsstat->abytes)) != 0) xdr 4409 fs/nfs/nfs4xdr.c if ((status = decode_attr_space_free(xdr, bitmap, &fsstat->fbytes)) != 0) xdr 4411 fs/nfs/nfs4xdr.c if ((status = decode_attr_space_total(xdr, bitmap, &fsstat->tbytes)) != 0) xdr 4414 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); xdr 4420 fs/nfs/nfs4xdr.c static int decode_pathconf(struct xdr_stream *xdr, struct nfs_pathconf *pathconf) xdr 4426 fs/nfs/nfs4xdr.c if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) xdr 4428 fs/nfs/nfs4xdr.c if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) xdr 4430 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) xdr 4433 fs/nfs/nfs4xdr.c if ((status = decode_attr_maxlink(xdr, bitmap, &pathconf->max_link)) != 0) xdr 4435 fs/nfs/nfs4xdr.c if ((status = decode_attr_maxname(xdr, bitmap, &pathconf->max_namelen)) != 0) xdr 4438 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); xdr 4444 fs/nfs/nfs4xdr.c static int decode_threshold_hint(struct xdr_stream *xdr, xdr 4453 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 4461 fs/nfs/nfs4xdr.c static int decode_first_threshold_item4(struct xdr_stream *xdr, xdr 4470 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4476 fs/nfs/nfs4xdr.c status = decode_attr_bitmap(xdr, bitmap); xdr 4481 fs/nfs/nfs4xdr.c status = decode_attr_length(xdr, &attrlen, &savep); xdr 4485 fs/nfs/nfs4xdr.c status = decode_threshold_hint(xdr, bitmap, &res->rd_sz, THRESHOLD_RD); xdr 4488 fs/nfs/nfs4xdr.c status = decode_threshold_hint(xdr, bitmap, &res->wr_sz, THRESHOLD_WR); xdr 4491 fs/nfs/nfs4xdr.c status = decode_threshold_hint(xdr, bitmap, &res->rd_io_sz, xdr 4495 fs/nfs/nfs4xdr.c status = decode_threshold_hint(xdr, bitmap, &res->wr_io_sz, xdr 4500 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); xdr 4514 fs/nfs/nfs4xdr.c static int decode_attr_mdsthreshold(struct xdr_stream *xdr, xdr 4528 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4539 fs/nfs/nfs4xdr.c status = decode_first_threshold_item4(xdr, res); xdr 4545 fs/nfs/nfs4xdr.c static int decode_getfattr_attrs(struct xdr_stream *xdr, uint32_t *bitmap, xdr 4555 fs/nfs/nfs4xdr.c status = decode_attr_type(xdr, bitmap, &type); xdr 4564 fs/nfs/nfs4xdr.c status = decode_attr_change(xdr, bitmap, &fattr->change_attr); xdr 4569 fs/nfs/nfs4xdr.c status = decode_attr_size(xdr, bitmap, &fattr->size); xdr 4574 fs/nfs/nfs4xdr.c status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); xdr 4580 fs/nfs/nfs4xdr.c status = decode_attr_error(xdr, bitmap, &err); xdr 4584 fs/nfs/nfs4xdr.c status = decode_attr_filehandle(xdr, bitmap, fh); xdr 4588 fs/nfs/nfs4xdr.c status = decode_attr_fileid(xdr, bitmap, &fattr->fileid); xdr 4593 fs/nfs/nfs4xdr.c status = decode_attr_fs_locations(xdr, bitmap, fs_loc); xdr 4602 fs/nfs/nfs4xdr.c status = decode_attr_mode(xdr, bitmap, &fmode); xdr 4610 fs/nfs/nfs4xdr.c status = decode_attr_nlink(xdr, bitmap, &fattr->nlink); xdr 4615 fs/nfs/nfs4xdr.c status = decode_attr_owner(xdr, bitmap, server, &fattr->uid, fattr->owner_name); xdr 4620 fs/nfs/nfs4xdr.c status = decode_attr_group(xdr, bitmap, server, &fattr->gid, fattr->group_name); xdr 4625 fs/nfs/nfs4xdr.c status = decode_attr_rdev(xdr, bitmap, &fattr->rdev); xdr 4630 fs/nfs/nfs4xdr.c status = decode_attr_space_used(xdr, bitmap, &fattr->du.nfs3.used); xdr 4635 fs/nfs/nfs4xdr.c status = decode_attr_time_access(xdr, bitmap, &fattr->atime); xdr 4640 fs/nfs/nfs4xdr.c status = decode_attr_time_metadata(xdr, bitmap, &fattr->ctime); xdr 4645 fs/nfs/nfs4xdr.c status = decode_attr_time_modify(xdr, bitmap, &fattr->mtime); xdr 4650 fs/nfs/nfs4xdr.c status = decode_attr_mounted_on_fileid(xdr, bitmap, &fattr->mounted_on_fileid); xdr 4659 fs/nfs/nfs4xdr.c status = decode_attr_mdsthreshold(xdr, bitmap, fattr->mdsthreshold); xdr 4664 fs/nfs/nfs4xdr.c status = decode_attr_security_label(xdr, bitmap, label); xdr 4675 fs/nfs/nfs4xdr.c static int decode_getfattr_generic(struct xdr_stream *xdr, struct nfs_fattr *fattr, xdr 4684 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_GETATTR); xdr 4688 fs/nfs/nfs4xdr.c status = decode_attr_bitmap(xdr, bitmap); xdr 4692 fs/nfs/nfs4xdr.c status = decode_attr_length(xdr, &attrlen, &savep); xdr 4696 fs/nfs/nfs4xdr.c status = decode_getfattr_attrs(xdr, bitmap, fattr, fh, fs_loc, xdr 4701 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); xdr 4707 fs/nfs/nfs4xdr.c static int decode_getfattr_label(struct xdr_stream *xdr, struct nfs_fattr *fattr, xdr 4710 fs/nfs/nfs4xdr.c return decode_getfattr_generic(xdr, fattr, NULL, NULL, label, server); xdr 4713 fs/nfs/nfs4xdr.c static int decode_getfattr(struct xdr_stream *xdr, struct nfs_fattr *fattr, xdr 4716 fs/nfs/nfs4xdr.c return decode_getfattr_generic(xdr, fattr, NULL, NULL, NULL, server); xdr 4722 fs/nfs/nfs4xdr.c static int decode_pnfs_layout_types(struct xdr_stream *xdr, xdr 4728 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4738 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, fsinfo->nlayouttypes * 4); xdr 4758 fs/nfs/nfs4xdr.c static int decode_attr_pnfstype(struct xdr_stream *xdr, uint32_t *bitmap, xdr 4767 fs/nfs/nfs4xdr.c status = decode_pnfs_layout_types(xdr, fsinfo); xdr 4776 fs/nfs/nfs4xdr.c static int decode_attr_layout_blksize(struct xdr_stream *xdr, uint32_t *bitmap, xdr 4784 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4796 fs/nfs/nfs4xdr.c static int decode_attr_clone_blksize(struct xdr_stream *xdr, uint32_t *bitmap, xdr 4804 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4813 fs/nfs/nfs4xdr.c static int decode_fsinfo(struct xdr_stream *xdr, struct nfs_fsinfo *fsinfo) xdr 4819 fs/nfs/nfs4xdr.c if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) xdr 4821 fs/nfs/nfs4xdr.c if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) xdr 4823 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) xdr 4828 fs/nfs/nfs4xdr.c if ((status = decode_attr_lease_time(xdr, bitmap, &fsinfo->lease_time)) != 0) xdr 4830 fs/nfs/nfs4xdr.c if ((status = decode_attr_maxfilesize(xdr, bitmap, &fsinfo->maxfilesize)) != 0) xdr 4832 fs/nfs/nfs4xdr.c if ((status = decode_attr_maxread(xdr, bitmap, &fsinfo->rtmax)) != 0) xdr 4835 fs/nfs/nfs4xdr.c if ((status = decode_attr_maxwrite(xdr, bitmap, &fsinfo->wtmax)) != 0) xdr 4843 fs/nfs/nfs4xdr.c status = decode_attr_time_delta(xdr, bitmap, &fsinfo->time_delta); xdr 4846 fs/nfs/nfs4xdr.c status = decode_attr_pnfstype(xdr, bitmap, fsinfo); xdr 4854 fs/nfs/nfs4xdr.c status = decode_attr_layout_blksize(xdr, bitmap, &fsinfo->blksize); xdr 4857 fs/nfs/nfs4xdr.c status = decode_attr_clone_blksize(xdr, bitmap, &fsinfo->clone_blksize); xdr 4861 fs/nfs/nfs4xdr.c status = verify_attr_len(xdr, savep, attrlen); xdr 4867 fs/nfs/nfs4xdr.c static int decode_getfh(struct xdr_stream *xdr, struct nfs_fh *fh) xdr 4876 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_GETFH); xdr 4880 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 4887 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, len); xdr 4894 fs/nfs/nfs4xdr.c static int decode_link(struct xdr_stream *xdr, struct nfs4_change_info *cinfo) xdr 4898 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_LINK); xdr 4901 fs/nfs/nfs4xdr.c return decode_change_info(xdr, cinfo); xdr 4907 fs/nfs/nfs4xdr.c static int decode_lock_denied (struct xdr_stream *xdr, struct file_lock *fl) xdr 4913 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 32); /* read 32 bytes */ xdr 4931 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, namelen); /* variable size field */ xdr 4937 fs/nfs/nfs4xdr.c static int decode_lock(struct xdr_stream *xdr, struct nfs_lock_res *res) xdr 4941 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_LOCK); xdr 4945 fs/nfs/nfs4xdr.c status = decode_lock_stateid(xdr, &res->stateid); xdr 4949 fs/nfs/nfs4xdr.c status = decode_lock_denied(xdr, NULL); xdr 4957 fs/nfs/nfs4xdr.c static int decode_lockt(struct xdr_stream *xdr, struct nfs_lockt_res *res) xdr 4960 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_LOCKT); xdr 4962 fs/nfs/nfs4xdr.c return decode_lock_denied(xdr, res->denied); xdr 4966 fs/nfs/nfs4xdr.c static int decode_locku(struct xdr_stream *xdr, struct nfs_locku_res *res) xdr 4970 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_LOCKU); xdr 4974 fs/nfs/nfs4xdr.c status = decode_lock_stateid(xdr, &res->stateid); xdr 4978 fs/nfs/nfs4xdr.c static int decode_release_lockowner(struct xdr_stream *xdr) xdr 4980 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_RELEASE_LOCKOWNER); xdr 4983 fs/nfs/nfs4xdr.c static int decode_lookup(struct xdr_stream *xdr) xdr 4985 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_LOOKUP); xdr 4988 fs/nfs/nfs4xdr.c static int decode_lookupp(struct xdr_stream *xdr) xdr 4990 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_LOOKUPP); xdr 4994 fs/nfs/nfs4xdr.c static int decode_space_limit(struct xdr_stream *xdr, xdr 5001 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 12); xdr 5019 fs/nfs/nfs4xdr.c static int decode_rw_delegation(struct xdr_stream *xdr, xdr 5026 fs/nfs/nfs4xdr.c status = decode_delegation_stateid(xdr, &res->delegation); xdr 5029 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5040 fs/nfs/nfs4xdr.c if (decode_space_limit(xdr, &res->pagemod_limit) < 0) xdr 5043 fs/nfs/nfs4xdr.c return decode_ace(xdr, NULL); xdr 5046 fs/nfs/nfs4xdr.c static int decode_no_delegation(struct xdr_stream *xdr, struct nfs_openres *res) xdr 5051 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5058 fs/nfs/nfs4xdr.c xdr_inline_decode(xdr, 4); xdr 5064 fs/nfs/nfs4xdr.c static int decode_delegation(struct xdr_stream *xdr, struct nfs_openres *res) xdr 5069 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5079 fs/nfs/nfs4xdr.c return decode_rw_delegation(xdr, delegation_type, res); xdr 5081 fs/nfs/nfs4xdr.c return decode_no_delegation(xdr, res); xdr 5086 fs/nfs/nfs4xdr.c static int decode_open(struct xdr_stream *xdr, struct nfs_openres *res) xdr 5092 fs/nfs/nfs4xdr.c if (!__decode_op_hdr(xdr, OP_OPEN, &status)) xdr 5097 fs/nfs/nfs4xdr.c status = decode_open_stateid(xdr, &res->stateid); xdr 5101 fs/nfs/nfs4xdr.c decode_change_info(xdr, &res->cinfo); xdr 5103 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5111 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, bmlen << 2); xdr 5120 fs/nfs/nfs4xdr.c return decode_delegation(xdr, res); xdr 5126 fs/nfs/nfs4xdr.c static int decode_open_confirm(struct xdr_stream *xdr, struct nfs_open_confirmres *res) xdr 5130 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_OPEN_CONFIRM); xdr 5134 fs/nfs/nfs4xdr.c status = decode_open_stateid(xdr, &res->stateid); xdr 5138 fs/nfs/nfs4xdr.c static int decode_open_downgrade(struct xdr_stream *xdr, struct nfs_closeres *res) xdr 5142 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_OPEN_DOWNGRADE); xdr 5146 fs/nfs/nfs4xdr.c status = decode_open_stateid(xdr, &res->stateid); xdr 5150 fs/nfs/nfs4xdr.c static int decode_putfh(struct xdr_stream *xdr) xdr 5152 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_PUTFH); xdr 5155 fs/nfs/nfs4xdr.c static int decode_putrootfh(struct xdr_stream *xdr) xdr 5157 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_PUTROOTFH); xdr 5160 fs/nfs/nfs4xdr.c static int decode_read(struct xdr_stream *xdr, struct rpc_rqst *req, xdr 5167 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_READ); xdr 5170 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5175 fs/nfs/nfs4xdr.c recvd = xdr_read_pages(xdr, count); xdr 5187 fs/nfs/nfs4xdr.c static int decode_readdir(struct xdr_stream *xdr, struct rpc_rqst *req, struct nfs4_readdir_res *readdir) xdr 5192 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_READDIR); xdr 5194 fs/nfs/nfs4xdr.c status = decode_verifier(xdr, readdir->verifier.data); xdr 5200 fs/nfs/nfs4xdr.c return xdr_read_pages(xdr, xdr->buf->page_len); xdr 5203 fs/nfs/nfs4xdr.c static int decode_readlink(struct xdr_stream *xdr, struct rpc_rqst *req) xdr 5210 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_READLINK); xdr 5215 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5223 fs/nfs/nfs4xdr.c recvd = xdr_read_pages(xdr, len); xdr 5240 fs/nfs/nfs4xdr.c static int decode_remove(struct xdr_stream *xdr, struct nfs4_change_info *cinfo) xdr 5244 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_REMOVE); xdr 5247 fs/nfs/nfs4xdr.c status = decode_change_info(xdr, cinfo); xdr 5252 fs/nfs/nfs4xdr.c static int decode_rename(struct xdr_stream *xdr, struct nfs4_change_info *old_cinfo, xdr 5257 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_RENAME); xdr 5260 fs/nfs/nfs4xdr.c if ((status = decode_change_info(xdr, old_cinfo))) xdr 5262 fs/nfs/nfs4xdr.c status = decode_change_info(xdr, new_cinfo); xdr 5267 fs/nfs/nfs4xdr.c static int decode_renew(struct xdr_stream *xdr) xdr 5269 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_RENEW); xdr 5273 fs/nfs/nfs4xdr.c decode_restorefh(struct xdr_stream *xdr) xdr 5275 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_RESTOREFH); xdr 5278 fs/nfs/nfs4xdr.c static int decode_getacl(struct xdr_stream *xdr, struct rpc_rqst *req, xdr 5288 fs/nfs/nfs4xdr.c if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) xdr 5291 fs/nfs/nfs4xdr.c xdr_enter_page(xdr, xdr->buf->page_len); xdr 5294 fs/nfs/nfs4xdr.c pg_offset = xdr->buf->head[0].iov_len; xdr 5296 fs/nfs/nfs4xdr.c if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) xdr 5298 fs/nfs/nfs4xdr.c if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) xdr 5308 fs/nfs/nfs4xdr.c res->acl_data_offset = xdr_stream_pos(xdr) - pg_offset; xdr 5312 fs/nfs/nfs4xdr.c if (res->acl_len > (xdr->nwords << 2) || xdr 5313 fs/nfs/nfs4xdr.c res->acl_len + res->acl_data_offset > xdr->buf->page_len) { xdr 5316 fs/nfs/nfs4xdr.c attrlen, xdr->nwords << 2); xdr 5326 fs/nfs/nfs4xdr.c decode_savefh(struct xdr_stream *xdr) xdr 5328 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_SAVEFH); xdr 5331 fs/nfs/nfs4xdr.c static int decode_setattr(struct xdr_stream *xdr) xdr 5335 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_SETATTR); xdr 5338 fs/nfs/nfs4xdr.c if (decode_bitmap4(xdr, NULL, 0) >= 0) xdr 5343 fs/nfs/nfs4xdr.c static int decode_setclientid(struct xdr_stream *xdr, struct nfs4_setclientid_res *res) xdr 5349 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5360 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8 + NFS4_VERIFIER_SIZE); xdr 5369 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5373 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, len); xdr 5378 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5382 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, len); xdr 5392 fs/nfs/nfs4xdr.c static int decode_setclientid_confirm(struct xdr_stream *xdr) xdr 5394 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_SETCLIENTID_CONFIRM); xdr 5397 fs/nfs/nfs4xdr.c static int decode_write(struct xdr_stream *xdr, struct nfs_pgio_res *res) xdr 5402 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_WRITE); xdr 5406 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5411 fs/nfs/nfs4xdr.c return decode_write_verifier(xdr, &res->verf->verifier); xdr 5414 fs/nfs/nfs4xdr.c static int decode_delegreturn(struct xdr_stream *xdr) xdr 5416 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_DELEGRETURN); xdr 5419 fs/nfs/nfs4xdr.c static int decode_secinfo_gss(struct xdr_stream *xdr, xdr 5425 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5432 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, oid_len); xdr 5438 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5447 fs/nfs/nfs4xdr.c static int decode_secinfo_common(struct xdr_stream *xdr, struct nfs4_secinfo_res *res) xdr 5454 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5466 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5472 fs/nfs/nfs4xdr.c status = decode_secinfo_gss(xdr, sec_flavor); xdr 5484 fs/nfs/nfs4xdr.c static int decode_secinfo(struct xdr_stream *xdr, struct nfs4_secinfo_res *res) xdr 5486 fs/nfs/nfs4xdr.c int status = decode_op_hdr(xdr, OP_SECINFO); xdr 5489 fs/nfs/nfs4xdr.c return decode_secinfo_common(xdr, res); xdr 5493 fs/nfs/nfs4xdr.c static int decode_secinfo_no_name(struct xdr_stream *xdr, struct nfs4_secinfo_res *res) xdr 5495 fs/nfs/nfs4xdr.c int status = decode_op_hdr(xdr, OP_SECINFO_NO_NAME); xdr 5498 fs/nfs/nfs4xdr.c return decode_secinfo_common(xdr, res); xdr 5501 fs/nfs/nfs4xdr.c static int decode_op_map(struct xdr_stream *xdr, struct nfs4_op_map *op_map) xdr 5507 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5513 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4 * bitmap_words); xdr 5520 fs/nfs/nfs4xdr.c static int decode_exchange_id(struct xdr_stream *xdr, xdr 5529 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_EXCHANGE_ID); xdr 5533 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5537 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 12); xdr 5548 fs/nfs/nfs4xdr.c status = decode_op_map(xdr, &res->state_protect.enforce); xdr 5551 fs/nfs/nfs4xdr.c status = decode_op_map(xdr, &res->state_protect.allow); xdr 5561 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5567 fs/nfs/nfs4xdr.c status = decode_opaque_inline(xdr, &dummy, &dummy_str); xdr 5574 fs/nfs/nfs4xdr.c status = decode_opaque_inline(xdr, &dummy, &dummy_str); xdr 5581 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5588 fs/nfs/nfs4xdr.c status = decode_opaque_inline(xdr, &dummy, &dummy_str); xdr 5594 fs/nfs/nfs4xdr.c status = decode_opaque_inline(xdr, &dummy, &dummy_str); xdr 5600 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 12); xdr 5611 fs/nfs/nfs4xdr.c static int decode_chan_attrs(struct xdr_stream *xdr, xdr 5617 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 28); xdr 5635 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); /* skip rdma_attrs */ xdr 5642 fs/nfs/nfs4xdr.c static int decode_sessionid(struct xdr_stream *xdr, struct nfs4_sessionid *sid) xdr 5644 fs/nfs/nfs4xdr.c return decode_opaque_fixed(xdr, sid->data, NFS4_MAX_SESSIONID_LEN); xdr 5647 fs/nfs/nfs4xdr.c static int decode_bind_conn_to_session(struct xdr_stream *xdr, xdr 5653 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_BIND_CONN_TO_SESSION); xdr 5655 fs/nfs/nfs4xdr.c status = decode_sessionid(xdr, &res->sessionid); xdr 5660 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5675 fs/nfs/nfs4xdr.c static int decode_create_session(struct xdr_stream *xdr, xdr 5681 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_CREATE_SESSION); xdr 5683 fs/nfs/nfs4xdr.c status = decode_sessionid(xdr, &res->sessionid); xdr 5688 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5695 fs/nfs/nfs4xdr.c status = decode_chan_attrs(xdr, &res->fc_attrs); xdr 5697 fs/nfs/nfs4xdr.c status = decode_chan_attrs(xdr, &res->bc_attrs); xdr 5701 fs/nfs/nfs4xdr.c static int decode_destroy_session(struct xdr_stream *xdr, void *dummy) xdr 5703 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_DESTROY_SESSION); xdr 5706 fs/nfs/nfs4xdr.c static int decode_destroy_clientid(struct xdr_stream *xdr, void *dummy) xdr 5708 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_DESTROY_CLIENTID); xdr 5711 fs/nfs/nfs4xdr.c static int decode_reclaim_complete(struct xdr_stream *xdr, void *dummy) xdr 5713 fs/nfs/nfs4xdr.c return decode_op_hdr(xdr, OP_RECLAIM_COMPLETE); xdr 5717 fs/nfs/nfs4xdr.c static int decode_sequence(struct xdr_stream *xdr, xdr 5733 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_SEQUENCE); xdr 5735 fs/nfs/nfs4xdr.c status = decode_sessionid(xdr, &id); xdr 5752 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 20); xdr 5787 fs/nfs/nfs4xdr.c static int decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) xdr 5790 fs/nfs/nfs4xdr.c return decode_stateid(xdr, stateid); xdr 5793 fs/nfs/nfs4xdr.c static int decode_getdeviceinfo(struct xdr_stream *xdr, xdr 5801 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_GETDEVICEINFO); xdr 5804 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5814 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5829 fs/nfs/nfs4xdr.c if (xdr_read_pages(xdr, pdev->mincount) != pdev->mincount) xdr 5833 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5840 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4 * len); xdr 5856 fs/nfs/nfs4xdr.c static int decode_layoutget(struct xdr_stream *xdr, struct rpc_rqst *req, xdr 5864 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_LAYOUTGET); xdr 5867 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5871 fs/nfs/nfs4xdr.c decode_layout_stateid(xdr, &res->stateid); xdr 5872 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5883 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 28); xdr 5900 fs/nfs/nfs4xdr.c recvd = xdr_read_pages(xdr, res->layoutp->len); xdr 5927 fs/nfs/nfs4xdr.c static int decode_layoutreturn(struct xdr_stream *xdr, xdr 5933 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_LAYOUTRETURN); xdr 5936 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5941 fs/nfs/nfs4xdr.c status = decode_layout_stateid(xdr, &res->stateid); xdr 5947 fs/nfs/nfs4xdr.c static int decode_layoutcommit(struct xdr_stream *xdr, xdr 5955 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_LAYOUTCOMMIT); xdr 5960 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5967 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 8); xdr 5974 fs/nfs/nfs4xdr.c static int decode_test_stateid(struct xdr_stream *xdr, xdr 5981 fs/nfs/nfs4xdr.c status = decode_op_hdr(xdr, OP_TEST_STATEID); xdr 5985 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 5992 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 6000 fs/nfs/nfs4xdr.c static int decode_free_stateid(struct xdr_stream *xdr, xdr 6003 fs/nfs/nfs4xdr.c res->status = decode_op_hdr(xdr, OP_FREE_STATEID); xdr 6008 fs/nfs/nfs4xdr.c int decode_layoutreturn(struct xdr_stream *xdr, xdr 6014 fs/nfs/nfs4xdr.c static int decode_layoutget(struct xdr_stream *xdr, struct rpc_rqst *req, xdr 6030 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6037 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6040 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6043 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6047 fs/nfs/nfs4xdr.c status = decode_layoutreturn(xdr, res->lr_res); xdr 6052 fs/nfs/nfs4xdr.c status = decode_open_downgrade(xdr, res); xdr 6060 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_access(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6067 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6070 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6073 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6076 fs/nfs/nfs4xdr.c status = decode_access(xdr, &res->supported, &res->access); xdr 6080 fs/nfs/nfs4xdr.c decode_getfattr(xdr, res->fattr, res->server); xdr 6088 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_lookup(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6095 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6098 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6101 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6104 fs/nfs/nfs4xdr.c status = decode_lookup(xdr); xdr 6107 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); xdr 6110 fs/nfs/nfs4xdr.c status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); xdr 6118 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_lookupp(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6125 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6128 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6131 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6134 fs/nfs/nfs4xdr.c status = decode_lookupp(xdr); xdr 6137 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); xdr 6140 fs/nfs/nfs4xdr.c status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); xdr 6149 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6156 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6159 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6162 fs/nfs/nfs4xdr.c status = decode_putrootfh(xdr); xdr 6165 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); xdr 6167 fs/nfs/nfs4xdr.c status = decode_getfattr_label(xdr, res->fattr, xdr 6176 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_remove(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6183 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6186 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6189 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6192 fs/nfs/nfs4xdr.c status = decode_remove(xdr, &res->cinfo); xdr 6200 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_rename(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6207 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6210 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6213 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6216 fs/nfs/nfs4xdr.c status = decode_savefh(xdr); xdr 6219 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6222 fs/nfs/nfs4xdr.c status = decode_rename(xdr, &res->old_cinfo, &res->new_cinfo); xdr 6230 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_link(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6237 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6240 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6243 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6246 fs/nfs/nfs4xdr.c status = decode_savefh(xdr); xdr 6249 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6252 fs/nfs/nfs4xdr.c status = decode_link(xdr, &res->cinfo); xdr 6259 fs/nfs/nfs4xdr.c status = decode_restorefh(xdr); xdr 6262 fs/nfs/nfs4xdr.c decode_getfattr_label(xdr, res->fattr, res->label, res->server); xdr 6270 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_create(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6277 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6280 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6283 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6286 fs/nfs/nfs4xdr.c status = decode_create(xdr, &res->dir_cinfo); xdr 6289 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); xdr 6292 fs/nfs/nfs4xdr.c decode_getfattr_label(xdr, res->fattr, res->label, res->server); xdr 6300 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_symlink(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6303 fs/nfs/nfs4xdr.c return nfs4_xdr_dec_create(rqstp, xdr, res); xdr 6309 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_getattr(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6316 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6319 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6322 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6325 fs/nfs/nfs4xdr.c status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); xdr 6333 fs/nfs/nfs4xdr.c static void nfs4_xdr_enc_setacl(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 6341 fs/nfs/nfs4xdr.c encode_compound_hdr(xdr, req, &hdr); xdr 6342 fs/nfs/nfs4xdr.c encode_sequence(xdr, &args->seq_args, &hdr); xdr 6343 fs/nfs/nfs4xdr.c encode_putfh(xdr, args->fh, &hdr); xdr 6344 fs/nfs/nfs4xdr.c encode_setacl(xdr, args, &hdr); xdr 6352 fs/nfs/nfs4xdr.c nfs4_xdr_dec_setacl(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6359 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6362 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6365 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6368 fs/nfs/nfs4xdr.c status = decode_setattr(xdr); xdr 6377 fs/nfs/nfs4xdr.c nfs4_xdr_dec_getacl(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6386 fs/nfs/nfs4xdr.c xdr_set_scratch_buffer(xdr, p, PAGE_SIZE); xdr 6388 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6391 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6394 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6397 fs/nfs/nfs4xdr.c status = decode_getacl(xdr, rqstp, res); xdr 6406 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_close(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6413 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6416 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6419 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6423 fs/nfs/nfs4xdr.c status = decode_layoutreturn(xdr, res->lr_res); xdr 6429 fs/nfs/nfs4xdr.c status = decode_getfattr(xdr, res->fattr, res->server); xdr 6433 fs/nfs/nfs4xdr.c status = decode_close(xdr, res); xdr 6441 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_open(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6448 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6451 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6454 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6457 fs/nfs/nfs4xdr.c status = decode_open(xdr, res); xdr 6460 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, &res->fh); xdr 6464 fs/nfs/nfs4xdr.c decode_access(xdr, &res->access_supported, &res->access_result); xdr 6465 fs/nfs/nfs4xdr.c decode_getfattr_label(xdr, res->f_attr, res->f_label, res->server); xdr 6467 fs/nfs/nfs4xdr.c decode_layoutget(xdr, rqstp, res->lg_res); xdr 6476 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6483 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6486 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6489 fs/nfs/nfs4xdr.c status = decode_open_confirm(xdr, res); xdr 6498 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6505 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6508 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6511 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6514 fs/nfs/nfs4xdr.c status = decode_open(xdr, res); xdr 6518 fs/nfs/nfs4xdr.c decode_access(xdr, &res->access_supported, &res->access_result); xdr 6519 fs/nfs/nfs4xdr.c decode_getfattr(xdr, res->f_attr, res->server); xdr 6521 fs/nfs/nfs4xdr.c decode_layoutget(xdr, rqstp, res->lg_res); xdr 6530 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6537 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6540 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6543 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6546 fs/nfs/nfs4xdr.c status = decode_setattr(xdr); xdr 6549 fs/nfs/nfs4xdr.c decode_getfattr_label(xdr, res->fattr, res->label, res->server); xdr 6557 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_lock(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6564 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6567 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6570 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6573 fs/nfs/nfs4xdr.c status = decode_lock(xdr, res); xdr 6581 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_lockt(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6588 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6591 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6594 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6597 fs/nfs/nfs4xdr.c status = decode_lockt(xdr, res); xdr 6605 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_locku(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6612 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6615 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6618 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6621 fs/nfs/nfs4xdr.c status = decode_locku(xdr, res); xdr 6627 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, void *dummy) xdr 6632 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6634 fs/nfs/nfs4xdr.c status = decode_release_lockowner(xdr); xdr 6642 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6649 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6652 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6655 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6658 fs/nfs/nfs4xdr.c status = decode_readlink(xdr, rqstp); xdr 6666 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_readdir(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6673 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6676 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6679 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6682 fs/nfs/nfs4xdr.c status = decode_readdir(xdr, rqstp, res); xdr 6690 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_read(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6697 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6701 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6704 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6707 fs/nfs/nfs4xdr.c status = decode_read(xdr, rqstp, res); xdr 6717 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_write(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6724 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6728 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6731 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6734 fs/nfs/nfs4xdr.c status = decode_write(xdr, res); xdr 6738 fs/nfs/nfs4xdr.c decode_getfattr(xdr, res->fattr, res->server); xdr 6748 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_commit(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6755 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6759 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6762 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6765 fs/nfs/nfs4xdr.c status = decode_commit(xdr, res); xdr 6773 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_fsinfo(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 6780 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6782 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, req); xdr 6784 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6786 fs/nfs/nfs4xdr.c status = decode_fsinfo(xdr, res->fsinfo); xdr 6793 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_pathconf(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 6800 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6802 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, req); xdr 6804 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6806 fs/nfs/nfs4xdr.c status = decode_pathconf(xdr, res->pathconf); xdr 6813 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_statfs(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 6820 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6822 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, req); xdr 6824 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6826 fs/nfs/nfs4xdr.c status = decode_statfs(xdr, res->fsstat); xdr 6834 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6841 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6844 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, req); xdr 6847 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6850 fs/nfs/nfs4xdr.c status = decode_server_caps(xdr, res); xdr 6858 fs/nfs/nfs4xdr.c static int nfs4_xdr_dec_renew(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 6864 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6866 fs/nfs/nfs4xdr.c status = decode_renew(xdr); xdr 6874 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6881 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6883 fs/nfs/nfs4xdr.c status = decode_setclientid(xdr, res); xdr 6891 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6897 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6899 fs/nfs/nfs4xdr.c status = decode_setclientid_confirm(xdr); xdr 6907 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6914 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6917 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 6920 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6924 fs/nfs/nfs4xdr.c status = decode_layoutreturn(xdr, res->lr_res); xdr 6930 fs/nfs/nfs4xdr.c status = decode_getfattr(xdr, res->fattr, res->server); xdr 6934 fs/nfs/nfs4xdr.c status = decode_delegreturn(xdr); xdr 6943 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6950 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6953 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, req); xdr 6956 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 6960 fs/nfs/nfs4xdr.c xdr_enter_page(xdr, PAGE_SIZE); xdr 6961 fs/nfs/nfs4xdr.c status = decode_getfattr_generic(xdr, xdr 6968 fs/nfs/nfs4xdr.c status = decode_renew(xdr); xdr 6970 fs/nfs/nfs4xdr.c status = decode_lookup(xdr); xdr 6973 fs/nfs/nfs4xdr.c xdr_enter_page(xdr, PAGE_SIZE); xdr 6974 fs/nfs/nfs4xdr.c status = decode_getfattr_generic(xdr, xdr 6987 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 6994 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 6997 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7000 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 7003 fs/nfs/nfs4xdr.c status = decode_secinfo(xdr, res); xdr 7012 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7019 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7022 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7025 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 7028 fs/nfs/nfs4xdr.c status = decode_getfh(xdr, res->fh); xdr 7032 fs/nfs/nfs4xdr.c status = decode_renew(xdr); xdr 7042 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7048 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7050 fs/nfs/nfs4xdr.c status = decode_bind_conn_to_session(xdr, res); xdr 7058 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7064 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7066 fs/nfs/nfs4xdr.c status = decode_exchange_id(xdr, res); xdr 7074 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7080 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7082 fs/nfs/nfs4xdr.c status = decode_create_session(xdr, res); xdr 7090 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7096 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7098 fs/nfs/nfs4xdr.c status = decode_destroy_session(xdr, res); xdr 7106 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7112 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7114 fs/nfs/nfs4xdr.c status = decode_destroy_clientid(xdr, res); xdr 7122 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7128 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7130 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, res, rqstp); xdr 7140 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7147 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7149 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->lr_seq_res, rqstp); xdr 7151 fs/nfs/nfs4xdr.c status = decode_putrootfh(xdr); xdr 7153 fs/nfs/nfs4xdr.c status = decode_fsinfo(xdr, res->lr_fsinfo); xdr 7163 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7170 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7172 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7174 fs/nfs/nfs4xdr.c status = decode_reclaim_complete(xdr, NULL); xdr 7182 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7189 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7192 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7195 fs/nfs/nfs4xdr.c status = decode_getdeviceinfo(xdr, res); xdr 7204 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7211 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7214 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7217 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 7220 fs/nfs/nfs4xdr.c status = decode_layoutget(xdr, rqstp, res); xdr 7229 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7236 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7239 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7242 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 7245 fs/nfs/nfs4xdr.c status = decode_layoutreturn(xdr, res); xdr 7254 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7261 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7264 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7267 fs/nfs/nfs4xdr.c status = decode_putfh(xdr); xdr 7270 fs/nfs/nfs4xdr.c status = decode_layoutcommit(xdr, rqstp, res); xdr 7273 fs/nfs/nfs4xdr.c decode_getfattr(xdr, res->fattr, res->server); xdr 7282 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7289 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7292 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7295 fs/nfs/nfs4xdr.c status = decode_putrootfh(xdr); xdr 7298 fs/nfs/nfs4xdr.c status = decode_secinfo_no_name(xdr, res); xdr 7307 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7314 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7317 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7320 fs/nfs/nfs4xdr.c status = decode_test_stateid(xdr, res); xdr 7329 fs/nfs/nfs4xdr.c struct xdr_stream *xdr, xdr 7336 fs/nfs/nfs4xdr.c status = decode_compound_hdr(xdr, &hdr); xdr 7339 fs/nfs/nfs4xdr.c status = decode_sequence(xdr, &res->seq_res, rqstp); xdr 7342 fs/nfs/nfs4xdr.c status = decode_free_stateid(xdr, res); xdr 7362 fs/nfs/nfs4xdr.c int nfs4_decode_dirent(struct xdr_stream *xdr, struct nfs_entry *entry, xdr 7369 fs/nfs/nfs4xdr.c __be32 *p = xdr_inline_decode(xdr, 4); xdr 7373 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 4); xdr 7382 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, 12); xdr 7388 fs/nfs/nfs4xdr.c p = xdr_inline_decode(xdr, entry->len); xdr 7401 fs/nfs/nfs4xdr.c if (decode_attr_bitmap(xdr, bitmap) < 0) xdr 7404 fs/nfs/nfs4xdr.c if (decode_attr_length(xdr, &len, &savep) < 0) xdr 7407 fs/nfs/nfs4xdr.c if (decode_getfattr_attrs(xdr, bitmap, entry->fattr, entry->fh, xdr 1140 fs/nfs/nfstrace.h const struct xdr_stream *xdr, xdr 1144 fs/nfs/nfstrace.h TP_ARGS(xdr, error), xdr 1154 fs/nfs/nfstrace.h const struct rpc_rqst *rqstp = xdr->rqst; xdr 386 fs/nfs/pnfs.h struct xdr_stream *xdr, xdr 782 fs/nfs/pnfs_nfs.c nfs4_decode_mp_ds_addr(struct net *net, struct xdr_stream *xdr, gfp_t gfp_flags) xdr 797 fs/nfs/pnfs_nfs.c p = xdr_inline_decode(xdr, 4); xdr 802 fs/nfs/pnfs_nfs.c p = xdr_inline_decode(xdr, nlen); xdr 814 fs/nfs/pnfs_nfs.c p = xdr_inline_decode(xdr, 4); xdr 819 fs/nfs/pnfs_nfs.c p = xdr_inline_decode(xdr, rlen); xdr 44 fs/nfsd/acl.h __be32 nfs4_acl_write_who(struct xdr_stream *xdr, int who); xdr 17 fs/nfsd/blocklayoutxdr.c nfsd4_block_encode_layoutget(struct xdr_stream *xdr, xdr 24 fs/nfsd/blocklayoutxdr.c p = xdr_reserve_space(xdr, sizeof(__be32) + len); xdr 41 fs/nfsd/blocklayoutxdr.c nfsd4_block_encode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) xdr 49 fs/nfsd/blocklayoutxdr.c p = xdr_reserve_space(xdr, len); xdr 60 fs/nfsd/blocklayoutxdr.c p = xdr_reserve_space(xdr, len); xdr 78 fs/nfsd/blocklayoutxdr.c nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr, xdr 85 fs/nfsd/blocklayoutxdr.c p = xdr_reserve_space(xdr, len + sizeof(__be32)); xdr 90 fs/nfsd/blocklayoutxdr.c ret = nfsd4_block_encode_volume(xdr, &dev->volumes[i]); xdr 53 fs/nfsd/blocklayoutxdr.h __be32 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr, xdr 55 fs/nfsd/blocklayoutxdr.h __be32 nfsd4_block_encode_layoutget(struct xdr_stream *xdr, xdr 19 fs/nfsd/flexfilelayoutxdr.c nfsd4_ff_encode_layoutget(struct xdr_stream *xdr, xdr 47 fs/nfsd/flexfilelayoutxdr.c p = xdr_reserve_space(xdr, sizeof(__be32) + len); xdr 79 fs/nfsd/flexfilelayoutxdr.c nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr, xdr 94 fs/nfsd/flexfilelayoutxdr.c p = xdr_reserve_space(xdr, len + sizeof(__be32)); xdr 45 fs/nfsd/flexfilelayoutxdr.h __be32 nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr, xdr 47 fs/nfsd/flexfilelayoutxdr.h __be32 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr, xdr 867 fs/nfsd/nfs4acl.c __be32 nfs4_acl_write_who(struct xdr_stream *xdr, int who) xdr 875 fs/nfsd/nfs4acl.c p = xdr_reserve_space(xdr, s2t_map[i].stringlen + 4); xdr 103 fs/nfsd/nfs4callback.c static void encode_nfs_cb_opnum4(struct xdr_stream *xdr, enum nfs_cb_opnum4 op) xdr 107 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 4); xdr 116 fs/nfsd/nfs4callback.c static void encode_nfs_fh4(struct xdr_stream *xdr, const struct knfsd_fh *fh) xdr 122 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 4 + length); xdr 134 fs/nfsd/nfs4callback.c static void encode_stateid4(struct xdr_stream *xdr, const stateid_t *sid) xdr 138 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, NFS4_STATEID_SIZE); xdr 148 fs/nfsd/nfs4callback.c static void encode_sessionid4(struct xdr_stream *xdr, xdr 153 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN); xdr 218 fs/nfsd/nfs4callback.c static int decode_cb_op_status(struct xdr_stream *xdr, xdr 224 fs/nfsd/nfs4callback.c p = xdr_inline_decode(xdr, 4 + 4); xdr 250 fs/nfsd/nfs4callback.c static void encode_cb_compound4args(struct xdr_stream *xdr, xdr 255 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 4 + 4 + 4 + 4); xdr 282 fs/nfsd/nfs4callback.c static int decode_cb_compound4res(struct xdr_stream *xdr, xdr 288 fs/nfsd/nfs4callback.c p = xdr_inline_decode(xdr, 4 + 4); xdr 294 fs/nfsd/nfs4callback.c p = xdr_inline_decode(xdr, length + 4); xdr 313 fs/nfsd/nfs4callback.c static void encode_cb_recall4args(struct xdr_stream *xdr, xdr 319 fs/nfsd/nfs4callback.c encode_nfs_cb_opnum4(xdr, OP_CB_RECALL); xdr 320 fs/nfsd/nfs4callback.c encode_stateid4(xdr, &dp->dl_stid.sc_stateid); xdr 322 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 4); xdr 325 fs/nfsd/nfs4callback.c encode_nfs_fh4(xdr, &dp->dl_stid.sc_file->fi_fhandle); xdr 342 fs/nfsd/nfs4callback.c static void encode_cb_sequence4args(struct xdr_stream *xdr, xdr 352 fs/nfsd/nfs4callback.c encode_nfs_cb_opnum4(xdr, OP_CB_SEQUENCE); xdr 353 fs/nfsd/nfs4callback.c encode_sessionid4(xdr, session); xdr 355 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 4 + 4 + 4 + 4 + 4); xdr 386 fs/nfsd/nfs4callback.c static int decode_cb_sequence4resok(struct xdr_stream *xdr, xdr 398 fs/nfsd/nfs4callback.c p = xdr_inline_decode(xdr, NFS4_MAX_SESSIONID_LEN + 4 + 4 + 4 + 4); xdr 432 fs/nfsd/nfs4callback.c static int decode_cb_sequence4res(struct xdr_stream *xdr, xdr 440 fs/nfsd/nfs4callback.c status = decode_cb_op_status(xdr, OP_CB_SEQUENCE, &cb->cb_seq_status); xdr 444 fs/nfsd/nfs4callback.c return decode_cb_sequence4resok(xdr, cb); xdr 459 fs/nfsd/nfs4callback.c static void nfs4_xdr_enc_cb_null(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 462 fs/nfsd/nfs4callback.c xdr_reserve_space(xdr, 0); xdr 468 fs/nfsd/nfs4callback.c static void nfs4_xdr_enc_cb_recall(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 478 fs/nfsd/nfs4callback.c encode_cb_compound4args(xdr, &hdr); xdr 479 fs/nfsd/nfs4callback.c encode_cb_sequence4args(xdr, cb, &hdr); xdr 480 fs/nfsd/nfs4callback.c encode_cb_recall4args(xdr, dp, &hdr); xdr 494 fs/nfsd/nfs4callback.c static int nfs4_xdr_dec_cb_null(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 504 fs/nfsd/nfs4callback.c struct xdr_stream *xdr, xdr 511 fs/nfsd/nfs4callback.c status = decode_cb_compound4res(xdr, &hdr); xdr 515 fs/nfsd/nfs4callback.c status = decode_cb_sequence4res(xdr, cb); xdr 519 fs/nfsd/nfs4callback.c return decode_cb_op_status(xdr, OP_CB_RECALL, &cb->cb_status); xdr 549 fs/nfsd/nfs4callback.c static void encode_cb_layout4args(struct xdr_stream *xdr, xdr 557 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 5 * 4); xdr 564 fs/nfsd/nfs4callback.c encode_nfs_fh4(xdr, &ls->ls_stid.sc_file->fi_fhandle); xdr 566 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 2 * 8); xdr 570 fs/nfsd/nfs4callback.c encode_stateid4(xdr, &ls->ls_recall_sid); xdr 576 fs/nfsd/nfs4callback.c struct xdr_stream *xdr, xdr 587 fs/nfsd/nfs4callback.c encode_cb_compound4args(xdr, &hdr); xdr 588 fs/nfsd/nfs4callback.c encode_cb_sequence4args(xdr, cb, &hdr); xdr 589 fs/nfsd/nfs4callback.c encode_cb_layout4args(xdr, ls, &hdr); xdr 594 fs/nfsd/nfs4callback.c struct xdr_stream *xdr, xdr 601 fs/nfsd/nfs4callback.c status = decode_cb_compound4res(xdr, &hdr); xdr 605 fs/nfsd/nfs4callback.c status = decode_cb_sequence4res(xdr, cb); xdr 609 fs/nfsd/nfs4callback.c return decode_cb_op_status(xdr, OP_CB_LAYOUTRECALL, &cb->cb_status); xdr 613 fs/nfsd/nfs4callback.c static void encode_stateowner(struct xdr_stream *xdr, struct nfs4_stateowner *so) xdr 617 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 8 + 4 + so->so_owner.len); xdr 623 fs/nfsd/nfs4callback.c struct xdr_stream *xdr, xdr 639 fs/nfsd/nfs4callback.c encode_cb_compound4args(xdr, &hdr); xdr 640 fs/nfsd/nfs4callback.c encode_cb_sequence4args(xdr, cb, &hdr); xdr 642 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 4); xdr 644 fs/nfsd/nfs4callback.c encode_nfs_fh4(xdr, &nbl->nbl_fh); xdr 645 fs/nfsd/nfs4callback.c encode_stateowner(xdr, &lo->lo_owner); xdr 652 fs/nfsd/nfs4callback.c struct xdr_stream *xdr, xdr 659 fs/nfsd/nfs4callback.c status = decode_cb_compound4res(xdr, &hdr); xdr 663 fs/nfsd/nfs4callback.c status = decode_cb_sequence4res(xdr, cb); xdr 667 fs/nfsd/nfs4callback.c return decode_cb_op_status(xdr, OP_CB_NOTIFY_LOCK, &cb->cb_status); xdr 689 fs/nfsd/nfs4callback.c static void encode_offload_info4(struct xdr_stream *xdr, xdr 695 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 4); xdr 698 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 4 + 8 + 4 + NFS4_VERIFIER_SIZE); xdr 705 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 8); xdr 711 fs/nfsd/nfs4callback.c static void encode_cb_offload4args(struct xdr_stream *xdr, xdr 719 fs/nfsd/nfs4callback.c p = xdr_reserve_space(xdr, 4); xdr 721 fs/nfsd/nfs4callback.c encode_nfs_fh4(xdr, fh); xdr 722 fs/nfsd/nfs4callback.c encode_stateid4(xdr, &cp->cp_res.cb_stateid); xdr 723 fs/nfsd/nfs4callback.c encode_offload_info4(xdr, nfserr, cp); xdr 729 fs/nfsd/nfs4callback.c struct xdr_stream *xdr, xdr 740 fs/nfsd/nfs4callback.c encode_cb_compound4args(xdr, &hdr); xdr 741 fs/nfsd/nfs4callback.c encode_cb_sequence4args(xdr, cb, &hdr); xdr 742 fs/nfsd/nfs4callback.c encode_cb_offload4args(xdr, cp->nfserr, &cp->fh, cp, &hdr); xdr 747 fs/nfsd/nfs4callback.c struct xdr_stream *xdr, xdr 754 fs/nfsd/nfs4callback.c status = decode_cb_compound4res(xdr, &hdr); xdr 758 fs/nfsd/nfs4callback.c status = decode_cb_sequence4res(xdr, cb); xdr 762 fs/nfsd/nfs4callback.c return decode_cb_op_status(xdr, OP_CB_OFFLOAD, &cb->cb_status); xdr 548 fs/nfsd/nfs4idmap.c static __be32 encode_ascii_id(struct xdr_stream *xdr, u32 id) xdr 555 fs/nfsd/nfs4idmap.c p = xdr_reserve_space(xdr, len + 4); xdr 562 fs/nfsd/nfs4idmap.c static __be32 idmap_id_to_name(struct xdr_stream *xdr, xdr 576 fs/nfsd/nfs4idmap.c return encode_ascii_id(xdr, id); xdr 581 fs/nfsd/nfs4idmap.c p = xdr_reserve_space(xdr, ret + 4); xdr 618 fs/nfsd/nfs4idmap.c static __be32 encode_name_from_id(struct xdr_stream *xdr, xdr 622 fs/nfsd/nfs4idmap.c return encode_ascii_id(xdr, id); xdr 623 fs/nfsd/nfs4idmap.c return idmap_id_to_name(xdr, rqstp, type, id); xdr 660 fs/nfsd/nfs4idmap.c __be32 nfsd4_encode_user(struct xdr_stream *xdr, struct svc_rqst *rqstp, xdr 664 fs/nfsd/nfs4idmap.c return encode_name_from_id(xdr, rqstp, IDMAP_TYPE_USER, id); xdr 667 fs/nfsd/nfs4idmap.c __be32 nfsd4_encode_group(struct xdr_stream *xdr, struct svc_rqst *rqstp, xdr 671 fs/nfsd/nfs4idmap.c return encode_name_from_id(xdr, rqstp, IDMAP_TYPE_GROUP, id); xdr 1899 fs/nfsd/nfs4proc.c struct xdr_stream *xdr = &resp->xdr; xdr 1903 fs/nfsd/nfs4proc.c xdr->buf = buf; xdr 1904 fs/nfsd/nfs4proc.c xdr->iov = head; xdr 1905 fs/nfsd/nfs4proc.c xdr->p = head->iov_base + head->iov_len; xdr 1906 fs/nfsd/nfs4proc.c xdr->end = head->iov_base + PAGE_SIZE - rqstp->rq_auth_slack; xdr 1909 fs/nfsd/nfs4proc.c xdr->scratch.iov_len = 0; xdr 1910 fs/nfsd/nfs4proc.c xdr->page_ptr = buf->pages - 1; xdr 1931 fs/nfsd/nfs4proc.c resp->tagp = resp->xdr.p; xdr 1933 fs/nfsd/nfs4proc.c xdr_reserve_space(&resp->xdr, 8 + args->taglen); xdr 2034 fs/nfsd/nfs4proc.c nfsd4_encode_replay(&resp->xdr, op); xdr 2807 fs/nfsd/nfs4state.c struct xdr_buf *buf = resp->xdr.buf; xdr 2877 fs/nfsd/nfs4state.c struct xdr_stream *xdr = &resp->xdr; xdr 2887 fs/nfsd/nfs4state.c p = xdr_reserve_space(xdr, slot->sl_datalen); xdr 2893 fs/nfsd/nfs4state.c xdr_commit_encode(xdr); xdr 3583 fs/nfsd/nfs4state.c struct xdr_stream *xdr = &resp->xdr; xdr 3661 fs/nfsd/nfs4state.c if (xdr_restrict_buflen(xdr, buflen - rqstp->rq_auth_slack)) xdr 2057 fs/nfsd/nfs4xdr.c static __be32 nfsd4_encode_components_esc(struct xdr_stream *xdr, char sep, xdr 2069 fs/nfsd/nfs4xdr.c pathlen_offset = xdr->buf->len; xdr 2070 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2096 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, strlen + 4); xdr 2110 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, pathlen_offset, &pathlen, 4); xdr 2117 fs/nfsd/nfs4xdr.c static __be32 nfsd4_encode_components(struct xdr_stream *xdr, char sep, xdr 2120 fs/nfsd/nfs4xdr.c return nfsd4_encode_components_esc(xdr, sep, components, 0, 0); xdr 2126 fs/nfsd/nfs4xdr.c static __be32 nfsd4_encode_fs_location4(struct xdr_stream *xdr, xdr 2131 fs/nfsd/nfs4xdr.c status = nfsd4_encode_components_esc(xdr, ':', location->hosts, xdr 2135 fs/nfsd/nfs4xdr.c status = nfsd4_encode_components(xdr, '/', location->path); xdr 2144 fs/nfsd/nfs4xdr.c static __be32 nfsd4_encode_path(struct xdr_stream *xdr, xdr 2181 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2192 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, len + 4); xdr 2214 fs/nfsd/nfs4xdr.c static __be32 nfsd4_encode_fsloc_fsroot(struct xdr_stream *xdr, xdr 2223 fs/nfsd/nfs4xdr.c res = nfsd4_encode_path(xdr, &exp_ps->ex_path, path); xdr 2231 fs/nfsd/nfs4xdr.c static __be32 nfsd4_encode_fs_locations(struct xdr_stream *xdr, xdr 2239 fs/nfsd/nfs4xdr.c status = nfsd4_encode_fsloc_fsroot(xdr, rqstp, &exp->ex_path); xdr 2242 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2247 fs/nfsd/nfs4xdr.c status = nfsd4_encode_fs_location4(xdr, &fslocs->locations[i]); xdr 2269 fs/nfsd/nfs4xdr.c nfsd4_encode_aclname(struct xdr_stream *xdr, struct svc_rqst *rqstp, xdr 2273 fs/nfsd/nfs4xdr.c return nfs4_acl_write_who(xdr, ace->whotype); xdr 2275 fs/nfsd/nfs4xdr.c return nfsd4_encode_group(xdr, rqstp, ace->who_gid); xdr 2277 fs/nfsd/nfs4xdr.c return nfsd4_encode_user(xdr, rqstp, ace->who_uid); xdr 2281 fs/nfsd/nfs4xdr.c nfsd4_encode_layout_types(struct xdr_stream *xdr, u32 layout_types) xdr 2286 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4 + 4 * i); xdr 2306 fs/nfsd/nfs4xdr.c nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp, xdr 2311 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, len + 4 + 4 + 4); xdr 2326 fs/nfsd/nfs4xdr.c nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp, xdr 2365 fs/nfsd/nfs4xdr.c nfsd4_encode_bitmap(struct xdr_stream *xdr, u32 bmval0, u32 bmval1, u32 bmval2) xdr 2370 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 16); xdr 2378 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 12); xdr 2385 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2402 fs/nfsd/nfs4xdr.c nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp, xdr 2414 fs/nfsd/nfs4xdr.c int starting_len = xdr->buf->len; xdr 2496 fs/nfsd/nfs4xdr.c status = nfsd4_encode_bitmap(xdr, bmval0, bmval1, bmval2); xdr 2500 fs/nfsd/nfs4xdr.c attrlen_offset = xdr->buf->len; xdr 2501 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2516 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 12); xdr 2523 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 16); xdr 2533 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2544 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2554 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2560 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2566 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2572 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2578 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2584 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 16); xdr 2608 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2614 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2620 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2629 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2636 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2642 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4*3); xdr 2649 fs/nfsd/nfs4xdr.c status = nfsd4_encode_aclname(xdr, rqstp, ace); xdr 2656 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2663 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2669 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2675 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2681 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2687 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, fhp->fh_handle.fh_size + 4); xdr 2694 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2700 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2706 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2712 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2718 fs/nfsd/nfs4xdr.c status = nfsd4_encode_fs_locations(xdr, rqstp, exp); xdr 2723 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2729 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2735 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2741 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2747 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2753 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2759 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2765 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2771 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2777 fs/nfsd/nfs4xdr.c status = nfsd4_encode_user(xdr, rqstp, stat.uid); xdr 2782 fs/nfsd/nfs4xdr.c status = nfsd4_encode_group(xdr, rqstp, stat.gid); xdr 2787 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2794 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2801 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2808 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2815 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2822 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 12); xdr 2829 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 12); xdr 2835 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 12); xdr 2842 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 12); xdr 2852 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 2870 fs/nfsd/nfs4xdr.c status = nfsd4_encode_layout_types(xdr, exp->ex_layout_types); xdr 2876 fs/nfsd/nfs4xdr.c status = nfsd4_encode_layout_types(xdr, exp->ex_layout_types); xdr 2882 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2896 fs/nfsd/nfs4xdr.c status = nfsd4_encode_bitmap(xdr, supp[0], supp[1], supp[2]); xdr 2902 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 2913 fs/nfsd/nfs4xdr.c status = nfsd4_encode_security_label(xdr, rqstp, context, xdr 2920 fs/nfsd/nfs4xdr.c attrlen = htonl(xdr->buf->len - attrlen_offset - 4); xdr 2921 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, attrlen_offset, &attrlen, 4); xdr 2935 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, starting_len); xdr 2945 fs/nfsd/nfs4xdr.c static void svcxdr_init_encode_from_buffer(struct xdr_stream *xdr, xdr 2948 fs/nfsd/nfs4xdr.c xdr->scratch.iov_len = 0; xdr 2953 fs/nfsd/nfs4xdr.c xdr->buf = buf; xdr 2954 fs/nfsd/nfs4xdr.c xdr->iov = buf->head; xdr 2955 fs/nfsd/nfs4xdr.c xdr->p = p; xdr 2956 fs/nfsd/nfs4xdr.c xdr->end = (void *)p + bytes; xdr 2966 fs/nfsd/nfs4xdr.c struct xdr_stream xdr; xdr 2969 fs/nfsd/nfs4xdr.c svcxdr_init_encode_from_buffer(&xdr, &dummy, *p, words << 2); xdr 2970 fs/nfsd/nfs4xdr.c ret = nfsd4_encode_fattr(&xdr, fhp, exp, dentry, bmval, rqstp, xdr 2972 fs/nfsd/nfs4xdr.c *p = xdr.p; xdr 2986 fs/nfsd/nfs4xdr.c nfsd4_encode_dirent_fattr(struct xdr_stream *xdr, struct nfsd4_readdir *cd, xdr 3039 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_fattr(xdr, NULL, exp, dentry, cd->rd_bmval, xdr 3048 fs/nfsd/nfs4xdr.c nfsd4_encode_rdattr_error(struct xdr_stream *xdr, __be32 nfserr) xdr 3052 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 20); xdr 3070 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = cd->xdr; xdr 3071 fs/nfsd/nfs4xdr.c int start_offset = xdr->buf->len; xdr 3087 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, cd->cookie_offset, xdr 3091 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 3095 fs/nfsd/nfs4xdr.c cookie_offset = xdr->buf->len; xdr 3096 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 3*4 + namlen); xdr 3102 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_dirent_fattr(xdr, cd, name, namlen); xdr 3110 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, start_offset); xdr 3122 fs/nfsd/nfs4xdr.c p = nfsd4_encode_rdattr_error(xdr, nfserr); xdr 3129 fs/nfsd/nfs4xdr.c entry_bytes = xdr->buf->len - start_offset; xdr 3149 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, start_offset); xdr 3155 fs/nfsd/nfs4xdr.c nfsd4_encode_stateid(struct xdr_stream *xdr, stateid_t *sid) xdr 3159 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, sizeof(stateid_t)); xdr 3171 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3174 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 3184 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3187 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN + 8); xdr 3201 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3203 fs/nfsd/nfs4xdr.c return nfsd4_encode_stateid(xdr, &close->cl_stateid); xdr 3210 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3213 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, NFS4_VERIFIER_SIZE); xdr 3224 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3227 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 20); xdr 3231 fs/nfsd/nfs4xdr.c return nfsd4_encode_bitmap(xdr, create->cr_bmval[0], xdr 3239 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3241 fs/nfsd/nfs4xdr.c return nfsd4_encode_fattr(xdr, fhp, fhp->fh_export, fhp->fh_dentry, xdr 3248 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3254 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, len + 4); xdr 3266 fs/nfsd/nfs4xdr.c nfsd4_encode_lock_denied(struct xdr_stream *xdr, struct nfsd4_lock_denied *ld) xdr 3272 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 32 + XDR_LEN(conf->len)); xdr 3303 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3306 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_stateid(xdr, &lock->lk_resp_stateid); xdr 3308 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_lock_denied(xdr, &lock->lk_denied); xdr 3316 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3319 fs/nfsd/nfs4xdr.c nfsd4_encode_lock_denied(xdr, &lockt->lt_denied); xdr 3326 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3328 fs/nfsd/nfs4xdr.c return nfsd4_encode_stateid(xdr, &locku->lu_stateid); xdr 3335 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3338 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 20); xdr 3349 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3352 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_stateid(xdr, &open->op_stateid); xdr 3355 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 24); xdr 3361 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_bitmap(xdr, open->op_bmval[0], open->op_bmval[1], xdr 3366 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 3375 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); xdr 3378 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 20); xdr 3392 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_stateid(xdr, &open->op_delegate_stateid); xdr 3395 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 32); xdr 3419 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 3427 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 3443 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3445 fs/nfsd/nfs4xdr.c return nfsd4_encode_stateid(xdr, &oc->oc_resp_stateid); xdr 3451 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3453 fs/nfsd/nfs4xdr.c return nfsd4_encode_stateid(xdr, &od->od_stateid); xdr 3461 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3462 fs/nfsd/nfs4xdr.c struct xdr_buf *buf = xdr->buf; xdr 3467 fs/nfsd/nfs4xdr.c __be32 *p = xdr->p - 2; xdr 3470 fs/nfsd/nfs4xdr.c if (xdr->end - xdr->p < 1) xdr 3492 fs/nfsd/nfs4xdr.c xdr->page_ptr += (buf->page_base + maxcount + PAGE_SIZE - 1) xdr 3496 fs/nfsd/nfs4xdr.c buf->tail[0].iov_base = xdr->p; xdr 3498 fs/nfsd/nfs4xdr.c xdr->iov = buf->tail; xdr 3502 fs/nfsd/nfs4xdr.c *(xdr->p++) = 0; xdr 3509 fs/nfsd/nfs4xdr.c space_left = min_t(int, (void *)xdr->end - (void *)xdr->p, xdr 3512 fs/nfsd/nfs4xdr.c xdr->end = (__be32 *)((void *)xdr->end + space_left); xdr 3521 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3524 fs/nfsd/nfs4xdr.c int starting_len = xdr->buf->len - 8; xdr 3536 fs/nfsd/nfs4xdr.c thislen = min_t(long, len, ((void *)xdr->end - (void *)xdr->p)); xdr 3537 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, (thislen+3)&~3); xdr 3546 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, (thislen+3)&~3); xdr 3562 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, starting_len + 8 + ((maxcount+3)&~3)); xdr 3565 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, starting_len , &tmp, 4); xdr 3567 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, starting_len + 4, &tmp, 4); xdr 3570 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, starting_len + 8 + maxcount, xdr 3581 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3583 fs/nfsd/nfs4xdr.c int starting_len = xdr->buf->len; xdr 3590 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); /* eof flag and byte count */ xdr 3595 fs/nfsd/nfs4xdr.c if (resp->xdr.buf->page_len && xdr 3600 fs/nfsd/nfs4xdr.c xdr_commit_encode(xdr); xdr 3604 fs/nfsd/nfs4xdr.c (xdr->buf->buflen - xdr->buf->len)); xdr 3614 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, starting_len); xdr 3625 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3626 fs/nfsd/nfs4xdr.c int length_offset = xdr->buf->len; xdr 3629 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 3634 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, maxcount); xdr 3648 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, length_offset); xdr 3653 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, length_offset, &wire_count, 4); xdr 3654 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, length_offset + 4 + ALIGN(maxcount, 4)); xdr 3656 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, length_offset + 4 + maxcount, xdr 3668 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3669 fs/nfsd/nfs4xdr.c int starting_len = xdr->buf->len; xdr 3672 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, NFS4_VERIFIER_SIZE); xdr 3679 fs/nfsd/nfs4xdr.c resp->xdr.buf->head[0].iov_len = ((char *)resp->xdr.p) xdr 3680 fs/nfsd/nfs4xdr.c - (char *)resp->xdr.buf->head[0].iov_base; xdr 3686 fs/nfsd/nfs4xdr.c bytes_left = xdr->buf->buflen - xdr->buf->len xdr 3709 fs/nfsd/nfs4xdr.c readdir->xdr = xdr; xdr 3720 fs/nfsd/nfs4xdr.c xdr->buf->len == starting_len + 8) { xdr 3734 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, readdir->cookie_offset, xdr 3738 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 3748 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, starting_len); xdr 3755 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3758 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 20); xdr 3768 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3771 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 40); xdr 3780 fs/nfsd/nfs4xdr.c nfsd4_do_encode_secinfo(struct xdr_stream *xdr, struct svc_export *exp) xdr 3809 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 3820 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4 + 4 + xdr 3830 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 3851 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3853 fs/nfsd/nfs4xdr.c return nfsd4_do_encode_secinfo(xdr, secinfo->si_exp); xdr 3860 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3862 fs/nfsd/nfs4xdr.c return nfsd4_do_encode_secinfo(xdr, secinfo->sin_exp); xdr 3872 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3875 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 16); xdr 3896 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3900 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8 + NFS4_VERIFIER_SIZE); xdr 3908 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 3920 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3923 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 16); xdr 3937 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 3950 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, xdr 3969 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_bitmap(xdr, xdr 3976 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_bitmap(xdr, xdr 3987 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, xdr 4014 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 4017 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 24); xdr 4025 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 28); xdr 4037 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 4043 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 28); xdr 4055 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 4067 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 4070 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, NFS4_MAX_SESSIONID_LEN + 20); xdr 4082 fs/nfsd/nfs4xdr.c resp->cstate.data_offset = xdr->buf->len; /* DRC cache data pointer */ xdr 4090 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 4094 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4 + (4 * test_stateid->ts_num_ids)); xdr 4111 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 4113 fs/nfsd/nfs4xdr.c u32 starting_len = xdr->buf->len, needed_len; xdr 4116 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 4125 fs/nfsd/nfs4xdr.c nfserr = ops->encode_getdeviceinfo(xdr, gdev); xdr 4132 fs/nfsd/nfs4xdr.c if (xdr->buf->len + 4 > gdev->gd_maxcount) xdr 4139 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4 + 4); xdr 4145 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 4154 fs/nfsd/nfs4xdr.c needed_len = xdr->buf->len + 4 /* notifications */; xdr 4155 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, starting_len); xdr 4156 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 4167 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 4171 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 36 + sizeof(stateid_opaque_t)); xdr 4187 fs/nfsd/nfs4xdr.c return ops->encode_layoutget(xdr, lgp); xdr 4194 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 4197 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 4202 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 4215 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 4218 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 4); xdr 4223 fs/nfsd/nfs4xdr.c return nfsd4_encode_stateid(xdr, &lrp->lr_sid); xdr 4233 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(&resp->xdr, 4); xdr 4242 fs/nfsd/nfs4xdr.c nfserr = nfsd4_encode_stateid(&resp->xdr, &write->cb_stateid); xdr 4246 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(&resp->xdr, 8 + 4 + NFS4_VERIFIER_SIZE); xdr 4268 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(&resp->xdr, 4 + 4); xdr 4278 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 4281 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8 + 4); xdr 4296 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(&resp->xdr, 4 + 8); xdr 4432 fs/nfsd/nfs4xdr.c struct xdr_stream *xdr = &resp->xdr; xdr 4440 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8); xdr 4446 fs/nfsd/nfs4xdr.c post_err_offset = xdr->buf->len; xdr 4459 fs/nfsd/nfs4xdr.c xdr_commit_encode(xdr); xdr 4487 fs/nfsd/nfs4xdr.c xdr_truncate_encode(xdr, post_err_offset); xdr 4490 fs/nfsd/nfs4xdr.c int len = xdr->buf->len - post_err_offset; xdr 4494 fs/nfsd/nfs4xdr.c read_bytes_from_xdr_buf(xdr->buf, post_err_offset, xdr 4499 fs/nfsd/nfs4xdr.c write_bytes_to_xdr_buf(xdr->buf, post_err_offset - 4, &op->status, 4); xdr 4509 fs/nfsd/nfs4xdr.c nfsd4_encode_replay(struct xdr_stream *xdr, struct nfsd4_op *op) xdr 4516 fs/nfsd/nfs4xdr.c p = xdr_reserve_space(xdr, 8 + rp->rp_buflen); xdr 4581 fs/nfsd/nfs4xdr.c struct xdr_buf *buf = resp->xdr.buf; xdr 4586 fs/nfsd/nfs4xdr.c rqstp->rq_next_page = resp->xdr.page_ptr + 1; xdr 29 fs/nfsd/pnfs.h __be32 (*encode_getdeviceinfo)(struct xdr_stream *xdr, xdr 296 fs/nfsd/xdr4.h struct xdr_stream *xdr; xdr 669 fs/nfsd/xdr4.h struct xdr_stream xdr; xdr 737 fs/nfsd/xdr4.h void nfsd4_encode_replay(struct xdr_stream *xdr, struct nfsd4_op *op); xdr 294 include/linux/pnfs_osd_xdr.h struct pnfs_osd_xdr_decode_layout_iter *iter, struct xdr_stream *xdr); xdr 297 include/linux/pnfs_osd_xdr.h struct pnfs_osd_xdr_decode_layout_iter *iter, struct xdr_stream *xdr, xdr 310 include/linux/pnfs_osd_xdr.h pnfs_osd_xdr_encode_layoutupdate(struct xdr_stream *xdr, xdr 314 include/linux/pnfs_osd_xdr.h extern __be32 *pnfs_osd_xdr_ioerr_reserve_space(struct xdr_stream *xdr); xdr 133 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 136 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 138 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 140 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 169 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 171 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 173 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 175 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 177 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 179 include/linux/sunrpc/auth.h struct xdr_stream *xdr); xdr 174 include/linux/sunrpc/svc_rdma.h __be32 *wr_ch, struct xdr_buf *xdr); xdr 177 include/linux/sunrpc/svc_rdma.h struct xdr_buf *xdr); xdr 191 include/linux/sunrpc/svc_rdma.h struct xdr_buf *xdr, __be32 *wr_lst); xdr 246 include/linux/sunrpc/xdr.h typedef void (*kxdreproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 248 include/linux/sunrpc/xdr.h typedef int (*kxdrdproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 251 include/linux/sunrpc/xdr.h extern void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, xdr 253 include/linux/sunrpc/xdr.h extern __be32 *xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes); xdr 254 include/linux/sunrpc/xdr.h extern void xdr_commit_encode(struct xdr_stream *xdr); xdr 255 include/linux/sunrpc/xdr.h extern void xdr_truncate_encode(struct xdr_stream *xdr, size_t len); xdr 256 include/linux/sunrpc/xdr.h extern int xdr_restrict_buflen(struct xdr_stream *xdr, int newbuflen); xdr 257 include/linux/sunrpc/xdr.h extern void xdr_write_pages(struct xdr_stream *xdr, struct page **pages, xdr 259 include/linux/sunrpc/xdr.h extern unsigned int xdr_stream_pos(const struct xdr_stream *xdr); xdr 260 include/linux/sunrpc/xdr.h extern void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, xdr 262 include/linux/sunrpc/xdr.h extern void xdr_init_decode_pages(struct xdr_stream *xdr, struct xdr_buf *buf, xdr 264 include/linux/sunrpc/xdr.h extern void xdr_set_scratch_buffer(struct xdr_stream *xdr, void *buf, size_t buflen); xdr 265 include/linux/sunrpc/xdr.h extern __be32 *xdr_inline_decode(struct xdr_stream *xdr, size_t nbytes); xdr 266 include/linux/sunrpc/xdr.h extern unsigned int xdr_read_pages(struct xdr_stream *xdr, unsigned int len); xdr 267 include/linux/sunrpc/xdr.h extern void xdr_enter_page(struct xdr_stream *xdr, unsigned int len); xdr 278 include/linux/sunrpc/xdr.h xdr_stream_remaining(const struct xdr_stream *xdr) xdr 280 include/linux/sunrpc/xdr.h return xdr->nwords << 2; xdr 283 include/linux/sunrpc/xdr.h ssize_t xdr_stream_decode_opaque(struct xdr_stream *xdr, void *ptr, xdr 285 include/linux/sunrpc/xdr.h ssize_t xdr_stream_decode_opaque_dup(struct xdr_stream *xdr, void **ptr, xdr 287 include/linux/sunrpc/xdr.h ssize_t xdr_stream_decode_string(struct xdr_stream *xdr, char *str, xdr 289 include/linux/sunrpc/xdr.h ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str, xdr 316 include/linux/sunrpc/xdr.h xdr_stream_encode_u32(struct xdr_stream *xdr, __u32 n) xdr 319 include/linux/sunrpc/xdr.h __be32 *p = xdr_reserve_space(xdr, len); xdr 337 include/linux/sunrpc/xdr.h xdr_stream_encode_u64(struct xdr_stream *xdr, __u64 n) xdr 340 include/linux/sunrpc/xdr.h __be32 *p = xdr_reserve_space(xdr, len); xdr 359 include/linux/sunrpc/xdr.h xdr_stream_encode_opaque_inline(struct xdr_stream *xdr, void **ptr, size_t len) xdr 362 include/linux/sunrpc/xdr.h __be32 *p = xdr_reserve_space(xdr, count); xdr 384 include/linux/sunrpc/xdr.h xdr_stream_encode_opaque_fixed(struct xdr_stream *xdr, const void *ptr, size_t len) xdr 386 include/linux/sunrpc/xdr.h __be32 *p = xdr_reserve_space(xdr, len); xdr 405 include/linux/sunrpc/xdr.h xdr_stream_encode_opaque(struct xdr_stream *xdr, const void *ptr, size_t len) xdr 408 include/linux/sunrpc/xdr.h __be32 *p = xdr_reserve_space(xdr, count); xdr 427 include/linux/sunrpc/xdr.h xdr_stream_encode_uint32_array(struct xdr_stream *xdr, xdr 431 include/linux/sunrpc/xdr.h __be32 *p = xdr_reserve_space(xdr, ret); xdr 451 include/linux/sunrpc/xdr.h xdr_stream_decode_u32(struct xdr_stream *xdr, __u32 *ptr) xdr 454 include/linux/sunrpc/xdr.h __be32 *p = xdr_inline_decode(xdr, count); xdr 473 include/linux/sunrpc/xdr.h xdr_stream_decode_opaque_fixed(struct xdr_stream *xdr, void *ptr, size_t len) xdr 475 include/linux/sunrpc/xdr.h __be32 *p = xdr_inline_decode(xdr, len); xdr 500 include/linux/sunrpc/xdr.h xdr_stream_decode_opaque_inline(struct xdr_stream *xdr, void **ptr, size_t maxlen) xdr 506 include/linux/sunrpc/xdr.h if (unlikely(xdr_stream_decode_u32(xdr, &len) < 0)) xdr 509 include/linux/sunrpc/xdr.h p = xdr_inline_decode(xdr, len); xdr 531 include/linux/sunrpc/xdr.h xdr_stream_decode_uint32_array(struct xdr_stream *xdr, xdr 538 include/linux/sunrpc/xdr.h if (unlikely(xdr_stream_decode_u32(xdr, &len) < 0)) xdr 540 include/linux/sunrpc/xdr.h p = xdr_inline_decode(xdr, len * sizeof(*p)); xdr 340 include/trace/events/sunrpc.h const struct xdr_stream *xdr, xdr 344 include/trace/events/sunrpc.h TP_ARGS(xdr, requested), xdr 360 include/trace/events/sunrpc.h xdr->rqst->rq_task->tk_client->cl_program->name) xdr 362 include/trace/events/sunrpc.h xdr->rqst->rq_task->tk_msg.rpc_proc->p_name) xdr 366 include/trace/events/sunrpc.h if (xdr->rqst) { xdr 367 include/trace/events/sunrpc.h const struct rpc_task *task = xdr->rqst->rq_task; xdr 383 include/trace/events/sunrpc.h __entry->end = xdr->end; xdr 384 include/trace/events/sunrpc.h __entry->p = xdr->p; xdr 385 include/trace/events/sunrpc.h __entry->head_base = xdr->buf->head[0].iov_base, xdr 386 include/trace/events/sunrpc.h __entry->head_len = xdr->buf->head[0].iov_len, xdr 387 include/trace/events/sunrpc.h __entry->page_len = xdr->buf->page_len, xdr 388 include/trace/events/sunrpc.h __entry->tail_base = xdr->buf->tail[0].iov_base, xdr 389 include/trace/events/sunrpc.h __entry->tail_len = xdr->buf->tail[0].iov_len, xdr 390 include/trace/events/sunrpc.h __entry->len = xdr->buf->len; xdr 407 include/trace/events/sunrpc.h const struct xdr_stream *xdr, xdr 412 include/trace/events/sunrpc.h TP_ARGS(xdr, offset, copied), xdr 427 include/trace/events/sunrpc.h xdr->rqst->rq_task->tk_client->cl_program->name) xdr 429 include/trace/events/sunrpc.h xdr->rqst->rq_task->tk_msg.rpc_proc->p_name) xdr 433 include/trace/events/sunrpc.h const struct rpc_task *task = xdr->rqst->rq_task; xdr 444 include/trace/events/sunrpc.h __entry->head_base = xdr->buf->head[0].iov_base, xdr 445 include/trace/events/sunrpc.h __entry->head_len = xdr->buf->head[0].iov_len, xdr 446 include/trace/events/sunrpc.h __entry->page_len = xdr->buf->page_len, xdr 447 include/trace/events/sunrpc.h __entry->tail_base = xdr->buf->tail[0].iov_base, xdr 448 include/trace/events/sunrpc.h __entry->tail_len = xdr->buf->tail[0].iov_len, xdr 449 include/trace/events/sunrpc.h __entry->len = xdr->buf->len; xdr 90 net/rxrpc/key.c const __be32 *xdr, unsigned int toklen) xdr 98 net/rxrpc/key.c ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(xdr[3]), xdr 103 net/rxrpc/key.c tktlen = ntohl(xdr[7]); xdr 126 net/rxrpc/key.c token->kad->vice_id = ntohl(xdr[0]); xdr 127 net/rxrpc/key.c token->kad->kvno = ntohl(xdr[1]); xdr 128 net/rxrpc/key.c token->kad->start = ntohl(xdr[4]); xdr 129 net/rxrpc/key.c token->kad->expiry = ntohl(xdr[5]); xdr 130 net/rxrpc/key.c token->kad->primary_flag = ntohl(xdr[6]); xdr 131 net/rxrpc/key.c memcpy(&token->kad->session_key, &xdr[2], 8); xdr 132 net/rxrpc/key.c memcpy(&token->kad->ticket, &xdr[8], tktlen); xdr 219 net/rxrpc/key.c const __be32 *xdr = *_xdr; xdr 228 net/rxrpc/key.c ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), toklen); xdr 230 net/rxrpc/key.c n_parts = ntohl(*xdr++); xdr 246 net/rxrpc/key.c tmp = ntohl(*xdr++); xdr 256 net/rxrpc/key.c memcpy(princ->name_parts[loop], xdr, tmp); xdr 259 net/rxrpc/key.c xdr += paddedlen >> 2; xdr 264 net/rxrpc/key.c tmp = ntohl(*xdr++); xdr 274 net/rxrpc/key.c memcpy(princ->realm, xdr, tmp); xdr 277 net/rxrpc/key.c xdr += paddedlen >> 2; xdr 281 net/rxrpc/key.c *_xdr = xdr; xdr 295 net/rxrpc/key.c const __be32 *xdr = *_xdr; xdr 303 net/rxrpc/key.c max_data_size, ntohl(xdr[0]), ntohl(xdr[1]), toklen); xdr 305 net/rxrpc/key.c td->tag = ntohl(*xdr++); xdr 306 net/rxrpc/key.c len = ntohl(*xdr++); xdr 316 net/rxrpc/key.c td->data = kmemdup(xdr, len, GFP_KERNEL); xdr 320 net/rxrpc/key.c xdr += paddedlen >> 2; xdr 325 net/rxrpc/key.c *_xdr = xdr; xdr 342 net/rxrpc/key.c const __be32 *xdr = *_xdr; xdr 351 net/rxrpc/key.c max_n_elem, max_elem_size, ntohl(xdr[0]), toklen); xdr 353 net/rxrpc/key.c n_elem = ntohl(*xdr++); xdr 373 net/rxrpc/key.c &xdr, &toklen); xdr 379 net/rxrpc/key.c *_xdr = xdr; xdr 391 net/rxrpc/key.c const __be32 *xdr = *_xdr; xdr 398 net/rxrpc/key.c _enter(",{%x},%u", ntohl(xdr[0]), toklen); xdr 400 net/rxrpc/key.c len = ntohl(*xdr++); xdr 412 net/rxrpc/key.c *_ticket = kmemdup(xdr, len, GFP_KERNEL); xdr 416 net/rxrpc/key.c xdr += paddedlen >> 2; xdr 419 net/rxrpc/key.c *_xdr = xdr; xdr 431 net/rxrpc/key.c const __be32 *xdr, unsigned int toklen) xdr 435 net/rxrpc/key.c const __be32 *end_xdr = xdr + (toklen >> 2); xdr 440 net/rxrpc/key.c ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(xdr[3]), xdr 461 net/rxrpc/key.c ret = rxrpc_krb5_decode_principal(&rxk5->client, &xdr, &toklen); xdr 464 net/rxrpc/key.c ret = rxrpc_krb5_decode_principal(&rxk5->server, &xdr, &toklen); xdr 471 net/rxrpc/key.c &xdr, &toklen); xdr 477 net/rxrpc/key.c rxk5->authtime = be64_to_cpup((const __be64 *) xdr); xdr 478 net/rxrpc/key.c xdr += 2; xdr 479 net/rxrpc/key.c rxk5->starttime = be64_to_cpup((const __be64 *) xdr); xdr 480 net/rxrpc/key.c xdr += 2; xdr 481 net/rxrpc/key.c rxk5->endtime = be64_to_cpup((const __be64 *) xdr); xdr 482 net/rxrpc/key.c xdr += 2; xdr 483 net/rxrpc/key.c rxk5->renew_till = be64_to_cpup((const __be64 *) xdr); xdr 484 net/rxrpc/key.c xdr += 2; xdr 485 net/rxrpc/key.c rxk5->is_skey = ntohl(*xdr++); xdr 486 net/rxrpc/key.c rxk5->flags = ntohl(*xdr++); xdr 499 net/rxrpc/key.c &xdr, &toklen); xdr 503 net/rxrpc/key.c ASSERTCMP((end_xdr - xdr) << 2, ==, toklen); xdr 507 net/rxrpc/key.c &xdr, &toklen); xdr 511 net/rxrpc/key.c &xdr, &toklen); xdr 515 net/rxrpc/key.c ASSERTCMP((end_xdr - xdr) << 2, ==, toklen); xdr 522 net/rxrpc/key.c &xdr, &toklen); xdr 526 net/rxrpc/key.c ASSERTCMP((end_xdr - xdr) << 2, ==, toklen); xdr 559 net/rxrpc/key.c const __be32 *xdr = prep->data, *token; xdr 566 net/rxrpc/key.c ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(xdr[3]), xdr 578 net/rxrpc/key.c if (ntohl(*xdr++) != 0) xdr 583 net/rxrpc/key.c len = ntohl(*xdr++); xdr 591 net/rxrpc/key.c cp = (const char *) xdr; xdr 599 net/rxrpc/key.c len, paddedlen, len, len, (const char *) xdr); xdr 601 net/rxrpc/key.c xdr += paddedlen >> 2; xdr 606 net/rxrpc/key.c ntoken = ntohl(*xdr++); xdr 613 net/rxrpc/key.c token = xdr; xdr 618 net/rxrpc/key.c toklen = ntohl(*xdr++); xdr 619 net/rxrpc/key.c sec_ix = ntohl(*xdr); xdr 626 net/rxrpc/key.c xdr += paddedlen >> 2; xdr 638 net/rxrpc/key.c xdr = token; xdr 639 net/rxrpc/key.c toklen = ntohl(*xdr++); xdr 640 net/rxrpc/key.c token = xdr + ((toklen + 3) >> 2); xdr 641 net/rxrpc/key.c sec_ix = ntohl(*xdr++); xdr 644 net/rxrpc/key.c _debug("TOKEN type=%u [%p-%p]", sec_ix, xdr, token); xdr 648 net/rxrpc/key.c ret = rxrpc_preparse_xdr_rxkad(prep, datalen, xdr, toklen); xdr 654 net/rxrpc/key.c ret = rxrpc_preparse_xdr_rxk5(prep, datalen, xdr, toklen); xdr 1050 net/rxrpc/key.c __be32 *xdr, *oldxdr; xdr 1127 net/rxrpc/key.c xdr = (__be32 *)buffer; xdr 1131 net/rxrpc/key.c *xdr++ = htonl(x); \ xdr 1137 net/rxrpc/key.c memcpy(xdr, (s), _l); \ xdr 1139 net/rxrpc/key.c memcpy((u8 *)xdr + _l, &zero, 4 - (_l & 3)); \ xdr 1140 net/rxrpc/key.c xdr += (_l + 3) >> 2; \ xdr 1145 net/rxrpc/key.c memcpy(xdr, &y, 8); \ xdr 1146 net/rxrpc/key.c xdr += 8 >> 2; \ xdr 1162 net/rxrpc/key.c oldxdr = xdr; xdr 1223 net/rxrpc/key.c ASSERTCMP((unsigned long)xdr - (unsigned long)oldxdr, ==, xdr 1233 net/rxrpc/key.c ASSERTCMP((char __user *) xdr - buffer, ==, size); xdr 772 net/sunrpc/auth.c int rpcauth_marshcred(struct rpc_task *task, struct xdr_stream *xdr) xdr 776 net/sunrpc/auth.c return ops->crmarshal(task, xdr); xdr 787 net/sunrpc/auth.c int rpcauth_wrap_req_encode(struct rpc_task *task, struct xdr_stream *xdr) xdr 791 net/sunrpc/auth.c encode(task->tk_rqstp, xdr, task->tk_msg.rpc_argp); xdr 805 net/sunrpc/auth.c int rpcauth_wrap_req(struct rpc_task *task, struct xdr_stream *xdr) xdr 809 net/sunrpc/auth.c return ops->crwrap_req(task, xdr); xdr 822 net/sunrpc/auth.c rpcauth_checkverf(struct rpc_task *task, struct xdr_stream *xdr) xdr 826 net/sunrpc/auth.c return ops->crvalidate(task, xdr); xdr 837 net/sunrpc/auth.c rpcauth_unwrap_resp_decode(struct rpc_task *task, struct xdr_stream *xdr) xdr 841 net/sunrpc/auth.c return decode(task->tk_rqstp, xdr, task->tk_msg.rpc_resp); xdr 853 net/sunrpc/auth.c rpcauth_unwrap_resp(struct rpc_task *task, struct xdr_stream *xdr) xdr 857 net/sunrpc/auth.c return ops->crunwrap_resp(task, xdr); xdr 1526 net/sunrpc/auth_gss/auth_gss.c static int gss_marshal(struct rpc_task *task, struct xdr_stream *xdr) xdr 1542 net/sunrpc/auth_gss/auth_gss.c p = xdr_reserve_space(xdr, 7 * sizeof(*p) + xdr 1571 net/sunrpc/auth_gss/auth_gss.c p = xdr_reserve_space(xdr, sizeof(*p)); xdr 1581 net/sunrpc/auth_gss/auth_gss.c if (xdr_stream_encode_opaque_inline(xdr, (void **)&p, mic.len) < 0) xdr 1672 net/sunrpc/auth_gss/auth_gss.c gss_validate(struct rpc_task *task, struct xdr_stream *xdr) xdr 1683 net/sunrpc/auth_gss/auth_gss.c p = xdr_inline_decode(xdr, 2 * sizeof(*p)); xdr 1691 net/sunrpc/auth_gss/auth_gss.c p = xdr_inline_decode(xdr, len); xdr 1729 net/sunrpc/auth_gss/auth_gss.c struct rpc_task *task, struct xdr_stream *xdr) xdr 1737 net/sunrpc/auth_gss/auth_gss.c p = xdr_reserve_space(xdr, 2 * sizeof(*p)); xdr 1743 net/sunrpc/auth_gss/auth_gss.c if (rpcauth_wrap_req_encode(task, xdr)) xdr 1752 net/sunrpc/auth_gss/auth_gss.c p = xdr_reserve_space(xdr, 0); xdr 1762 net/sunrpc/auth_gss/auth_gss.c if (xdr_stream_encode_opaque_inline(xdr, (void **)&p, mic.len) < 0) xdr 1821 net/sunrpc/auth_gss/auth_gss.c struct rpc_task *task, struct xdr_stream *xdr) xdr 1833 net/sunrpc/auth_gss/auth_gss.c p = xdr_reserve_space(xdr, 2 * sizeof(*p)); xdr 1839 net/sunrpc/auth_gss/auth_gss.c if (rpcauth_wrap_req_encode(task, xdr)) xdr 1894 net/sunrpc/auth_gss/auth_gss.c static int gss_wrap_req(struct rpc_task *task, struct xdr_stream *xdr) xdr 1907 net/sunrpc/auth_gss/auth_gss.c status = rpcauth_wrap_req_encode(task, xdr); xdr 1912 net/sunrpc/auth_gss/auth_gss.c status = rpcauth_wrap_req_encode(task, xdr); xdr 1915 net/sunrpc/auth_gss/auth_gss.c status = gss_wrap_req_integ(cred, ctx, task, xdr); xdr 1918 net/sunrpc/auth_gss/auth_gss.c status = gss_wrap_req_priv(cred, ctx, task, xdr); xdr 1954 net/sunrpc/auth_gss/auth_gss.c struct xdr_stream *xdr) xdr 1966 net/sunrpc/auth_gss/auth_gss.c if (xdr_stream_decode_u32(xdr, &len)) xdr 1970 net/sunrpc/auth_gss/auth_gss.c offset = rcv_buf->len - xdr_stream_remaining(xdr); xdr 1971 net/sunrpc/auth_gss/auth_gss.c if (xdr_stream_decode_u32(xdr, &seqno)) xdr 2028 net/sunrpc/auth_gss/auth_gss.c struct xdr_stream *xdr) xdr 2036 net/sunrpc/auth_gss/auth_gss.c p = xdr_inline_decode(xdr, 2 * sizeof(*p)); xdr 2057 net/sunrpc/auth_gss/auth_gss.c xdr_init_decode(xdr, rcv_buf, p, rqstp); xdr 2118 net/sunrpc/auth_gss/auth_gss.c gss_unwrap_resp(struct rpc_task *task, struct xdr_stream *xdr) xdr 2134 net/sunrpc/auth_gss/auth_gss.c status = gss_unwrap_resp_integ(task, cred, ctx, rqstp, xdr); xdr 2137 net/sunrpc/auth_gss/auth_gss.c status = gss_unwrap_resp_priv(task, cred, ctx, rqstp, xdr); xdr 2144 net/sunrpc/auth_gss/auth_gss.c status = rpcauth_unwrap_resp_decode(task, xdr); xdr 11 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_enc_bool(struct xdr_stream *xdr, int v) xdr 15 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, 4); xdr 22 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_dec_bool(struct xdr_stream *xdr, u32 *v) xdr 26 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 4); xdr 33 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_enc_buffer(struct xdr_stream *xdr, xdr 38 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, sizeof(u32) + buf->len); xdr 45 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_enc_in_token(struct xdr_stream *xdr, xdr 50 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, 4); xdr 56 net/sunrpc/auth_gss/gss_rpc_xdr.c xdr_write_pages(xdr, in->pages, in->page_base, in->page_len); xdr 62 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_dec_buffer(struct xdr_stream *xdr, xdr 68 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 4); xdr 73 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, length); xdr 95 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_enc_option(struct xdr_stream *xdr, xdr 100 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &opt->option); xdr 103 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &opt->value); xdr 107 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_dec_option(struct xdr_stream *xdr, xdr 112 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &opt->option); xdr 115 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &opt->value); xdr 119 net/sunrpc/auth_gss/gss_rpc_xdr.c static int dummy_enc_opt_array(struct xdr_stream *xdr, xdr 127 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, 4); xdr 135 net/sunrpc/auth_gss/gss_rpc_xdr.c static int dummy_dec_opt_array(struct xdr_stream *xdr, xdr 142 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 4); xdr 148 net/sunrpc/auth_gss/gss_rpc_xdr.c gssx_dec_option(xdr, &dummy); xdr 156 net/sunrpc/auth_gss/gss_rpc_xdr.c static int get_host_u32(struct xdr_stream *xdr, u32 *res) xdr 160 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 4); xdr 168 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_dec_linux_creds(struct xdr_stream *xdr, xdr 177 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 4); xdr 187 net/sunrpc/auth_gss/gss_rpc_xdr.c err = get_host_u32(xdr, &tmp); xdr 193 net/sunrpc/auth_gss/gss_rpc_xdr.c err = get_host_u32(xdr, &tmp); xdr 199 net/sunrpc/auth_gss/gss_rpc_xdr.c err = get_host_u32(xdr, &tmp); xdr 212 net/sunrpc/auth_gss/gss_rpc_xdr.c err = get_host_u32(xdr, &tmp); xdr 229 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_dec_option_array(struct xdr_stream *xdr, xdr 237 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 4); xdr 267 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 4); xdr 272 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, length); xdr 279 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_linux_creds(xdr, creds); xdr 285 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &dummy); xdr 293 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_dec_status(struct xdr_stream *xdr, xdr 300 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 8); xdr 306 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &status->mech); xdr 311 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 8); xdr 317 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &status->major_status_string); xdr 322 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &status->minor_status_string); xdr 327 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &status->server_ctx); xdr 333 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_dec_opt_array(xdr, &status->options); xdr 338 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_enc_call_ctx(struct xdr_stream *xdr, xdr 346 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &ctx->locale); xdr 351 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &ctx->server_ctx); xdr 357 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, 4); xdr 365 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_option(xdr, &opt); xdr 372 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_option(xdr, &opt); xdr 377 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_dec_name_attr(struct xdr_stream *xdr, xdr 383 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &attr->attr); xdr 388 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &attr->value); xdr 393 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_dec_opt_array(xdr, &attr->extensions); xdr 398 net/sunrpc/auth_gss/gss_rpc_xdr.c static int dummy_enc_nameattr_array(struct xdr_stream *xdr, xdr 406 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, 4); xdr 414 net/sunrpc/auth_gss/gss_rpc_xdr.c static int dummy_dec_nameattr_array(struct xdr_stream *xdr, xdr 421 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 4); xdr 426 net/sunrpc/auth_gss/gss_rpc_xdr.c gssx_dec_name_attr(xdr, &dummy); xdr 440 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_enc_name(struct xdr_stream *xdr, xdr 446 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &name->display_name); xdr 451 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &zero_netobj); xdr 456 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &zero_netobj); xdr 461 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &zero_netobj); xdr 468 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_enc_nameattr_array(xdr, &zero_name_attr_array); xdr 475 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_enc_opt_array(xdr, &zero_option_array); xdr 481 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_dec_name(struct xdr_stream *xdr, xdr 490 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &name->display_name); xdr 495 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &dummy_netobj); xdr 500 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &dummy_netobj); xdr 505 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &dummy_netobj); xdr 511 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_dec_nameattr_array(xdr, &dummy_name_attr_array); xdr 517 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_dec_opt_array(xdr, &dummy_option_array); xdr 522 net/sunrpc/auth_gss/gss_rpc_xdr.c static int dummy_enc_credel_array(struct xdr_stream *xdr, xdr 530 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, 4); xdr 538 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_enc_cred(struct xdr_stream *xdr, xdr 544 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_name(xdr, &cred->desired_name); xdr 549 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_enc_credel_array(xdr, &cred->elements); xdr 554 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &cred->cred_handle_reference); xdr 559 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_bool(xdr, cred->needs_release); xdr 564 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_enc_ctx(struct xdr_stream *xdr, xdr 571 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &ctx->exported_context_token); xdr 576 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &ctx->state); xdr 581 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_bool(xdr, ctx->need_release); xdr 586 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &ctx->mech); xdr 591 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_name(xdr, &ctx->src_name); xdr 596 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_name(xdr, &ctx->targ_name); xdr 601 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, 8+8); xdr 610 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_bool(xdr, ctx->locally_initiated); xdr 615 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_bool(xdr, ctx->open); xdr 622 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_enc_opt_array(xdr, &ctx->options); xdr 627 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_dec_ctx(struct xdr_stream *xdr, xdr 634 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &ctx->exported_context_token); xdr 639 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &ctx->state); xdr 644 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_bool(xdr, &ctx->need_release); xdr 649 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, &ctx->mech); xdr 654 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_name(xdr, &ctx->src_name); xdr 659 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_name(xdr, &ctx->targ_name); xdr 664 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_inline_decode(xdr, 8+8); xdr 673 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_bool(xdr, &ctx->locally_initiated); xdr 678 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_bool(xdr, &ctx->open); xdr 684 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_dec_opt_array(xdr, &ctx->options); xdr 689 net/sunrpc/auth_gss/gss_rpc_xdr.c static int gssx_enc_cb(struct xdr_stream *xdr, struct gssx_cb *cb) xdr 695 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, 8); xdr 701 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &cb->initiator_address); xdr 706 net/sunrpc/auth_gss/gss_rpc_xdr.c p = xdr_reserve_space(xdr, 8); xdr 712 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &cb->acceptor_address); xdr 717 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_buffer(xdr, &cb->application_data); xdr 723 net/sunrpc/auth_gss/gss_rpc_xdr.c struct xdr_stream *xdr, xdr 729 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_call_ctx(xdr, &arg->call_ctx); xdr 735 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_ctx(xdr, arg->context_handle); xdr 737 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_bool(xdr, 0); xdr 743 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_cred(xdr, arg->cred_handle); xdr 745 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_bool(xdr, 0); xdr 750 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_in_token(xdr, &arg->input_token); xdr 756 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_cb(xdr, arg->input_cb); xdr 758 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_bool(xdr, 0); xdr 762 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_enc_bool(xdr, arg->ret_deleg_cred); xdr 769 net/sunrpc/auth_gss/gss_rpc_xdr.c err = dummy_enc_opt_array(xdr, &arg->options); xdr 781 net/sunrpc/auth_gss/gss_rpc_xdr.c struct xdr_stream *xdr, xdr 792 net/sunrpc/auth_gss/gss_rpc_xdr.c xdr_set_scratch_buffer(xdr, page_address(scratch), PAGE_SIZE); xdr 795 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_status(xdr, &res->status); xdr 800 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_bool(xdr, &value_follows); xdr 804 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_ctx(xdr, res->context_handle); xdr 812 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_bool(xdr, &value_follows); xdr 816 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_buffer(xdr, res->output_token); xdr 824 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_bool(xdr, &value_follows); xdr 834 net/sunrpc/auth_gss/gss_rpc_xdr.c err = gssx_dec_option_array(xdr, &res->options); xdr 168 net/sunrpc/auth_gss/gss_rpc_xdr.h struct xdr_stream *xdr, xdr 171 net/sunrpc/auth_gss/gss_rpc_xdr.h struct xdr_stream *xdr, xdr 63 net/sunrpc/auth_null.c nul_marshal(struct rpc_task *task, struct xdr_stream *xdr) xdr 67 net/sunrpc/auth_null.c p = xdr_reserve_space(xdr, 4 * sizeof(*p)); xdr 90 net/sunrpc/auth_null.c nul_validate(struct rpc_task *task, struct xdr_stream *xdr) xdr 94 net/sunrpc/auth_null.c p = xdr_inline_decode(xdr, 2 * sizeof(*p)); xdr 103 net/sunrpc/auth_unix.c unx_marshal(struct rpc_task *task, struct xdr_stream *xdr) xdr 115 net/sunrpc/auth_unix.c p = xdr_reserve_space(xdr, 3 * sizeof(*p)); xdr 121 net/sunrpc/auth_unix.c if (xdr_stream_encode_opaque(xdr, clnt->cl_nodename, xdr 124 net/sunrpc/auth_unix.c p = xdr_reserve_space(xdr, 3 * sizeof(*p)); xdr 136 net/sunrpc/auth_unix.c p = xdr_reserve_space(xdr, (p - gidarr_len - 1) << 2); xdr 142 net/sunrpc/auth_unix.c p = xdr_reserve_space(xdr, 2 * sizeof(*p)); xdr 165 net/sunrpc/auth_unix.c unx_validate(struct rpc_task *task, struct xdr_stream *xdr) xdr 171 net/sunrpc/auth_unix.c p = xdr_inline_decode(xdr, 2 * sizeof(*p)); xdr 185 net/sunrpc/auth_unix.c p = xdr_inline_decode(xdr, size); xdr 78 net/sunrpc/clnt.c struct xdr_stream *xdr); xdr 80 net/sunrpc/clnt.c struct xdr_stream *xdr); xdr 1856 net/sunrpc/clnt.c struct xdr_stream xdr; xdr 1867 net/sunrpc/clnt.c xdr_init_encode(&xdr, &req->rq_snd_buf, xdr 1870 net/sunrpc/clnt.c if (rpc_encode_header(task, &xdr)) xdr 1873 net/sunrpc/clnt.c task->tk_status = rpcauth_wrap_req(task, &xdr); xdr 2489 net/sunrpc/clnt.c struct xdr_stream xdr; xdr 2528 net/sunrpc/clnt.c xdr_init_decode(&xdr, &req->rq_rcv_buf, xdr 2530 net/sunrpc/clnt.c err = rpc_decode_header(task, &xdr); xdr 2535 net/sunrpc/clnt.c task->tk_status = rpcauth_unwrap_resp(task, &xdr); xdr 2557 net/sunrpc/clnt.c rpc_encode_header(struct rpc_task *task, struct xdr_stream *xdr) xdr 2565 net/sunrpc/clnt.c p = xdr_reserve_space(xdr, RPC_CALLHDRSIZE << 2); xdr 2575 net/sunrpc/clnt.c error = rpcauth_marshcred(task, xdr); xdr 2586 net/sunrpc/clnt.c rpc_decode_header(struct rpc_task *task, struct xdr_stream *xdr) xdr 2600 net/sunrpc/clnt.c p = xdr_inline_decode(xdr, 3 * sizeof(*p)); xdr 2609 net/sunrpc/clnt.c error = rpcauth_checkverf(task, xdr); xdr 2613 net/sunrpc/clnt.c p = xdr_inline_decode(xdr, sizeof(*p)); xdr 2662 net/sunrpc/clnt.c p = xdr_inline_decode(xdr, sizeof(*p)); xdr 2676 net/sunrpc/clnt.c p = xdr_inline_decode(xdr, sizeof(*p)); xdr 2709 net/sunrpc/clnt.c static void rpcproc_encode_null(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 2714 net/sunrpc/clnt.c static int rpcproc_decode_null(struct rpc_rqst *rqstp, struct xdr_stream *xdr, xdr 861 net/sunrpc/rpcb_clnt.c static void rpcb_enc_mapping(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 872 net/sunrpc/rpcb_clnt.c p = xdr_reserve_space(xdr, RPCB_mappingargs_sz << 2); xdr 879 net/sunrpc/rpcb_clnt.c static int rpcb_dec_getport(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 888 net/sunrpc/rpcb_clnt.c p = xdr_inline_decode(xdr, 4); xdr 902 net/sunrpc/rpcb_clnt.c static int rpcb_dec_set(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 908 net/sunrpc/rpcb_clnt.c p = xdr_inline_decode(xdr, 4); xdr 923 net/sunrpc/rpcb_clnt.c static void encode_rpcb_string(struct xdr_stream *xdr, const char *string, xdr 934 net/sunrpc/rpcb_clnt.c p = xdr_reserve_space(xdr, 4 + len); xdr 938 net/sunrpc/rpcb_clnt.c static void rpcb_enc_getaddr(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 950 net/sunrpc/rpcb_clnt.c p = xdr_reserve_space(xdr, (RPCB_program_sz + RPCB_version_sz) << 2); xdr 954 net/sunrpc/rpcb_clnt.c encode_rpcb_string(xdr, rpcb->r_netid, RPCBIND_MAXNETIDLEN); xdr 955 net/sunrpc/rpcb_clnt.c encode_rpcb_string(xdr, rpcb->r_addr, RPCBIND_MAXUADDRLEN); xdr 956 net/sunrpc/rpcb_clnt.c encode_rpcb_string(xdr, rpcb->r_owner, RPCB_MAXOWNERLEN); xdr 959 net/sunrpc/rpcb_clnt.c static int rpcb_dec_getaddr(struct rpc_rqst *req, struct xdr_stream *xdr, xdr 970 net/sunrpc/rpcb_clnt.c p = xdr_inline_decode(xdr, 4); xdr 988 net/sunrpc/rpcb_clnt.c p = xdr_inline_decode(xdr, len); xdr 74 net/sunrpc/socklib.c xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct xdr_skb_reader *desc, xdr_skb_read_actor copy_actor) xdr 76 net/sunrpc/socklib.c struct page **ppage = xdr->pages; xdr 77 net/sunrpc/socklib.c unsigned int len, pglen = xdr->page_len; xdr 81 net/sunrpc/socklib.c len = xdr->head[0].iov_len; xdr 84 net/sunrpc/socklib.c ret = copy_actor(desc, (char *)xdr->head[0].iov_base + base, len); xdr 98 net/sunrpc/socklib.c if (base || xdr->page_base) { xdr 100 net/sunrpc/socklib.c base += xdr->page_base; xdr 109 net/sunrpc/socklib.c if ((xdr->flags & XDRBUF_SPARSE_PAGES) && *ppage == NULL) { xdr 139 net/sunrpc/socklib.c len = xdr->tail[0].iov_len; xdr 141 net/sunrpc/socklib.c copied += copy_actor(desc, (char *)xdr->tail[0].iov_base + base, len - base); xdr 154 net/sunrpc/socklib.c int csum_partial_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb) xdr 166 net/sunrpc/socklib.c if (xdr_partial_copy_from_skb(xdr, 0, &desc, xdr_skb_read_and_csum_bits) < 0) xdr 182 net/sunrpc/socklib.c if (xdr_partial_copy_from_skb(xdr, 0, &desc, xdr_skb_read_bits) < 0) xdr 53 net/sunrpc/sunrpc.h int svc_send_common(struct socket *sock, struct xdr_buf *xdr, xdr 180 net/sunrpc/svcsock.c int svc_send_common(struct socket *sock, struct xdr_buf *xdr, xdr 186 net/sunrpc/svcsock.c struct page **ppage = xdr->pages; xdr 187 net/sunrpc/svcsock.c size_t base = xdr->page_base; xdr 188 net/sunrpc/svcsock.c unsigned int pglen = xdr->page_len; xdr 193 net/sunrpc/svcsock.c slen = xdr->len; xdr 196 net/sunrpc/svcsock.c if (slen == xdr->head[0].iov_len) xdr 199 net/sunrpc/svcsock.c xdr->head[0].iov_len, flags); xdr 200 net/sunrpc/svcsock.c if (len != xdr->head[0].iov_len) xdr 202 net/sunrpc/svcsock.c slen -= xdr->head[0].iov_len; xdr 224 net/sunrpc/svcsock.c if (xdr->tail[0].iov_len) { xdr 226 net/sunrpc/svcsock.c xdr->tail[0].iov_len, 0); xdr 239 net/sunrpc/svcsock.c static int svc_sendto(struct svc_rqst *rqstp, struct xdr_buf *xdr) xdr 269 net/sunrpc/svcsock.c tailoff = ((unsigned long)xdr->tail[0].iov_base) & (PAGE_SIZE-1); xdr 271 net/sunrpc/svcsock.c len = svc_send_common(sock, xdr, rqstp->rq_respages[0], headoff, xdr 276 net/sunrpc/svcsock.c svsk, xdr->head[0].iov_base, xdr->head[0].iov_len, xdr 277 net/sunrpc/svcsock.c xdr->len, len, svc_print_addr(rqstp, buf, sizeof(buf))); xdr 177 net/sunrpc/xdr.c xdr_inline_pages(struct xdr_buf *xdr, unsigned int offset, xdr 180 net/sunrpc/xdr.c struct kvec *head = xdr->head; xdr 181 net/sunrpc/xdr.c struct kvec *tail = xdr->tail; xdr 187 net/sunrpc/xdr.c xdr->pages = pages; xdr 188 net/sunrpc/xdr.c xdr->page_base = base; xdr 189 net/sunrpc/xdr.c xdr->page_len = len; xdr 193 net/sunrpc/xdr.c if ((xdr->page_len & 3) == 0) xdr 196 net/sunrpc/xdr.c xdr->buflen += len; xdr 502 net/sunrpc/xdr.c unsigned int xdr_stream_pos(const struct xdr_stream *xdr) xdr 504 net/sunrpc/xdr.c return (unsigned int)(XDR_QUADLEN(xdr->buf->len) - xdr->nwords) << 2; xdr 522 net/sunrpc/xdr.c void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p, xdr 528 net/sunrpc/xdr.c xdr_set_scratch_buffer(xdr, NULL, 0); xdr 530 net/sunrpc/xdr.c xdr->buf = buf; xdr 531 net/sunrpc/xdr.c xdr->iov = iov; xdr 532 net/sunrpc/xdr.c xdr->p = (__be32 *)((char *)iov->iov_base + iov->iov_len); xdr 533 net/sunrpc/xdr.c xdr->end = (__be32 *)((char *)iov->iov_base + scratch_len); xdr 536 net/sunrpc/xdr.c if (p != xdr->p && p != NULL) { xdr 539 net/sunrpc/xdr.c BUG_ON(p < xdr->p || p > xdr->end); xdr 540 net/sunrpc/xdr.c len = (char *)p - (char *)xdr->p; xdr 541 net/sunrpc/xdr.c xdr->p = p; xdr 545 net/sunrpc/xdr.c xdr->rqst = rqst; xdr 562 net/sunrpc/xdr.c inline void xdr_commit_encode(struct xdr_stream *xdr) xdr 564 net/sunrpc/xdr.c int shift = xdr->scratch.iov_len; xdr 569 net/sunrpc/xdr.c page = page_address(*xdr->page_ptr); xdr 570 net/sunrpc/xdr.c memcpy(xdr->scratch.iov_base, page, shift); xdr 571 net/sunrpc/xdr.c memmove(page, page + shift, (void *)xdr->p - page); xdr 572 net/sunrpc/xdr.c xdr->scratch.iov_len = 0; xdr 576 net/sunrpc/xdr.c static __be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr, xdr 585 net/sunrpc/xdr.c if (xdr->buf->len + nbytes > xdr->buf->buflen) xdr 587 net/sunrpc/xdr.c frag1bytes = (xdr->end - xdr->p) << 2; xdr 589 net/sunrpc/xdr.c if (xdr->iov) xdr 590 net/sunrpc/xdr.c xdr->iov->iov_len += frag1bytes; xdr 592 net/sunrpc/xdr.c xdr->buf->page_len += frag1bytes; xdr 593 net/sunrpc/xdr.c xdr->page_ptr++; xdr 594 net/sunrpc/xdr.c xdr->iov = NULL; xdr 602 net/sunrpc/xdr.c xdr->scratch.iov_base = xdr->p; xdr 603 net/sunrpc/xdr.c xdr->scratch.iov_len = frag1bytes; xdr 604 net/sunrpc/xdr.c p = page_address(*xdr->page_ptr); xdr 609 net/sunrpc/xdr.c xdr->p = (void *)p + frag2bytes; xdr 610 net/sunrpc/xdr.c space_left = xdr->buf->buflen - xdr->buf->len; xdr 611 net/sunrpc/xdr.c xdr->end = (void *)p + min_t(int, space_left, PAGE_SIZE); xdr 612 net/sunrpc/xdr.c xdr->buf->page_len += frag2bytes; xdr 613 net/sunrpc/xdr.c xdr->buf->len += nbytes; xdr 616 net/sunrpc/xdr.c trace_rpc_xdr_overflow(xdr, nbytes); xdr 629 net/sunrpc/xdr.c __be32 * xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes) xdr 631 net/sunrpc/xdr.c __be32 *p = xdr->p; xdr 634 net/sunrpc/xdr.c xdr_commit_encode(xdr); xdr 639 net/sunrpc/xdr.c if (unlikely(q > xdr->end || q < p)) xdr 640 net/sunrpc/xdr.c return xdr_get_next_encode_buffer(xdr, nbytes); xdr 641 net/sunrpc/xdr.c xdr->p = q; xdr 642 net/sunrpc/xdr.c if (xdr->iov) xdr 643 net/sunrpc/xdr.c xdr->iov->iov_len += nbytes; xdr 645 net/sunrpc/xdr.c xdr->buf->page_len += nbytes; xdr 646 net/sunrpc/xdr.c xdr->buf->len += nbytes; xdr 670 net/sunrpc/xdr.c void xdr_truncate_encode(struct xdr_stream *xdr, size_t len) xdr 672 net/sunrpc/xdr.c struct xdr_buf *buf = xdr->buf; xdr 682 net/sunrpc/xdr.c xdr_commit_encode(xdr); xdr 688 net/sunrpc/xdr.c xdr->p = tail->iov_base + tail->iov_len; xdr 689 net/sunrpc/xdr.c WARN_ON_ONCE(!xdr->end); xdr 690 net/sunrpc/xdr.c WARN_ON_ONCE(!xdr->iov); xdr 700 net/sunrpc/xdr.c xdr->page_ptr = buf->pages + (new >> PAGE_SHIFT); xdr 703 net/sunrpc/xdr.c xdr->p = page_address(*xdr->page_ptr); xdr 704 net/sunrpc/xdr.c xdr->end = (void *)xdr->p + PAGE_SIZE; xdr 705 net/sunrpc/xdr.c xdr->p = (void *)xdr->p + (new % PAGE_SIZE); xdr 706 net/sunrpc/xdr.c WARN_ON_ONCE(xdr->iov); xdr 710 net/sunrpc/xdr.c xdr->end = head->iov_base + head->iov_len; xdr 712 net/sunrpc/xdr.c xdr->page_ptr--; xdr 715 net/sunrpc/xdr.c xdr->p = head->iov_base + head->iov_len; xdr 716 net/sunrpc/xdr.c xdr->iov = buf->head; xdr 732 net/sunrpc/xdr.c int xdr_restrict_buflen(struct xdr_stream *xdr, int newbuflen) xdr 734 net/sunrpc/xdr.c struct xdr_buf *buf = xdr->buf; xdr 735 net/sunrpc/xdr.c int left_in_this_buf = (void *)xdr->end - (void *)xdr->p; xdr 743 net/sunrpc/xdr.c xdr->end = (void *)xdr->end + newbuflen - end_offset; xdr 757 net/sunrpc/xdr.c void xdr_write_pages(struct xdr_stream *xdr, struct page **pages, unsigned int base, xdr 760 net/sunrpc/xdr.c struct xdr_buf *buf = xdr->buf; xdr 766 net/sunrpc/xdr.c iov->iov_base = (char *)xdr->p; xdr 768 net/sunrpc/xdr.c xdr->iov = iov; xdr 773 net/sunrpc/xdr.c BUG_ON(xdr->p >= xdr->end); xdr 774 net/sunrpc/xdr.c iov->iov_base = (char *)xdr->p + (len & 3); xdr 777 net/sunrpc/xdr.c *xdr->p++ = 0; xdr 784 net/sunrpc/xdr.c static void xdr_set_iov(struct xdr_stream *xdr, struct kvec *iov, xdr 789 net/sunrpc/xdr.c xdr->p = (__be32*)iov->iov_base; xdr 790 net/sunrpc/xdr.c xdr->end = (__be32*)(iov->iov_base + len); xdr 791 net/sunrpc/xdr.c xdr->iov = iov; xdr 792 net/sunrpc/xdr.c xdr->page_ptr = NULL; xdr 795 net/sunrpc/xdr.c static int xdr_set_page_base(struct xdr_stream *xdr, xdr 804 net/sunrpc/xdr.c maxlen = xdr->buf->page_len; xdr 811 net/sunrpc/xdr.c base += xdr->buf->page_base; xdr 814 net/sunrpc/xdr.c xdr->page_ptr = &xdr->buf->pages[pgnr]; xdr 815 net/sunrpc/xdr.c kaddr = page_address(*xdr->page_ptr); xdr 818 net/sunrpc/xdr.c xdr->p = (__be32*)(kaddr + pgoff); xdr 823 net/sunrpc/xdr.c xdr->end = (__be32*)(kaddr + pgend); xdr 824 net/sunrpc/xdr.c xdr->iov = NULL; xdr 828 net/sunrpc/xdr.c static void xdr_set_next_page(struct xdr_stream *xdr) xdr 832 net/sunrpc/xdr.c newbase = (1 + xdr->page_ptr - xdr->buf->pages) << PAGE_SHIFT; xdr 833 net/sunrpc/xdr.c newbase -= xdr->buf->page_base; xdr 835 net/sunrpc/xdr.c if (xdr_set_page_base(xdr, newbase, PAGE_SIZE) < 0) xdr 836 net/sunrpc/xdr.c xdr_set_iov(xdr, xdr->buf->tail, xdr->nwords << 2); xdr 839 net/sunrpc/xdr.c static bool xdr_set_next_buffer(struct xdr_stream *xdr) xdr 841 net/sunrpc/xdr.c if (xdr->page_ptr != NULL) xdr 842 net/sunrpc/xdr.c xdr_set_next_page(xdr); xdr 843 net/sunrpc/xdr.c else if (xdr->iov == xdr->buf->head) { xdr 844 net/sunrpc/xdr.c if (xdr_set_page_base(xdr, 0, PAGE_SIZE) < 0) xdr 845 net/sunrpc/xdr.c xdr_set_iov(xdr, xdr->buf->tail, xdr->nwords << 2); xdr 847 net/sunrpc/xdr.c return xdr->p != xdr->end; xdr 857 net/sunrpc/xdr.c void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p, xdr 860 net/sunrpc/xdr.c xdr->buf = buf; xdr 861 net/sunrpc/xdr.c xdr->scratch.iov_base = NULL; xdr 862 net/sunrpc/xdr.c xdr->scratch.iov_len = 0; xdr 863 net/sunrpc/xdr.c xdr->nwords = XDR_QUADLEN(buf->len); xdr 865 net/sunrpc/xdr.c xdr_set_iov(xdr, buf->head, buf->len); xdr 867 net/sunrpc/xdr.c xdr_set_page_base(xdr, 0, buf->len); xdr 869 net/sunrpc/xdr.c xdr_set_iov(xdr, buf->head, buf->len); xdr 870 net/sunrpc/xdr.c if (p != NULL && p > xdr->p && xdr->end >= p) { xdr 871 net/sunrpc/xdr.c xdr->nwords -= p - xdr->p; xdr 872 net/sunrpc/xdr.c xdr->p = p; xdr 874 net/sunrpc/xdr.c xdr->rqst = rqst; xdr 885 net/sunrpc/xdr.c void xdr_init_decode_pages(struct xdr_stream *xdr, struct xdr_buf *buf, xdr 893 net/sunrpc/xdr.c xdr_init_decode(xdr, buf, NULL, NULL); xdr 897 net/sunrpc/xdr.c static __be32 * __xdr_inline_decode(struct xdr_stream *xdr, size_t nbytes) xdr 900 net/sunrpc/xdr.c __be32 *p = xdr->p; xdr 903 net/sunrpc/xdr.c if (unlikely(nwords > xdr->nwords || q > xdr->end || q < p)) xdr 905 net/sunrpc/xdr.c xdr->p = q; xdr 906 net/sunrpc/xdr.c xdr->nwords -= nwords; xdr 921 net/sunrpc/xdr.c void xdr_set_scratch_buffer(struct xdr_stream *xdr, void *buf, size_t buflen) xdr 923 net/sunrpc/xdr.c xdr->scratch.iov_base = buf; xdr 924 net/sunrpc/xdr.c xdr->scratch.iov_len = buflen; xdr 928 net/sunrpc/xdr.c static __be32 *xdr_copy_to_scratch(struct xdr_stream *xdr, size_t nbytes) xdr 931 net/sunrpc/xdr.c char *cpdest = xdr->scratch.iov_base; xdr 932 net/sunrpc/xdr.c size_t cplen = (char *)xdr->end - (char *)xdr->p; xdr 934 net/sunrpc/xdr.c if (nbytes > xdr->scratch.iov_len) xdr 936 net/sunrpc/xdr.c p = __xdr_inline_decode(xdr, cplen); xdr 940 net/sunrpc/xdr.c if (!xdr_set_next_buffer(xdr)) xdr 944 net/sunrpc/xdr.c p = __xdr_inline_decode(xdr, nbytes); xdr 948 net/sunrpc/xdr.c return xdr->scratch.iov_base; xdr 950 net/sunrpc/xdr.c trace_rpc_xdr_overflow(xdr, nbytes); xdr 964 net/sunrpc/xdr.c __be32 * xdr_inline_decode(struct xdr_stream *xdr, size_t nbytes) xdr 969 net/sunrpc/xdr.c return xdr->p; xdr 970 net/sunrpc/xdr.c if (xdr->p == xdr->end && !xdr_set_next_buffer(xdr)) xdr 972 net/sunrpc/xdr.c p = __xdr_inline_decode(xdr, nbytes); xdr 975 net/sunrpc/xdr.c return xdr_copy_to_scratch(xdr, nbytes); xdr 977 net/sunrpc/xdr.c trace_rpc_xdr_overflow(xdr, nbytes); xdr 982 net/sunrpc/xdr.c static unsigned int xdr_align_pages(struct xdr_stream *xdr, unsigned int len) xdr 984 net/sunrpc/xdr.c struct xdr_buf *buf = xdr->buf; xdr 987 net/sunrpc/xdr.c unsigned int cur = xdr_stream_pos(xdr); xdr 990 net/sunrpc/xdr.c if (xdr->nwords == 0) xdr 998 net/sunrpc/xdr.c trace_rpc_xdr_alignment(xdr, offset, copied); xdr 999 net/sunrpc/xdr.c xdr->nwords = XDR_QUADLEN(buf->len - cur); xdr 1002 net/sunrpc/xdr.c if (nwords > xdr->nwords) { xdr 1003 net/sunrpc/xdr.c nwords = xdr->nwords; xdr 1008 net/sunrpc/xdr.c else if (nwords < xdr->nwords) { xdr 1012 net/sunrpc/xdr.c trace_rpc_xdr_alignment(xdr, offset, copied); xdr 1013 net/sunrpc/xdr.c xdr->nwords = XDR_QUADLEN(buf->len - cur); xdr 1029 net/sunrpc/xdr.c unsigned int xdr_read_pages(struct xdr_stream *xdr, unsigned int len) xdr 1031 net/sunrpc/xdr.c struct xdr_buf *buf = xdr->buf; xdr 1037 net/sunrpc/xdr.c len = xdr_align_pages(xdr, len); xdr 1042 net/sunrpc/xdr.c xdr->iov = iov = buf->tail; xdr 1044 net/sunrpc/xdr.c end = ((xdr->nwords - nwords) << 2) + padding; xdr 1052 net/sunrpc/xdr.c xdr->p = (__be32 *)((char *)iov->iov_base + padding); xdr 1053 net/sunrpc/xdr.c xdr->end = (__be32 *)((char *)iov->iov_base + end); xdr 1054 net/sunrpc/xdr.c xdr->page_ptr = NULL; xdr 1055 net/sunrpc/xdr.c xdr->nwords = XDR_QUADLEN(end - padding); xdr 1070 net/sunrpc/xdr.c void xdr_enter_page(struct xdr_stream *xdr, unsigned int len) xdr 1072 net/sunrpc/xdr.c len = xdr_align_pages(xdr, len); xdr 1078 net/sunrpc/xdr.c xdr_set_page_base(xdr, 0, len); xdr 1630 net/sunrpc/xdr.c ssize_t xdr_stream_decode_opaque(struct xdr_stream *xdr, void *ptr, size_t size) xdr 1635 net/sunrpc/xdr.c ret = xdr_stream_decode_opaque_inline(xdr, &p, size); xdr 1656 net/sunrpc/xdr.c ssize_t xdr_stream_decode_opaque_dup(struct xdr_stream *xdr, void **ptr, xdr 1662 net/sunrpc/xdr.c ret = xdr_stream_decode_opaque_inline(xdr, &p, maxlen); xdr 1685 net/sunrpc/xdr.c ssize_t xdr_stream_decode_string(struct xdr_stream *xdr, char *str, size_t size) xdr 1690 net/sunrpc/xdr.c ret = xdr_stream_decode_opaque_inline(xdr, &p, size); xdr 1714 net/sunrpc/xdr.c ssize_t xdr_stream_decode_string_dup(struct xdr_stream *xdr, char **str, xdr 1720 net/sunrpc/xdr.c ret = xdr_stream_decode_opaque_inline(xdr, &p, maxlen); xdr 138 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_buf *xdr = &rqst->rq_snd_buf; xdr 141 net/sunrpc/xprtrdma/rpc_rdma.c if (xdr->len > r_xprt->rx_ep.rep_max_inline_send) xdr 144 net/sunrpc/xprtrdma/rpc_rdma.c if (xdr->page_len) { xdr 145 net/sunrpc/xprtrdma/rpc_rdma.c remaining = xdr->page_len; xdr 146 net/sunrpc/xprtrdma/rpc_rdma.c offset = offset_in_page(xdr->page_base); xdr 283 net/sunrpc/xprtrdma/rpc_rdma.c encode_item_present(struct xdr_stream *xdr) xdr 287 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_reserve_space(xdr, sizeof(*p)); xdr 296 net/sunrpc/xprtrdma/rpc_rdma.c encode_item_not_present(struct xdr_stream *xdr) xdr 300 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_reserve_space(xdr, sizeof(*p)); xdr 317 net/sunrpc/xprtrdma/rpc_rdma.c encode_rdma_segment(struct xdr_stream *xdr, struct rpcrdma_mr *mr) xdr 321 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_reserve_space(xdr, 4 * sizeof(*p)); xdr 330 net/sunrpc/xprtrdma/rpc_rdma.c encode_read_segment(struct xdr_stream *xdr, struct rpcrdma_mr *mr, xdr 335 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_reserve_space(xdr, 6 * sizeof(*p)); xdr 390 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_stream *xdr = &req->rl_stream; xdr 413 net/sunrpc/xprtrdma/rpc_rdma.c if (encode_read_segment(xdr, mr, pos) < 0) xdr 422 net/sunrpc/xprtrdma/rpc_rdma.c return encode_item_not_present(xdr); xdr 445 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_stream *xdr = &req->rl_stream; xdr 461 net/sunrpc/xprtrdma/rpc_rdma.c if (encode_item_present(xdr) < 0) xdr 463 net/sunrpc/xprtrdma/rpc_rdma.c segcount = xdr_reserve_space(xdr, sizeof(*segcount)); xdr 474 net/sunrpc/xprtrdma/rpc_rdma.c if (encode_rdma_segment(xdr, mr) < 0) xdr 488 net/sunrpc/xprtrdma/rpc_rdma.c return encode_item_not_present(xdr); xdr 508 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_stream *xdr = &req->rl_stream; xdr 515 net/sunrpc/xprtrdma/rpc_rdma.c return encode_item_not_present(xdr); xdr 522 net/sunrpc/xprtrdma/rpc_rdma.c if (encode_item_present(xdr) < 0) xdr 524 net/sunrpc/xprtrdma/rpc_rdma.c segcount = xdr_reserve_space(xdr, sizeof(*segcount)); xdr 535 net/sunrpc/xprtrdma/rpc_rdma.c if (encode_rdma_segment(xdr, mr) < 0) xdr 615 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_buf *xdr, xdr 632 net/sunrpc/xprtrdma/rpc_rdma.c sge[sge_no].length = xdr->head[0].iov_len; xdr 644 net/sunrpc/xprtrdma/rpc_rdma.c len = xdr->tail[0].iov_len; xdr 650 net/sunrpc/xprtrdma/rpc_rdma.c page = virt_to_page(xdr->tail[0].iov_base); xdr 651 net/sunrpc/xprtrdma/rpc_rdma.c page_base = offset_in_page(xdr->tail[0].iov_base); xdr 666 net/sunrpc/xprtrdma/rpc_rdma.c if (xdr->page_len) { xdr 667 net/sunrpc/xprtrdma/rpc_rdma.c ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); xdr 668 net/sunrpc/xprtrdma/rpc_rdma.c page_base = offset_in_page(xdr->page_base); xdr 669 net/sunrpc/xprtrdma/rpc_rdma.c remaining = xdr->page_len; xdr 697 net/sunrpc/xprtrdma/rpc_rdma.c if (xdr->tail[0].iov_len) { xdr 698 net/sunrpc/xprtrdma/rpc_rdma.c page = virt_to_page(xdr->tail[0].iov_base); xdr 699 net/sunrpc/xprtrdma/rpc_rdma.c page_base = offset_in_page(xdr->tail[0].iov_base); xdr 700 net/sunrpc/xprtrdma/rpc_rdma.c len = xdr->tail[0].iov_len; xdr 748 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_buf *xdr, enum rpcrdma_chunktype rtype) xdr 765 net/sunrpc/xprtrdma/rpc_rdma.c if (!rpcrdma_prepare_msg_sges(r_xprt, req, xdr, rtype)) xdr 797 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_stream *xdr = &req->rl_stream; xdr 804 net/sunrpc/xprtrdma/rpc_rdma.c xdr_init_encode(xdr, &req->rl_hdrbuf, rdmab_data(req->rl_rdmabuf), xdr 809 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_reserve_space(xdr, 4 * sizeof(*p)); xdr 1023 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_stream *xdr = &rep->rr_stream; xdr 1030 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_inline_decode(xdr, 0); xdr 1049 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_inline_decode(xdr, 3 * sizeof(*p)); xdr 1066 net/sunrpc/xprtrdma/rpc_rdma.c static int decode_rdma_segment(struct xdr_stream *xdr, u32 *length) xdr 1072 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_inline_decode(xdr, 4 * sizeof(*p)); xdr 1084 net/sunrpc/xprtrdma/rpc_rdma.c static int decode_write_chunk(struct xdr_stream *xdr, u32 *length) xdr 1089 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_inline_decode(xdr, sizeof(*p)); xdr 1096 net/sunrpc/xprtrdma/rpc_rdma.c if (decode_rdma_segment(xdr, &seglength)) xdr 1108 net/sunrpc/xprtrdma/rpc_rdma.c static int decode_read_list(struct xdr_stream *xdr) xdr 1112 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_inline_decode(xdr, sizeof(*p)); xdr 1122 net/sunrpc/xprtrdma/rpc_rdma.c static int decode_write_list(struct xdr_stream *xdr, u32 *length) xdr 1131 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_inline_decode(xdr, sizeof(*p)); xdr 1139 net/sunrpc/xprtrdma/rpc_rdma.c if (decode_write_chunk(xdr, &chunklen)) xdr 1147 net/sunrpc/xprtrdma/rpc_rdma.c static int decode_reply_chunk(struct xdr_stream *xdr, u32 *length) xdr 1151 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_inline_decode(xdr, sizeof(*p)); xdr 1157 net/sunrpc/xprtrdma/rpc_rdma.c if (decode_write_chunk(xdr, length)) xdr 1166 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_stream *xdr = &rep->rr_stream; xdr 1171 net/sunrpc/xprtrdma/rpc_rdma.c if (decode_read_list(xdr)) xdr 1173 net/sunrpc/xprtrdma/rpc_rdma.c if (decode_write_list(xdr, &writelist)) xdr 1175 net/sunrpc/xprtrdma/rpc_rdma.c if (decode_reply_chunk(xdr, &replychunk)) xdr 1183 net/sunrpc/xprtrdma/rpc_rdma.c base = (char *)xdr_inline_decode(xdr, 0); xdr 1184 net/sunrpc/xprtrdma/rpc_rdma.c rpclen = xdr_stream_remaining(xdr); xdr 1195 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_stream *xdr = &rep->rr_stream; xdr 1199 net/sunrpc/xprtrdma/rpc_rdma.c if (decode_read_list(xdr)) xdr 1201 net/sunrpc/xprtrdma/rpc_rdma.c if (decode_write_list(xdr, &writelist)) xdr 1203 net/sunrpc/xprtrdma/rpc_rdma.c if (decode_reply_chunk(xdr, &replychunk)) xdr 1221 net/sunrpc/xprtrdma/rpc_rdma.c struct xdr_stream *xdr = &rep->rr_stream; xdr 1224 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_inline_decode(xdr, sizeof(*p)); xdr 1230 net/sunrpc/xprtrdma/rpc_rdma.c p = xdr_inline_decode(xdr, 2 * sizeof(*p)); xdr 371 net/sunrpc/xprtrdma/svc_rdma_rw.c struct xdr_buf *xdr = info->wi_xdr; xdr 375 net/sunrpc/xprtrdma/svc_rdma_rw.c page_off = info->wi_next_off + xdr->page_base; xdr 378 net/sunrpc/xprtrdma/svc_rdma_rw.c page = xdr->pages + page_no; xdr 490 net/sunrpc/xprtrdma/svc_rdma_rw.c struct xdr_buf *xdr) xdr 492 net/sunrpc/xprtrdma/svc_rdma_rw.c info->wi_xdr = xdr; xdr 495 net/sunrpc/xprtrdma/svc_rdma_rw.c xdr->page_len); xdr 512 net/sunrpc/xprtrdma/svc_rdma_rw.c struct xdr_buf *xdr) xdr 517 net/sunrpc/xprtrdma/svc_rdma_rw.c if (!xdr->page_len) xdr 524 net/sunrpc/xprtrdma/svc_rdma_rw.c ret = svc_rdma_send_xdr_pagelist(info, xdr); xdr 532 net/sunrpc/xprtrdma/svc_rdma_rw.c trace_svcrdma_encode_write(xdr->page_len); xdr 533 net/sunrpc/xprtrdma/svc_rdma_rw.c return xdr->page_len; xdr 555 net/sunrpc/xprtrdma/svc_rdma_rw.c bool writelist, struct xdr_buf *xdr) xdr 564 net/sunrpc/xprtrdma/svc_rdma_rw.c ret = svc_rdma_send_xdr_kvec(info, &xdr->head[0]); xdr 567 net/sunrpc/xprtrdma/svc_rdma_rw.c consumed = xdr->head[0].iov_len; xdr 572 net/sunrpc/xprtrdma/svc_rdma_rw.c if (!writelist && xdr->page_len) { xdr 573 net/sunrpc/xprtrdma/svc_rdma_rw.c ret = svc_rdma_send_xdr_pagelist(info, xdr); xdr 576 net/sunrpc/xprtrdma/svc_rdma_rw.c consumed += xdr->page_len; xdr 579 net/sunrpc/xprtrdma/svc_rdma_rw.c if (xdr->tail[0].iov_len) { xdr 580 net/sunrpc/xprtrdma/svc_rdma_rw.c ret = svc_rdma_send_xdr_kvec(info, &xdr->tail[0]); xdr 583 net/sunrpc/xprtrdma/svc_rdma_rw.c consumed += xdr->tail[0].iov_len; xdr 543 net/sunrpc/xprtrdma/svc_rdma_sendto.c struct xdr_buf *xdr, xdr 556 net/sunrpc/xprtrdma/svc_rdma_sendto.c pageoff = xdr->page_base & ~PAGE_MASK; xdr 557 net/sunrpc/xprtrdma/svc_rdma_sendto.c remaining = xdr->page_len; xdr 567 net/sunrpc/xprtrdma/svc_rdma_sendto.c if (xdr->tail[0].iov_len) xdr 580 net/sunrpc/xprtrdma/svc_rdma_sendto.c struct xdr_buf *xdr, __be32 *wr_lst) xdr 588 net/sunrpc/xprtrdma/svc_rdma_sendto.c memcpy(dst, xdr->head[0].iov_base, xdr->head[0].iov_len); xdr 589 net/sunrpc/xprtrdma/svc_rdma_sendto.c dst += xdr->head[0].iov_len; xdr 591 net/sunrpc/xprtrdma/svc_rdma_sendto.c tailbase = xdr->tail[0].iov_base; xdr 592 net/sunrpc/xprtrdma/svc_rdma_sendto.c taillen = xdr->tail[0].iov_len; xdr 596 net/sunrpc/xprtrdma/svc_rdma_sendto.c xdrpad = xdr_padsize(xdr->page_len); xdr 606 net/sunrpc/xprtrdma/svc_rdma_sendto.c ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); xdr 607 net/sunrpc/xprtrdma/svc_rdma_sendto.c pageoff = xdr->page_base & ~PAGE_MASK; xdr 608 net/sunrpc/xprtrdma/svc_rdma_sendto.c remaining = xdr->page_len; xdr 622 net/sunrpc/xprtrdma/svc_rdma_sendto.c ctxt->sc_sges[0].length += xdr->len; xdr 644 net/sunrpc/xprtrdma/svc_rdma_sendto.c struct xdr_buf *xdr, __be32 *wr_lst) xdr 653 net/sunrpc/xprtrdma/svc_rdma_sendto.c if (svc_rdma_pull_up_needed(rdma, xdr, wr_lst)) xdr 654 net/sunrpc/xprtrdma/svc_rdma_sendto.c return svc_rdma_pull_up_reply_msg(rdma, ctxt, xdr, wr_lst); xdr 658 net/sunrpc/xprtrdma/svc_rdma_sendto.c xdr->head[0].iov_base, xdr 659 net/sunrpc/xprtrdma/svc_rdma_sendto.c xdr->head[0].iov_len); xdr 669 net/sunrpc/xprtrdma/svc_rdma_sendto.c base = xdr->tail[0].iov_base; xdr 670 net/sunrpc/xprtrdma/svc_rdma_sendto.c len = xdr->tail[0].iov_len; xdr 671 net/sunrpc/xprtrdma/svc_rdma_sendto.c xdr_pad = xdr_padsize(xdr->page_len); xdr 681 net/sunrpc/xprtrdma/svc_rdma_sendto.c ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); xdr 682 net/sunrpc/xprtrdma/svc_rdma_sendto.c page_off = xdr->page_base & ~PAGE_MASK; xdr 683 net/sunrpc/xprtrdma/svc_rdma_sendto.c remaining = xdr->page_len; xdr 697 net/sunrpc/xprtrdma/svc_rdma_sendto.c base = xdr->tail[0].iov_base; xdr 698 net/sunrpc/xprtrdma/svc_rdma_sendto.c len = xdr->tail[0].iov_len; xdr 827 net/sunrpc/xprtrdma/svc_rdma_sendto.c struct xdr_buf *xdr = &rqstp->rq_res; xdr 859 net/sunrpc/xprtrdma/svc_rdma_sendto.c ret = svc_rdma_send_write_chunk(rdma, wr_lst, xdr); xdr 865 net/sunrpc/xprtrdma/svc_rdma_sendto.c ret = svc_rdma_send_reply_chunk(rdma, rp_ch, wr_lst, xdr); xdr 577 net/sunrpc/xprtrdma/xprt_rdma.h struct xdr_buf *xdr, xdr 585 net/sunrpc/xprtrdma/xprt_rdma.h static inline void rpcrdma_set_xdrlen(struct xdr_buf *xdr, size_t len) xdr 587 net/sunrpc/xprtrdma/xprt_rdma.h xdr->head[0].iov_len = len; xdr 588 net/sunrpc/xprtrdma/xprt_rdma.h xdr->len = len; xdr 765 net/sunrpc/xprtsock.c static int xs_send_pagedata(struct socket *sock, struct msghdr *msg, struct xdr_buf *xdr, size_t base) xdr 769 net/sunrpc/xprtsock.c err = xdr_alloc_bvec(xdr, GFP_KERNEL); xdr 773 net/sunrpc/xprtsock.c iov_iter_bvec(&msg->msg_iter, WRITE, xdr->bvec, xdr 774 net/sunrpc/xprtsock.c xdr_buf_pagecount(xdr), xdr 775 net/sunrpc/xprtsock.c xdr->page_len + xdr->page_base); xdr 776 net/sunrpc/xprtsock.c return xs_sendmsg(sock, msg, base + xdr->page_base); xdr 813 net/sunrpc/xprtsock.c static int xs_sendpages(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xdr, unsigned int base, rpc_fraghdr rm, int *sent_p) xdr 821 net/sunrpc/xprtsock.c unsigned int remainder = rmsize + xdr->len - base; xdr 828 net/sunrpc/xprtsock.c want = xdr->head[0].iov_len + rmsize; xdr 836 net/sunrpc/xprtsock.c &xdr->head[0], base); xdr 838 net/sunrpc/xprtsock.c err = xs_send_kvec(sock, &msg, &xdr->head[0], base); xdr 846 net/sunrpc/xprtsock.c if (base < xdr->page_len) { xdr 847 net/sunrpc/xprtsock.c unsigned int len = xdr->page_len - base; xdr 851 net/sunrpc/xprtsock.c err = xs_send_pagedata(sock, &msg, xdr, base); xdr 857 net/sunrpc/xprtsock.c base -= xdr->page_len; xdr 859 net/sunrpc/xprtsock.c if (base >= xdr->tail[0].iov_len) xdr 862 net/sunrpc/xprtsock.c err = xs_send_kvec(sock, &msg, &xdr->tail[0], base); xdr 936 net/sunrpc/xprtsock.c xs_stream_record_marker(struct xdr_buf *xdr) xdr 938 net/sunrpc/xprtsock.c if (!xdr->len) xdr 940 net/sunrpc/xprtsock.c return cpu_to_be32(RPC_LAST_STREAM_FRAGMENT | (u32)xdr->len); xdr 959 net/sunrpc/xprtsock.c struct xdr_buf *xdr = &req->rq_snd_buf; xdr 960 net/sunrpc/xprtsock.c rpc_fraghdr rm = xs_stream_record_marker(xdr); xdr 975 net/sunrpc/xprtsock.c status = xs_sendpages(transport->sock, NULL, 0, xdr, xdr 978 net/sunrpc/xprtsock.c __func__, xdr->len - transport->xmit.offset, status); xdr 1027 net/sunrpc/xprtsock.c struct xdr_buf *xdr = &req->rq_snd_buf; xdr 1043 net/sunrpc/xprtsock.c xdr, 0, 0, &sent); xdr 1046 net/sunrpc/xprtsock.c xdr->len, status); xdr 1106 net/sunrpc/xprtsock.c struct xdr_buf *xdr = &req->rq_snd_buf; xdr 1107 net/sunrpc/xprtsock.c rpc_fraghdr rm = xs_stream_record_marker(xdr); xdr 1133 net/sunrpc/xprtsock.c status = xs_sendpages(transport->sock, NULL, 0, xdr, xdr 1137 net/sunrpc/xprtsock.c xdr->len - transport->xmit.offset, status);