• Home
  • Raw
  • Download

Lines Matching refs:resp

2724 	struct nfsd4_compoundres *resp = rqstp->rq_resp;  in nfsd4_encode_fattr()  local
2725 u32 minorversion = resp->cstate.minorversion; in nfsd4_encode_fattr()
3479 nfsd4_encode_access(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_access *access) in nfsd4_encode_access() argument
3481 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_access()
3492 static __be32 nfsd4_encode_bind_conn_to_session(struct nfsd4_compoundres *resp, __be32 nfserr, stru… in nfsd4_encode_bind_conn_to_session() argument
3494 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_bind_conn_to_session()
3509 nfsd4_encode_close(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_close *close) in nfsd4_encode_close() argument
3511 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_close()
3518 nfsd4_encode_commit(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_commit *commit) in nfsd4_encode_commit() argument
3520 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_commit()
3532 nfsd4_encode_create(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_create *create) in nfsd4_encode_create() argument
3534 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_create()
3546 nfsd4_encode_getattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_getattr *getattr) in nfsd4_encode_getattr() argument
3549 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getattr()
3552 getattr->ga_bmval, resp->rqstp, 0); in nfsd4_encode_getattr()
3556 nfsd4_encode_getfh(struct nfsd4_compoundres *resp, __be32 nfserr, struct svc_fh **fhpp) in nfsd4_encode_getfh() argument
3558 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getfh()
3611 nfsd4_encode_lock(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_lock *lock) in nfsd4_encode_lock() argument
3613 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_lock()
3624 nfsd4_encode_lockt(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_lockt *lockt) in nfsd4_encode_lockt() argument
3626 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_lockt()
3634 nfsd4_encode_locku(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_locku *locku) in nfsd4_encode_locku() argument
3636 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_locku()
3643 nfsd4_encode_link(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_link *link) in nfsd4_encode_link() argument
3645 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_link()
3657 nfsd4_encode_open(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open *open) in nfsd4_encode_open() argument
3659 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_open()
3751 nfsd4_encode_open_confirm(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_confirm … in nfsd4_encode_open_confirm() argument
3753 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_open_confirm()
3759 nfsd4_encode_open_downgrade(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_open_downgr… in nfsd4_encode_open_downgrade() argument
3761 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_open_downgrade()
3767 struct nfsd4_compoundres *resp, in nfsd4_encode_splice_read() argument
3771 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_splice_read()
3825 static __be32 nfsd4_encode_readv(struct nfsd4_compoundres *resp, in nfsd4_encode_readv() argument
3829 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_readv()
3836 read->rd_vlen = xdr_reserve_space_vec(xdr, resp->rqstp->rq_vec, maxcount); in nfsd4_encode_readv()
3840 nfserr = nfsd_readv(resp->rqstp, read->rd_fhp, file, read->rd_offset, in nfsd4_encode_readv()
3841 resp->rqstp->rq_vec, read->rd_vlen, &maxcount, in nfsd4_encode_readv()
3846 if (svc_encode_read_payload(resp->rqstp, starting_len + 8, maxcount)) in nfsd4_encode_readv()
3864 nfsd4_encode_read(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_read() argument
3868 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_read()
3879 WARN_ON_ONCE(test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)); in nfsd4_encode_read()
3882 if (resp->xdr.buf->page_len && in nfsd4_encode_read()
3883 test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)) { in nfsd4_encode_read()
3889 maxcount = svc_max_payload(resp->rqstp); in nfsd4_encode_read()
3895 test_bit(RQ_SPLICE_OK, &resp->rqstp->rq_flags)) in nfsd4_encode_read()
3896 nfserr = nfsd4_encode_splice_read(resp, read, file, maxcount); in nfsd4_encode_read()
3898 nfserr = nfsd4_encode_readv(resp, read, file, maxcount); in nfsd4_encode_read()
3907 nfsd4_encode_readlink(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_readlink *readlin… in nfsd4_encode_readlink() argument
3912 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_readlink()
3949 nfsd4_encode_readdir(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_readdir *readdir) in nfsd4_encode_readdir() argument
3955 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_readdir()
3966 resp->xdr.buf->head[0].iov_len = ((char *)resp->xdr.p) in nfsd4_encode_readdir()
3967 - (char *)resp->xdr.buf->head[0].iov_base; in nfsd4_encode_readdir()
3979 maxcount = svc_max_payload(resp->rqstp); in nfsd4_encode_readdir()
3994 readdir->rd_dircount = svc_max_payload(resp->rqstp); in nfsd4_encode_readdir()
4040 nfsd4_encode_remove(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_remove *remove) in nfsd4_encode_remove() argument
4042 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_remove()
4053 nfsd4_encode_rename(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_rename *rename) in nfsd4_encode_rename() argument
4055 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_rename()
4135 nfsd4_encode_secinfo(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_secinfo() argument
4138 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_secinfo()
4144 nfsd4_encode_secinfo_no_name(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_secinfo_no_name() argument
4147 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_secinfo_no_name()
4157 nfsd4_encode_setattr(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_setattr *setattr) in nfsd4_encode_setattr() argument
4159 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_setattr()
4181 nfsd4_encode_setclientid(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_setclientid *s… in nfsd4_encode_setclientid() argument
4183 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_setclientid()
4205 nfsd4_encode_write(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_write *write) in nfsd4_encode_write() argument
4207 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_write()
4221 nfsd4_encode_exchange_id(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_exchange_id() argument
4224 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_exchange_id()
4231 struct nfsd_net *nn = net_generic(SVC_NET(resp->rqstp), nfsd_net_id); in nfsd4_encode_exchange_id()
4299 nfsd4_encode_create_session(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_create_session() argument
4302 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_create_session()
4352 nfsd4_encode_sequence(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_sequence() argument
4355 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_sequence()
4370 resp->cstate.data_offset = xdr->buf->len; /* DRC cache data pointer */ in nfsd4_encode_sequence()
4375 nfsd4_encode_test_stateid(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_test_stateid() argument
4378 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_test_stateid()
4396 nfsd4_encode_getdeviceinfo(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_getdeviceinfo() argument
4399 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getdeviceinfo()
4449 nfsd4_encode_layoutget(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutget() argument
4452 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_layoutget()
4476 nfsd4_encode_layoutcommit(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutcommit() argument
4479 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_layoutcommit()
4497 nfsd4_encode_layoutreturn(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_layoutreturn() argument
4500 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_layoutreturn()
4514 nfsd42_encode_write_res(struct nfsd4_compoundres *resp, in nfsd42_encode_write_res() argument
4518 p = xdr_reserve_space(&resp->xdr, 4); in nfsd42_encode_write_res()
4527 nfserr = nfsd4_encode_stateid(&resp->xdr, &write->cb_stateid); in nfsd42_encode_write_res()
4531 p = xdr_reserve_space(&resp->xdr, 8 + 4 + NFS4_VERIFIER_SIZE); in nfsd42_encode_write_res()
4543 nfsd42_encode_nl4_server(struct nfsd4_compoundres *resp, struct nl4_server *ns) in nfsd42_encode_nl4_server() argument
4545 struct xdr_stream *xdr = &resp->xdr; in nfsd42_encode_nl4_server()
4583 nfsd4_encode_copy(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_copy() argument
4588 nfserr = nfsd42_encode_write_res(resp, &copy->cp_res, in nfsd4_encode_copy()
4593 p = xdr_reserve_space(&resp->xdr, 4 + 4); in nfsd4_encode_copy()
4600 nfsd4_encode_offload_status(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_offload_status() argument
4603 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_offload_status()
4615 nfsd4_encode_read_plus_data(struct nfsd4_compoundres *resp, in nfsd4_encode_read_plus_data() argument
4620 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_read_plus_data()
4638 read->rd_vlen = xdr_reserve_space_vec(xdr, resp->rqstp->rq_vec, *maxcount); in nfsd4_encode_read_plus_data()
4642 nfserr = nfsd_readv(resp->rqstp, read->rd_fhp, file, read->rd_offset, in nfsd4_encode_read_plus_data()
4643 resp->rqstp->rq_vec, read->rd_vlen, maxcount, eof); in nfsd4_encode_read_plus_data()
4662 nfsd4_encode_read_plus_hole(struct nfsd4_compoundres *resp, in nfsd4_encode_read_plus_hole() argument
4675 return nfsd4_encode_read_plus_data(resp, read, maxcount, eof, &f_size); in nfsd4_encode_read_plus_hole()
4679 p = xdr_reserve_space(&resp->xdr, 4 + 8 + 8); in nfsd4_encode_read_plus_hole()
4693 nfsd4_encode_read_plus(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_read_plus() argument
4697 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_read_plus()
4717 maxcount = svc_max_payload(resp->rqstp); in nfsd4_encode_read_plus()
4733 nfserr = nfsd4_encode_read_plus_data(resp, read, &maxcount, &eof, in nfsd4_encode_read_plus()
4736 nfserr = nfsd4_encode_read_plus_hole(resp, read, &maxcount, &eof); in nfsd4_encode_read_plus()
4765 nfsd4_encode_copy_notify(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_copy_notify() argument
4768 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_copy_notify()
4795 return nfsd42_encode_nl4_server(resp, &cn->cpn_src); in nfsd4_encode_copy_notify()
4799 nfsd4_encode_seek(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_seek() argument
4804 p = xdr_reserve_space(&resp->xdr, 4 + 8); in nfsd4_encode_seek()
4812 nfsd4_encode_noop(struct nfsd4_compoundres *resp, __be32 nfserr, void *p) in nfsd4_encode_noop() argument
4862 nfsd4_encode_getxattr(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_getxattr() argument
4865 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_getxattr()
4886 nfsd4_encode_setxattr(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_setxattr() argument
4889 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_setxattr()
4927 nfsd4_encode_listxattrs(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_listxattrs() argument
4930 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_listxattrs()
5038 nfsd4_encode_removexattr(struct nfsd4_compoundres *resp, __be32 nfserr, in nfsd4_encode_removexattr() argument
5041 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_removexattr()
5162 __be32 nfsd4_check_resp_size(struct nfsd4_compoundres *resp, u32 respsize) in nfsd4_check_resp_size() argument
5164 struct xdr_buf *buf = &resp->rqstp->rq_res; in nfsd4_check_resp_size()
5165 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_check_resp_size()
5169 if (!nfsd4_has_session(&resp->cstate)) in nfsd4_check_resp_size()
5179 nfsd4_encode_operation(struct nfsd4_compoundres *resp, struct nfsd4_op *op) in nfsd4_encode_operation() argument
5181 struct xdr_stream *xdr = &resp->xdr; in nfsd4_encode_operation()
5182 struct nfs4_stateowner *so = resp->cstate.replay_owner; in nfsd4_encode_operation()
5183 struct svc_rqst *rqstp = resp->rqstp; in nfsd4_encode_operation()
5205 op->status = encoder(resp, op->status, &op->u); in nfsd4_encode_operation()
5215 op->status = nfsd4_check_resp_size(resp, space_needed); in nfsd4_encode_operation()
5217 if (op->status == nfserr_resource && nfsd4_has_session(&resp->cstate)) { in nfsd4_encode_operation()
5218 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_encode_operation()
5330 struct nfsd4_compoundres *resp = rqstp->rq_resp; in nfs4svc_encode_compoundres() local
5331 struct xdr_buf *buf = resp->xdr.buf; in nfs4svc_encode_compoundres()
5336 *p = resp->cstate.status; in nfs4svc_encode_compoundres()
5338 rqstp->rq_next_page = resp->xdr.page_ptr + 1; in nfs4svc_encode_compoundres()
5340 p = resp->tagp; in nfs4svc_encode_compoundres()
5341 *p++ = htonl(resp->taglen); in nfs4svc_encode_compoundres()
5342 memcpy(p, resp->tag, resp->taglen); in nfs4svc_encode_compoundres()
5343 p += XDR_QUADLEN(resp->taglen); in nfs4svc_encode_compoundres()
5344 *p++ = htonl(resp->opcnt); in nfs4svc_encode_compoundres()
5346 nfsd4_sequence_done(resp); in nfs4svc_encode_compoundres()