Lines Matching full:p
35 encode_time3(__be32 *p, struct timespec64 *time) in encode_time3() argument
37 *p++ = htonl((u32) time->tv_sec); *p++ = htonl(time->tv_nsec); in encode_time3()
38 return p; in encode_time3()
42 decode_time3(__be32 *p, struct timespec64 *time) in decode_time3() argument
44 time->tv_sec = ntohl(*p++); in decode_time3()
45 time->tv_nsec = ntohl(*p++); in decode_time3()
46 return p; in decode_time3()
50 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument
54 size = ntohl(*p++); in decode_fh()
58 memcpy(&fhp->fh_handle.fh_base, p, size); in decode_fh()
60 return p + XDR_QUADLEN(size); in decode_fh()
64 __be32 *nfs3svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs3svc_decode_fh() argument
66 return decode_fh(p, fhp); in nfs3svc_decode_fh()
70 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument
73 *p++ = htonl(size); in encode_fh()
74 if (size) p[XDR_QUADLEN(size)-1]=0; in encode_fh()
75 memcpy(p, &fhp->fh_handle.fh_base, size); in encode_fh()
76 return p + XDR_QUADLEN(size); in encode_fh()
84 decode_filename(__be32 *p, char **namp, unsigned int *lenp) in decode_filename() argument
89 if ((p = xdr_decode_string_inplace(p, namp, lenp, NFS3_MAXNAMLEN)) != NULL) { in decode_filename()
96 return p; in decode_filename()
100 decode_sattr3(__be32 *p, struct iattr *iap, struct user_namespace *userns) in decode_sattr3() argument
106 if (*p++) { in decode_sattr3()
108 iap->ia_mode = ntohl(*p++); in decode_sattr3()
110 if (*p++) { in decode_sattr3()
111 iap->ia_uid = make_kuid(userns, ntohl(*p++)); in decode_sattr3()
115 if (*p++) { in decode_sattr3()
116 iap->ia_gid = make_kgid(userns, ntohl(*p++)); in decode_sattr3()
120 if (*p++) { in decode_sattr3()
124 p = xdr_decode_hyper(p, &newsize); in decode_sattr3()
127 if ((tmp = ntohl(*p++)) == 1) { /* set to server time */ in decode_sattr3()
131 iap->ia_atime.tv_sec = ntohl(*p++); in decode_sattr3()
132 iap->ia_atime.tv_nsec = ntohl(*p++); in decode_sattr3()
134 if ((tmp = ntohl(*p++)) == 1) { /* set to server time */ in decode_sattr3()
138 iap->ia_mtime.tv_sec = ntohl(*p++); in decode_sattr3()
139 iap->ia_mtime.tv_nsec = ntohl(*p++); in decode_sattr3()
141 return p; in decode_sattr3()
144 static __be32 *encode_fsid(__be32 *p, struct svc_fh *fhp) in encode_fsid() argument
150 p = xdr_encode_hyper(p, (u64)huge_encode_dev in encode_fsid()
154 p = xdr_encode_hyper(p, (u64) fhp->fh_export->ex_fsid); in encode_fsid()
159 p = xdr_encode_hyper(p, f); in encode_fsid()
162 return p; in encode_fsid()
166 encode_fattr3(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, in encode_fattr3() argument
170 *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); in encode_fattr3()
171 *p++ = htonl((u32) (stat->mode & S_IALLUGO)); in encode_fattr3()
172 *p++ = htonl((u32) stat->nlink); in encode_fattr3()
173 *p++ = htonl((u32) from_kuid_munged(userns, stat->uid)); in encode_fattr3()
174 *p++ = htonl((u32) from_kgid_munged(userns, stat->gid)); in encode_fattr3()
176 p = xdr_encode_hyper(p, (u64) NFS3_MAXPATHLEN); in encode_fattr3()
178 p = xdr_encode_hyper(p, (u64) stat->size); in encode_fattr3()
180 p = xdr_encode_hyper(p, ((u64)stat->blocks) << 9); in encode_fattr3()
181 *p++ = htonl((u32) MAJOR(stat->rdev)); in encode_fattr3()
182 *p++ = htonl((u32) MINOR(stat->rdev)); in encode_fattr3()
183 p = encode_fsid(p, fhp); in encode_fattr3()
184 p = xdr_encode_hyper(p, stat->ino); in encode_fattr3()
185 p = encode_time3(p, &stat->atime); in encode_fattr3()
186 p = encode_time3(p, &stat->mtime); in encode_fattr3()
187 p = encode_time3(p, &stat->ctime); in encode_fattr3()
189 return p; in encode_fattr3()
193 encode_saved_post_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_saved_post_attr() argument
196 *p++ = xdr_one; in encode_saved_post_attr()
197 return encode_fattr3(rqstp, p, fhp, &fhp->fh_post_attr); in encode_saved_post_attr()
206 encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_post_op_attr() argument
215 *p++ = xdr_one; /* attributes follow */ in encode_post_op_attr()
217 return encode_fattr3(rqstp, p, fhp, &stat); in encode_post_op_attr()
220 *p++ = xdr_zero; in encode_post_op_attr()
221 return p; in encode_post_op_attr()
226 nfs3svc_encode_post_op_attr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in nfs3svc_encode_post_op_attr() argument
228 return encode_post_op_attr(rqstp, p, fhp); in nfs3svc_encode_post_op_attr()
235 encode_wcc_data(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp) in encode_wcc_data() argument
241 *p++ = xdr_one; in encode_wcc_data()
242 p = xdr_encode_hyper(p, (u64) fhp->fh_pre_size); in encode_wcc_data()
243 p = encode_time3(p, &fhp->fh_pre_mtime); in encode_wcc_data()
244 p = encode_time3(p, &fhp->fh_pre_ctime); in encode_wcc_data()
246 *p++ = xdr_zero; in encode_wcc_data()
248 return encode_saved_post_attr(rqstp, p, fhp); in encode_wcc_data()
251 *p++ = xdr_zero; in encode_wcc_data()
252 return encode_post_op_attr(rqstp, p, fhp); in encode_wcc_data()
308 nfs3svc_decode_voidarg(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_voidarg() argument
314 nfs3svc_decode_fhandle(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_fhandle() argument
318 p = decode_fh(p, &args->fh); in nfs3svc_decode_fhandle()
319 if (!p) in nfs3svc_decode_fhandle()
321 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_fhandle()
325 nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_sattrargs() argument
329 p = decode_fh(p, &args->fh); in nfs3svc_decode_sattrargs()
330 if (!p) in nfs3svc_decode_sattrargs()
332 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_sattrargs()
334 if ((args->check_guard = ntohl(*p++)) != 0) { in nfs3svc_decode_sattrargs()
336 p = decode_time3(p, &time); in nfs3svc_decode_sattrargs()
340 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_sattrargs()
344 nfs3svc_decode_diropargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_diropargs() argument
348 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_diropargs()
349 || !(p = decode_filename(p, &args->name, &args->len))) in nfs3svc_decode_diropargs()
352 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_diropargs()
356 nfs3svc_decode_accessargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_accessargs() argument
360 p = decode_fh(p, &args->fh); in nfs3svc_decode_accessargs()
361 if (!p) in nfs3svc_decode_accessargs()
363 args->access = ntohl(*p++); in nfs3svc_decode_accessargs()
365 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_accessargs()
369 nfs3svc_decode_readargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_readargs() argument
376 p = decode_fh(p, &args->fh); in nfs3svc_decode_readargs()
377 if (!p) in nfs3svc_decode_readargs()
379 p = xdr_decode_hyper(p, &args->offset); in nfs3svc_decode_readargs()
381 args->count = ntohl(*p++); in nfs3svc_decode_readargs()
387 struct page *p = *(rqstp->rq_next_page++); in nfs3svc_decode_readargs() local
389 rqstp->rq_vec[v].iov_base = page_address(p); in nfs3svc_decode_readargs()
395 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_readargs()
399 nfs3svc_decode_writeargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_writeargs() argument
407 p = decode_fh(p, &args->fh); in nfs3svc_decode_writeargs()
408 if (!p) in nfs3svc_decode_writeargs()
410 p = xdr_decode_hyper(p, &args->offset); in nfs3svc_decode_writeargs()
412 args->count = ntohl(*p++); in nfs3svc_decode_writeargs()
413 args->stable = ntohl(*p++); in nfs3svc_decode_writeargs()
414 len = args->len = ntohl(*p++); in nfs3svc_decode_writeargs()
415 if ((void *)p > head->iov_base + head->iov_len) in nfs3svc_decode_writeargs()
427 hdr = (void*)p - head->iov_base; in nfs3svc_decode_writeargs()
445 args->first.iov_base = (void *)p; in nfs3svc_decode_writeargs()
451 nfs3svc_decode_createargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_createargs() argument
455 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_createargs()
456 || !(p = decode_filename(p, &args->name, &args->len))) in nfs3svc_decode_createargs()
459 switch (args->createmode = ntohl(*p++)) { in nfs3svc_decode_createargs()
462 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_createargs()
465 args->verf = p; in nfs3svc_decode_createargs()
466 p += 2; in nfs3svc_decode_createargs()
472 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_createargs()
476 nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_mkdirargs() argument
480 if (!(p = decode_fh(p, &args->fh)) || in nfs3svc_decode_mkdirargs()
481 !(p = decode_filename(p, &args->name, &args->len))) in nfs3svc_decode_mkdirargs()
483 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_mkdirargs()
485 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_mkdirargs()
489 nfs3svc_decode_symlinkargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_symlinkargs() argument
492 char *base = (char *)p; in nfs3svc_decode_symlinkargs()
495 if (!(p = decode_fh(p, &args->ffh)) || in nfs3svc_decode_symlinkargs()
496 !(p = decode_filename(p, &args->fname, &args->flen))) in nfs3svc_decode_symlinkargs()
498 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_symlinkargs()
500 args->tlen = ntohl(*p++); in nfs3svc_decode_symlinkargs()
502 args->first.iov_base = p; in nfs3svc_decode_symlinkargs()
504 args->first.iov_len -= (char *)p - base; in nfs3svc_decode_symlinkargs()
514 nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_mknodargs() argument
518 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_mknodargs()
519 || !(p = decode_filename(p, &args->name, &args->len))) in nfs3svc_decode_mknodargs()
522 args->ftype = ntohl(*p++); in nfs3svc_decode_mknodargs()
526 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_mknodargs()
529 args->major = ntohl(*p++); in nfs3svc_decode_mknodargs()
530 args->minor = ntohl(*p++); in nfs3svc_decode_mknodargs()
533 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_mknodargs()
537 nfs3svc_decode_renameargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_renameargs() argument
541 if (!(p = decode_fh(p, &args->ffh)) in nfs3svc_decode_renameargs()
542 || !(p = decode_filename(p, &args->fname, &args->flen)) in nfs3svc_decode_renameargs()
543 || !(p = decode_fh(p, &args->tfh)) in nfs3svc_decode_renameargs()
544 || !(p = decode_filename(p, &args->tname, &args->tlen))) in nfs3svc_decode_renameargs()
547 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_renameargs()
551 nfs3svc_decode_readlinkargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_readlinkargs() argument
555 p = decode_fh(p, &args->fh); in nfs3svc_decode_readlinkargs()
556 if (!p) in nfs3svc_decode_readlinkargs()
560 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_readlinkargs()
564 nfs3svc_decode_linkargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_linkargs() argument
568 if (!(p = decode_fh(p, &args->ffh)) in nfs3svc_decode_linkargs()
569 || !(p = decode_fh(p, &args->tfh)) in nfs3svc_decode_linkargs()
570 || !(p = decode_filename(p, &args->tname, &args->tlen))) in nfs3svc_decode_linkargs()
573 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_linkargs()
577 nfs3svc_decode_readdirargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_readdirargs() argument
583 p = decode_fh(p, &args->fh); in nfs3svc_decode_readdirargs()
584 if (!p) in nfs3svc_decode_readdirargs()
586 p = xdr_decode_hyper(p, &args->cookie); in nfs3svc_decode_readdirargs()
587 args->verf = p; p += 2; in nfs3svc_decode_readdirargs()
589 args->count = ntohl(*p++); in nfs3svc_decode_readdirargs()
593 struct page *p = *(rqstp->rq_next_page++); in nfs3svc_decode_readdirargs() local
595 args->buffer = page_address(p); in nfs3svc_decode_readdirargs()
599 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_readdirargs()
603 nfs3svc_decode_readdirplusargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_readdirplusargs() argument
609 p = decode_fh(p, &args->fh); in nfs3svc_decode_readdirplusargs()
610 if (!p) in nfs3svc_decode_readdirplusargs()
612 p = xdr_decode_hyper(p, &args->cookie); in nfs3svc_decode_readdirplusargs()
613 args->verf = p; p += 2; in nfs3svc_decode_readdirplusargs()
614 args->dircount = ntohl(*p++); in nfs3svc_decode_readdirplusargs()
615 args->count = ntohl(*p++); in nfs3svc_decode_readdirplusargs()
619 struct page *p = *(rqstp->rq_next_page++); in nfs3svc_decode_readdirplusargs() local
621 args->buffer = page_address(p); in nfs3svc_decode_readdirplusargs()
625 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_readdirplusargs()
629 nfs3svc_decode_commitargs(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_decode_commitargs() argument
632 p = decode_fh(p, &args->fh); in nfs3svc_decode_commitargs()
633 if (!p) in nfs3svc_decode_commitargs()
635 p = xdr_decode_hyper(p, &args->offset); in nfs3svc_decode_commitargs()
636 args->count = ntohl(*p++); in nfs3svc_decode_commitargs()
638 return xdr_argsize_check(rqstp, p); in nfs3svc_decode_commitargs()
646 nfs3svc_encode_voidres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_voidres() argument
648 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_voidres()
653 nfs3svc_encode_attrstat(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_attrstat() argument
657 *p++ = resp->status; in nfs3svc_encode_attrstat()
661 p = encode_fattr3(rqstp, p, &resp->fh, &resp->stat); in nfs3svc_encode_attrstat()
663 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_attrstat()
668 nfs3svc_encode_wccstat(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_wccstat() argument
672 *p++ = resp->status; in nfs3svc_encode_wccstat()
673 p = encode_wcc_data(rqstp, p, &resp->fh); in nfs3svc_encode_wccstat()
674 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_wccstat()
679 nfs3svc_encode_diropres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_diropres() argument
683 *p++ = resp->status; in nfs3svc_encode_diropres()
685 p = encode_fh(p, &resp->fh); in nfs3svc_encode_diropres()
686 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_diropres()
688 p = encode_post_op_attr(rqstp, p, &resp->dirfh); in nfs3svc_encode_diropres()
689 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_diropres()
694 nfs3svc_encode_accessres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_accessres() argument
698 *p++ = resp->status; in nfs3svc_encode_accessres()
699 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_accessres()
701 *p++ = htonl(resp->access); in nfs3svc_encode_accessres()
702 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_accessres()
707 nfs3svc_encode_readlinkres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_readlinkres() argument
711 *p++ = resp->status; in nfs3svc_encode_readlinkres()
712 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_readlinkres()
714 *p++ = htonl(resp->len); in nfs3svc_encode_readlinkres()
715 xdr_ressize_check(rqstp, p); in nfs3svc_encode_readlinkres()
719 rqstp->rq_res.tail[0].iov_base = p; in nfs3svc_encode_readlinkres()
720 *p = 0; in nfs3svc_encode_readlinkres()
725 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_readlinkres()
730 nfs3svc_encode_readres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_readres() argument
734 *p++ = resp->status; in nfs3svc_encode_readres()
735 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_readres()
737 *p++ = htonl(resp->count); in nfs3svc_encode_readres()
738 *p++ = htonl(resp->eof); in nfs3svc_encode_readres()
739 *p++ = htonl(resp->count); /* xdr opaque count */ in nfs3svc_encode_readres()
740 xdr_ressize_check(rqstp, p); in nfs3svc_encode_readres()
745 rqstp->rq_res.tail[0].iov_base = p; in nfs3svc_encode_readres()
746 *p = 0; in nfs3svc_encode_readres()
751 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_readres()
756 nfs3svc_encode_writeres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_writeres() argument
760 *p++ = resp->status; in nfs3svc_encode_writeres()
761 p = encode_wcc_data(rqstp, p, &resp->fh); in nfs3svc_encode_writeres()
763 *p++ = htonl(resp->count); in nfs3svc_encode_writeres()
764 *p++ = htonl(resp->committed); in nfs3svc_encode_writeres()
765 *p++ = resp->verf[0]; in nfs3svc_encode_writeres()
766 *p++ = resp->verf[1]; in nfs3svc_encode_writeres()
768 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_writeres()
773 nfs3svc_encode_createres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_createres() argument
777 *p++ = resp->status; in nfs3svc_encode_createres()
779 *p++ = xdr_one; in nfs3svc_encode_createres()
780 p = encode_fh(p, &resp->fh); in nfs3svc_encode_createres()
781 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_createres()
783 p = encode_wcc_data(rqstp, p, &resp->dirfh); in nfs3svc_encode_createres()
784 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_createres()
789 nfs3svc_encode_renameres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_renameres() argument
793 *p++ = resp->status; in nfs3svc_encode_renameres()
794 p = encode_wcc_data(rqstp, p, &resp->ffh); in nfs3svc_encode_renameres()
795 p = encode_wcc_data(rqstp, p, &resp->tfh); in nfs3svc_encode_renameres()
796 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_renameres()
801 nfs3svc_encode_linkres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_linkres() argument
805 *p++ = resp->status; in nfs3svc_encode_linkres()
806 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_linkres()
807 p = encode_wcc_data(rqstp, p, &resp->tfh); in nfs3svc_encode_linkres()
808 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_linkres()
813 nfs3svc_encode_readdirres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_readdirres() argument
817 *p++ = resp->status; in nfs3svc_encode_readdirres()
818 p = encode_post_op_attr(rqstp, p, &resp->fh); in nfs3svc_encode_readdirres()
822 memcpy(p, resp->verf, 8); p += 2; in nfs3svc_encode_readdirres()
823 xdr_ressize_check(rqstp, p); in nfs3svc_encode_readdirres()
829 rqstp->rq_res.tail[0].iov_base = p; in nfs3svc_encode_readdirres()
830 *p++ = 0; /* no more entries */ in nfs3svc_encode_readdirres()
831 *p++ = htonl(resp->common.err == nfserr_eof); in nfs3svc_encode_readdirres()
835 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_readdirres()
839 encode_entry_baggage(struct nfsd3_readdirres *cd, __be32 *p, const char *name, in encode_entry_baggage() argument
842 *p++ = xdr_one; /* mark entry present */ in encode_entry_baggage()
843 p = xdr_encode_hyper(p, ino); /* file id */ in encode_entry_baggage()
844 p = xdr_encode_array(p, name, namlen);/* name length & name */ in encode_entry_baggage()
846 cd->offset = p; /* remember pointer */ in encode_entry_baggage()
847 p = xdr_encode_hyper(p, NFS_OFFSET_MAX);/* offset of next entry */ in encode_entry_baggage()
849 return p; in encode_entry_baggage()
890 static __be32 *encode_entryplus_baggage(struct nfsd3_readdirres *cd, __be32 *p, const char *name, i… in encode_entryplus_baggage() argument
898 *p++ = 0; in encode_entryplus_baggage()
899 *p++ = 0; in encode_entryplus_baggage()
902 p = encode_post_op_attr(cd->rqstp, p, fh); in encode_entryplus_baggage()
903 *p++ = xdr_one; /* yes, a file handle follows */ in encode_entryplus_baggage()
904 p = encode_fh(p, fh); in encode_entryplus_baggage()
907 return p; in encode_entryplus_baggage()
928 __be32 *p = cd->buffer; in encode_entry() local
979 p = encode_entry_baggage(cd, p, name, namlen, ino); in encode_entry()
982 p = encode_entryplus_baggage(cd, p, name, namlen, ino); in encode_entry()
983 num_entry_words = p - cd->buffer; in encode_entry()
1005 memmove(p, tmp, num_entry_words << 2); in encode_entry()
1006 p += num_entry_words; in encode_entry()
1021 cd->offset = p + (cd->offset - tmp); in encode_entry()
1027 cd->offset = p + (cd->offset - tmp); in encode_entry()
1034 memmove(p, tmp, len1); in encode_entry()
1037 p = tmp + (len2 >> 2); in encode_entry()
1046 cd->buffer = p; in encode_entry()
1069 nfs3svc_encode_fsstatres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_fsstatres() argument
1075 *p++ = resp->status; in nfs3svc_encode_fsstatres()
1076 *p++ = xdr_zero; /* no post_op_attr */ in nfs3svc_encode_fsstatres()
1079 p = xdr_encode_hyper(p, bs * s->f_blocks); /* total bytes */ in nfs3svc_encode_fsstatres()
1080 p = xdr_encode_hyper(p, bs * s->f_bfree); /* free bytes */ in nfs3svc_encode_fsstatres()
1081 p = xdr_encode_hyper(p, bs * s->f_bavail); /* user available bytes */ in nfs3svc_encode_fsstatres()
1082 p = xdr_encode_hyper(p, s->f_files); /* total inodes */ in nfs3svc_encode_fsstatres()
1083 p = xdr_encode_hyper(p, s->f_ffree); /* free inodes */ in nfs3svc_encode_fsstatres()
1084 p = xdr_encode_hyper(p, s->f_ffree); /* user available inodes */ in nfs3svc_encode_fsstatres()
1085 *p++ = htonl(resp->invarsec); /* mean unchanged time */ in nfs3svc_encode_fsstatres()
1087 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_fsstatres()
1092 nfs3svc_encode_fsinfores(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_fsinfores() argument
1096 *p++ = resp->status; in nfs3svc_encode_fsinfores()
1097 *p++ = xdr_zero; /* no post_op_attr */ in nfs3svc_encode_fsinfores()
1100 *p++ = htonl(resp->f_rtmax); in nfs3svc_encode_fsinfores()
1101 *p++ = htonl(resp->f_rtpref); in nfs3svc_encode_fsinfores()
1102 *p++ = htonl(resp->f_rtmult); in nfs3svc_encode_fsinfores()
1103 *p++ = htonl(resp->f_wtmax); in nfs3svc_encode_fsinfores()
1104 *p++ = htonl(resp->f_wtpref); in nfs3svc_encode_fsinfores()
1105 *p++ = htonl(resp->f_wtmult); in nfs3svc_encode_fsinfores()
1106 *p++ = htonl(resp->f_dtpref); in nfs3svc_encode_fsinfores()
1107 p = xdr_encode_hyper(p, resp->f_maxfilesize); in nfs3svc_encode_fsinfores()
1108 *p++ = xdr_one; in nfs3svc_encode_fsinfores()
1109 *p++ = xdr_zero; in nfs3svc_encode_fsinfores()
1110 *p++ = htonl(resp->f_properties); in nfs3svc_encode_fsinfores()
1113 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_fsinfores()
1118 nfs3svc_encode_pathconfres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_pathconfres() argument
1122 *p++ = resp->status; in nfs3svc_encode_pathconfres()
1123 *p++ = xdr_zero; /* no post_op_attr */ in nfs3svc_encode_pathconfres()
1126 *p++ = htonl(resp->p_link_max); in nfs3svc_encode_pathconfres()
1127 *p++ = htonl(resp->p_name_max); in nfs3svc_encode_pathconfres()
1128 *p++ = htonl(resp->p_no_trunc); in nfs3svc_encode_pathconfres()
1129 *p++ = htonl(resp->p_chown_restricted); in nfs3svc_encode_pathconfres()
1130 *p++ = htonl(resp->p_case_insensitive); in nfs3svc_encode_pathconfres()
1131 *p++ = htonl(resp->p_case_preserving); in nfs3svc_encode_pathconfres()
1134 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_pathconfres()
1139 nfs3svc_encode_commitres(struct svc_rqst *rqstp, __be32 *p) in nfs3svc_encode_commitres() argument
1143 *p++ = resp->status; in nfs3svc_encode_commitres()
1144 p = encode_wcc_data(rqstp, p, &resp->fh); in nfs3svc_encode_commitres()
1147 *p++ = resp->verf[0]; in nfs3svc_encode_commitres()
1148 *p++ = resp->verf[1]; in nfs3svc_encode_commitres()
1150 return xdr_ressize_check(rqstp, p); in nfs3svc_encode_commitres()