Lines Matching refs:rqstp
130 svcxdr_decode_sattr(struct svc_rqst *rqstp, struct xdr_stream *xdr, in svcxdr_decode_sattr() argument
154 iap->ia_uid = make_kuid(nfsd_user_namespace(rqstp), tmp1); in svcxdr_decode_sattr()
161 iap->ia_gid = make_kgid(nfsd_user_namespace(rqstp), tmp1); in svcxdr_decode_sattr()
214 svcxdr_encode_fattr(struct svc_rqst *rqstp, struct xdr_stream *xdr, in svcxdr_encode_fattr() argument
217 struct user_namespace *userns = nfsd_user_namespace(rqstp); in svcxdr_encode_fattr()
276 nfssvc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_fhandleargs() argument
278 struct nfsd_fhandle *args = rqstp->rq_argp; in nfssvc_decode_fhandleargs()
284 nfssvc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_sattrargs() argument
286 struct nfsd_sattrargs *args = rqstp->rq_argp; in nfssvc_decode_sattrargs()
289 svcxdr_decode_sattr(rqstp, xdr, &args->attrs); in nfssvc_decode_sattrargs()
293 nfssvc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_diropargs() argument
295 struct nfsd_diropargs *args = rqstp->rq_argp; in nfssvc_decode_diropargs()
301 nfssvc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_readargs() argument
303 struct nfsd_readargs *args = rqstp->rq_argp; in nfssvc_decode_readargs()
320 nfssvc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_writeargs() argument
322 struct nfsd_writeargs *args = rqstp->rq_argp; in nfssvc_decode_writeargs()
346 nfssvc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_createargs() argument
348 struct nfsd_createargs *args = rqstp->rq_argp; in nfssvc_decode_createargs()
352 svcxdr_decode_sattr(rqstp, xdr, &args->attrs); in nfssvc_decode_createargs()
356 nfssvc_decode_renameargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_renameargs() argument
358 struct nfsd_renameargs *args = rqstp->rq_argp; in nfssvc_decode_renameargs()
367 nfssvc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_linkargs() argument
369 struct nfsd_linkargs *args = rqstp->rq_argp; in nfssvc_decode_linkargs()
377 nfssvc_decode_symlinkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_symlinkargs() argument
379 struct nfsd_symlinkargs *args = rqstp->rq_argp; in nfssvc_decode_symlinkargs()
380 struct kvec *head = rqstp->rq_arg.head; in nfssvc_decode_symlinkargs()
393 return svcxdr_decode_sattr(rqstp, xdr, &args->attrs); in nfssvc_decode_symlinkargs()
397 nfssvc_decode_readdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_decode_readdirargs() argument
399 struct nfsd_readdirargs *args = rqstp->rq_argp; in nfssvc_decode_readdirargs()
416 nfssvc_encode_statres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_encode_statres() argument
418 struct nfsd_stat *resp = rqstp->rq_resp; in nfssvc_encode_statres()
424 nfssvc_encode_attrstatres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_encode_attrstatres() argument
426 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfssvc_encode_attrstatres()
432 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfssvc_encode_attrstatres()
441 nfssvc_encode_diropres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_encode_diropres() argument
443 struct nfsd_diropres *resp = rqstp->rq_resp; in nfssvc_encode_diropres()
451 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfssvc_encode_diropres()
460 nfssvc_encode_readlinkres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_encode_readlinkres() argument
462 struct nfsd_readlinkres *resp = rqstp->rq_resp; in nfssvc_encode_readlinkres()
463 struct kvec *head = rqstp->rq_res.head; in nfssvc_encode_readlinkres()
471 svcxdr_encode_opaque_pages(rqstp, xdr, &resp->page, 0, in nfssvc_encode_readlinkres()
473 if (svc_encode_result_payload(rqstp, head->iov_len, resp->len) < 0) in nfssvc_encode_readlinkres()
482 nfssvc_encode_readres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_encode_readres() argument
484 struct nfsd_readres *resp = rqstp->rq_resp; in nfssvc_encode_readres()
485 struct kvec *head = rqstp->rq_res.head; in nfssvc_encode_readres()
491 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfssvc_encode_readres()
495 svcxdr_encode_opaque_pages(rqstp, xdr, resp->pages, in nfssvc_encode_readres()
496 rqstp->rq_res.page_base, in nfssvc_encode_readres()
498 if (svc_encode_result_payload(rqstp, head->iov_len, resp->count) < 0) in nfssvc_encode_readres()
507 nfssvc_encode_readdirres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_encode_readdirres() argument
509 struct nfsd_readdirres *resp = rqstp->rq_resp; in nfssvc_encode_readdirres()
516 svcxdr_encode_opaque_pages(rqstp, xdr, dirlist->pages, 0, in nfssvc_encode_readdirres()
530 nfssvc_encode_statfsres(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfssvc_encode_statfsres() argument
532 struct nfsd_statfsres *resp = rqstp->rq_resp; in nfssvc_encode_statfsres()
644 void nfssvc_release_attrstat(struct svc_rqst *rqstp) in nfssvc_release_attrstat() argument
646 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfssvc_release_attrstat()
651 void nfssvc_release_diropres(struct svc_rqst *rqstp) in nfssvc_release_diropres() argument
653 struct nfsd_diropres *resp = rqstp->rq_resp; in nfssvc_release_diropres()
658 void nfssvc_release_readres(struct svc_rqst *rqstp) in nfssvc_release_readres() argument
660 struct nfsd_readres *resp = rqstp->rq_resp; in nfssvc_release_readres()