Lines Matching refs:resp
2294 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_encode_fattr() local
2295 u32 minorversion = resp->cstate.minorversion; in nfsd4_encode_fattr()
3019 nfsd4_encode_access(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_access *access) in nfsd4_encode_access() argument
3021 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_access()
3034 static __be32 nfsd4_encode_bind_conn_to_session(struct nfsd4_compoundres *resp, __be32 nfserr, stru… in nfsd4_encode_bind_conn_to_session() argument
3036 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_bind_conn_to_session()
3053 nfsd4_encode_close(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_close *close) in nfsd4_encode_close() argument
3055 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_close()
3065 nfsd4_encode_commit(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_commit *commit) in nfsd4_encode_commit() argument
3067 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_commit()
3081 nfsd4_encode_create(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_create *create) in nfsd4_encode_create() argument
3083 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_create()
3098 nfsd4_encode_getattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_getattr *getattr) in nfsd4_encode_getattr() argument
3101 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getattr()
3108 resp->rqstp, 0); in nfsd4_encode_getattr()
3113 nfsd4_encode_getfh(struct nfsd4_compoundres *resp, __be32 nfserr, struct svc_fh **fhpp) in nfsd4_encode_getfh() argument
3115 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getfh()
3170 nfsd4_encode_lock(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_lock *lock) in nfsd4_encode_lock() argument
3172 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_lock()
3183 nfsd4_encode_lockt(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_lockt *lockt) in nfsd4_encode_lockt() argument
3185 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_lockt()
3193 nfsd4_encode_locku(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_locku *locku) in nfsd4_encode_locku() argument
3195 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_locku()
3205 nfsd4_encode_link(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_link *link) in nfsd4_encode_link() argument
3207 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_link()
3221 nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) in nfsd4_encode_open() argument
3223 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_open()
3319 nfsd4_encode_open_confirm(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_confirm … in nfsd4_encode_open_confirm() argument
3321 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_open_confirm()
3330 nfsd4_encode_open_downgrade(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_downgr… in nfsd4_encode_open_downgrade() argument
3332 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_open_downgrade()
3341 struct nfsd4_compoundres *resp, in nfsd4_encode_splice_read() argument
3345 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_splice_read()
3401 static __be32 nfsd4_encode_readv(struct nfsd4_compoundres *resp, in nfsd4_encode_readv() argument
3405 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_readv()
3423 resp->rqstp->rq_vec[v].iov_base = p; in nfsd4_encode_readv()
3424 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv()
3432 resp->rqstp->rq_vec[v].iov_base = p; in nfsd4_encode_readv()
3433 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv()
3439 nfserr = nfsd_readv(file, read->rd_offset, resp->rqstp->rq_vec, in nfsd4_encode_readv()
3461 nfsd4_encode_read(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_read() argument
3465 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_read()
3476 WARN_ON_ONCE(test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)); in nfsd4_encode_read()
3480 if (resp->xdr.buf->page_len && in nfsd4_encode_read()
3481 test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)) { in nfsd4_encode_read()
3488 maxcount = svc_max_payload(resp->rqstp); in nfsd4_encode_read()
3497 test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)) in nfsd4_encode_read()
3498 nfserr = nfsd4_encode_splice_read(resp, read, file, maxcount); in nfsd4_encode_read()
3500 nfserr = nfsd4_encode_readv(resp, read, file, maxcount); in nfsd4_encode_read()
3515 nfsd4_encode_readlink(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_readlink *readlin… in nfsd4_encode_readlink() argument
3520 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_readlink()
3560 nfsd4_encode_readdir(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_readdir *readdir) in nfsd4_encode_readdir() argument
3566 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_readdir()
3580 resp->xdr.buf->head[0].iov_len = ((char *)resp->xdr.p) in nfsd4_encode_readdir()
3581 - (char *)resp->xdr.buf->head[0].iov_base; in nfsd4_encode_readdir()
3653 nfsd4_encode_remove(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_remove *remove) in nfsd4_encode_remove() argument
3655 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_remove()
3668 nfsd4_encode_rename(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_rename *rename) in nfsd4_encode_rename() argument
3670 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_rename()
3760 nfsd4_encode_secinfo(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_secinfo() argument
3763 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_secinfo()
3769 nfsd4_encode_secinfo_no_name(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_secinfo_no_name() argument
3772 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_secinfo_no_name()
3782 nfsd4_encode_setattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_setattr *setattr) in nfsd4_encode_setattr() argument
3784 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_setattr()
3806 nfsd4_encode_setclientid(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_setclientid *s… in nfsd4_encode_setclientid() argument
3808 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_setclientid()
3830 nfsd4_encode_write(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_write *write) in nfsd4_encode_write() argument
3832 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_write()
3856 nfsd4_encode_exchange_id(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_exchange_id() argument
3859 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_exchange_id()
3934 nfsd4_encode_create_session(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_create_session() argument
3937 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_create_session()
3990 nfsd4_encode_sequence(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_sequence() argument
3993 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_sequence()
4011 resp->cstate.data_offset = xdr->buf->len; /* DRC cache data pointer */ in nfsd4_encode_sequence()
4016 nfsd4_encode_test_stateid(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_test_stateid() argument
4019 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_test_stateid()
4040 nfsd4_encode_getdeviceinfo(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_getdeviceinfo() argument
4043 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getdeviceinfo()
4110 nfsd4_encode_layoutget(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutget() argument
4113 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_layoutget()
4145 nfsd4_encode_layoutcommit(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutcommit() argument
4148 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_layoutcommit()
4169 nfsd4_encode_layoutreturn(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutreturn() argument
4172 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_layoutreturn()
4189 nfsd4_encode_seek(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_seek() argument
4197 p = xdr_reserve_space(&resp->xdr, 4 + 8); in nfsd4_encode_seek()
4205 nfsd4_encode_noop(struct nfsd4_compoundres *resp, __be32 nfserr, void *p) in nfsd4_encode_noop() argument
4313 __be32 nfsd4_check_resp_size(struct nfsd4_compoundres *resp, u32 respsize) in nfsd4_check_resp_size() argument
4315 struct xdr_buf *buf = &resp->rqstp->rq_res; in nfsd4_check_resp_size()
4316 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_check_resp_size()
4320 if (!nfsd4_has_session(&resp->cstate)) in nfsd4_check_resp_size()
4330 nfsd4_encode_operation(struct nfsd4_compoundres *resp, struct nfsd4_op *op) in nfsd4_encode_operation() argument
4332 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_operation()
4333 struct nfs4_stateowner *so = resp->cstate.replay_owner; in nfsd4_encode_operation()
4334 struct svc_rqst *rqstp = resp->rqstp; in nfsd4_encode_operation()
4352 op->status = encoder(resp, op->status, &op->u); in nfsd4_encode_operation()
4360 op->status = nfsd4_check_resp_size(resp, space_needed); in nfsd4_encode_operation()
4362 if (op->status == nfserr_resource && nfsd4_has_session(&resp->cstate)) { in nfsd4_encode_operation()
4363 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_encode_operation()
4427 int nfsd4_release_compoundargs(void *rq, __be32 *p, void *resp) in nfsd4_release_compoundargs() argument
4468 nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compoundres *resp) in nfs4svc_encode_compoundres() argument
4473 struct xdr_buf *buf = resp->xdr.buf; in nfs4svc_encode_compoundres()
4478 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfs4svc_encode_compoundres()
4480 p = resp->tagp; in nfs4svc_encode_compoundres()
4481 *p++ = htonl(resp->taglen); in nfs4svc_encode_compoundres()
4482 memcpy(p, resp->tag, resp->taglen); in nfs4svc_encode_compoundres()
4483 p += XDR_QUADLEN(resp->taglen); in nfs4svc_encode_compoundres()
4484 *p++ = htonl(resp->opcnt); in nfs4svc_encode_compoundres()
4486 nfsd4_sequence_done(resp); in nfs4svc_encode_compoundres()