Lines Matching refs:resp
2421 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfsd4_encode_fattr() local
2422 u32 minorversion = resp->cstate.minorversion; in nfsd4_encode_fattr()
3167 nfsd4_encode_access(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_access *access) in nfsd4_encode_access() argument
3169 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_access()
3180 static __be32 nfsd4_encode_bind_conn_to_session(struct nfsd4_compoundres *resp, __be32 nfserr, stru… in nfsd4_encode_bind_conn_to_session() argument
3182 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_bind_conn_to_session()
3197 nfsd4_encode_close(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_close *close) in nfsd4_encode_close() argument
3199 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_close()
3206 nfsd4_encode_commit(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_commit *commit) in nfsd4_encode_commit() argument
3208 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_commit()
3220 nfsd4_encode_create(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_create *create) in nfsd4_encode_create() argument
3222 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_create()
3235 nfsd4_encode_getattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_getattr *getattr) in nfsd4_encode_getattr() argument
3238 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getattr()
3241 getattr->ga_bmval, resp->rqstp, 0); in nfsd4_encode_getattr()
3245 nfsd4_encode_getfh(struct nfsd4_compoundres *resp, __be32 nfserr, struct svc_fh **fhpp) in nfsd4_encode_getfh() argument
3247 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getfh()
3300 nfsd4_encode_lock(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_lock *lock) in nfsd4_encode_lock() argument
3302 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_lock()
3313 nfsd4_encode_lockt(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_lockt *lockt) in nfsd4_encode_lockt() argument
3315 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_lockt()
3323 nfsd4_encode_locku(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_locku *locku) in nfsd4_encode_locku() argument
3325 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_locku()
3332 nfsd4_encode_link(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_link *link) in nfsd4_encode_link() argument
3334 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_link()
3346 nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) in nfsd4_encode_open() argument
3348 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_open()
3440 nfsd4_encode_open_confirm(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_confirm … in nfsd4_encode_open_confirm() argument
3442 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_open_confirm()
3448 nfsd4_encode_open_downgrade(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_downgr… in nfsd4_encode_open_downgrade() argument
3450 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_open_downgrade()
3456 struct nfsd4_compoundres *resp, in nfsd4_encode_splice_read() argument
3460 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_splice_read()
3519 static __be32 nfsd4_encode_readv(struct nfsd4_compoundres *resp, in nfsd4_encode_readv() argument
3523 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_readv()
3541 resp->rqstp->rq_vec[v].iov_base = p; in nfsd4_encode_readv()
3542 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv()
3550 resp->rqstp->rq_vec[v].iov_base = p; in nfsd4_encode_readv()
3551 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv()
3558 nfserr = nfsd_readv(resp->rqstp, read->rd_fhp, file, read->rd_offset, in nfsd4_encode_readv()
3559 resp->rqstp->rq_vec, read->rd_vlen, &maxcount); in nfsd4_encode_readv()
3581 nfsd4_encode_read(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_read() argument
3585 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_read()
3593 WARN_ON_ONCE(test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)); in nfsd4_encode_read()
3596 if (resp->xdr.buf->page_len && in nfsd4_encode_read()
3597 test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)) { in nfsd4_encode_read()
3603 maxcount = svc_max_payload(resp->rqstp); in nfsd4_encode_read()
3612 test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)) in nfsd4_encode_read()
3613 nfserr = nfsd4_encode_splice_read(resp, read, file, maxcount); in nfsd4_encode_read()
3615 nfserr = nfsd4_encode_readv(resp, read, file, maxcount); in nfsd4_encode_read()
3627 nfsd4_encode_readlink(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_readlink *readlin… in nfsd4_encode_readlink() argument
3632 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_readlink()
3669 nfsd4_encode_readdir(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_readdir *readdir) in nfsd4_encode_readdir() argument
3675 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_readdir()
3686 resp->xdr.buf->head[0].iov_len = ((char *)resp->xdr.p) in nfsd4_encode_readdir()
3687 - (char *)resp->xdr.buf->head[0].iov_base; in nfsd4_encode_readdir()
3699 maxcount = svc_max_payload(resp->rqstp); in nfsd4_encode_readdir()
3714 readdir->rd_dircount = svc_max_payload(resp->rqstp); in nfsd4_encode_readdir()
3760 nfsd4_encode_remove(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_remove *remove) in nfsd4_encode_remove() argument
3762 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_remove()
3773 nfsd4_encode_rename(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_rename *rename) in nfsd4_encode_rename() argument
3775 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_rename()
3855 nfsd4_encode_secinfo(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_secinfo() argument
3858 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_secinfo()
3864 nfsd4_encode_secinfo_no_name(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_secinfo_no_name() argument
3867 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_secinfo_no_name()
3877 nfsd4_encode_setattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_setattr *setattr) in nfsd4_encode_setattr() argument
3879 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_setattr()
3901 nfsd4_encode_setclientid(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_setclientid *s… in nfsd4_encode_setclientid() argument
3903 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_setclientid()
3925 nfsd4_encode_write(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_write *write) in nfsd4_encode_write() argument
3927 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_write()
3941 nfsd4_encode_exchange_id(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_exchange_id() argument
3944 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_exchange_id()
4018 nfsd4_encode_create_session(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_create_session() argument
4021 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_create_session()
4071 nfsd4_encode_sequence(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_sequence() argument
4074 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_sequence()
4089 resp->cstate.data_offset = xdr->buf->len; /* DRC cache data pointer */ in nfsd4_encode_sequence()
4094 nfsd4_encode_test_stateid(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_test_stateid() argument
4097 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_test_stateid()
4115 nfsd4_encode_getdeviceinfo(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_getdeviceinfo() argument
4118 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getdeviceinfo()
4168 nfsd4_encode_layoutget(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutget() argument
4171 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_layoutget()
4195 nfsd4_encode_layoutcommit(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutcommit() argument
4198 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_layoutcommit()
4216 nfsd4_encode_layoutreturn(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutreturn() argument
4219 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_layoutreturn()
4233 nfsd42_encode_write_res(struct nfsd4_compoundres *resp, struct nfsd42_write_res *write) in nfsd42_encode_write_res() argument
4237 p = xdr_reserve_space(&resp->xdr, 4 + 8 + 4 + NFS4_VERIFIER_SIZE); in nfsd42_encode_write_res()
4250 nfsd4_encode_copy(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_copy() argument
4255 nfserr = nfsd42_encode_write_res(resp, ©->cp_res); in nfsd4_encode_copy()
4259 p = xdr_reserve_space(&resp->xdr, 4 + 4); in nfsd4_encode_copy()
4266 nfsd4_encode_seek(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_seek() argument
4271 p = xdr_reserve_space(&resp->xdr, 4 + 8); in nfsd4_encode_seek()
4279 nfsd4_encode_noop(struct nfsd4_compoundres *resp, __be32 nfserr, void *p) in nfsd4_encode_noop() argument
4388 __be32 nfsd4_check_resp_size(struct nfsd4_compoundres *resp, u32 respsize) in nfsd4_check_resp_size() argument
4390 struct xdr_buf *buf = &resp->rqstp->rq_res; in nfsd4_check_resp_size()
4391 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_check_resp_size()
4395 if (!nfsd4_has_session(&resp->cstate)) in nfsd4_check_resp_size()
4405 nfsd4_encode_operation(struct nfsd4_compoundres *resp, struct nfsd4_op *op) in nfsd4_encode_operation() argument
4407 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_operation()
4408 struct nfs4_stateowner *so = resp->cstate.replay_owner; in nfsd4_encode_operation()
4409 struct svc_rqst *rqstp = resp->rqstp; in nfsd4_encode_operation()
4431 op->status = encoder(resp, op->status, &op->u); in nfsd4_encode_operation()
4441 op->status = nfsd4_check_resp_size(resp, space_needed); in nfsd4_encode_operation()
4443 if (op->status == nfserr_resource && nfsd4_has_session(&resp->cstate)) { in nfsd4_encode_operation()
4444 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_encode_operation()
4555 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfs4svc_encode_compoundres() local
4556 struct xdr_buf *buf = resp->xdr.buf; in nfs4svc_encode_compoundres()
4561 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfs4svc_encode_compoundres()
4563 p = resp->tagp; in nfs4svc_encode_compoundres()
4564 *p++ = htonl(resp->taglen); in nfs4svc_encode_compoundres()
4565 memcpy(p, resp->tag, resp->taglen); in nfs4svc_encode_compoundres()
4566 p += XDR_QUADLEN(resp->taglen); in nfs4svc_encode_compoundres()
4567 *p++ = htonl(resp->opcnt); in nfs4svc_encode_compoundres()
4569 nfsd4_sequence_done(resp); in nfs4svc_encode_compoundres()