Lines Matching refs:rmsgp
151 struct rpcrdma_msg *rmsgp = NULL; in svc_rdma_xdr_decode_req() local
155 rmsgp = (struct rpcrdma_msg *)rqstp->rq_arg.head[0].iov_base; in svc_rdma_xdr_decode_req()
164 if (rmsgp->rm_vers != rpcrdma_version) in svc_rdma_xdr_decode_req()
168 if (rmsgp->rm_type == rdma_msgp) { in svc_rdma_xdr_decode_req()
171 rmsgp->rm_body.rm_padded.rm_align = in svc_rdma_xdr_decode_req()
172 be32_to_cpu(rmsgp->rm_body.rm_padded.rm_align); in svc_rdma_xdr_decode_req()
173 rmsgp->rm_body.rm_padded.rm_thresh = in svc_rdma_xdr_decode_req()
174 be32_to_cpu(rmsgp->rm_body.rm_padded.rm_thresh); in svc_rdma_xdr_decode_req()
176 va = &rmsgp->rm_body.rm_padded.rm_pempty[4]; in svc_rdma_xdr_decode_req()
178 hdrlen = (u32)((unsigned long)va - (unsigned long)rmsgp); in svc_rdma_xdr_decode_req()
188 va = &rmsgp->rm_body.rm_chunks[0]; in svc_rdma_xdr_decode_req()
189 vaend = (__be32 *)((unsigned long)rmsgp + rqstp->rq_arg.len); in svc_rdma_xdr_decode_req()
201 hdr_len = (unsigned long)va - (unsigned long)rmsgp; in svc_rdma_xdr_decode_req()
204 *rdma_req = rmsgp; in svc_rdma_xdr_decode_req()
209 struct rpcrdma_msg *rmsgp, in svc_rdma_xdr_encode_error() argument
214 *va++ = rmsgp->rm_xid; in svc_rdma_xdr_encode_error()
215 *va++ = rmsgp->rm_vers; in svc_rdma_xdr_encode_error()
227 int svc_rdma_xdr_get_reply_hdr_len(struct rpcrdma_msg *rmsgp) in svc_rdma_xdr_get_reply_hdr_len() argument
235 &rmsgp->rm_body.rm_chunks[1]; in svc_rdma_xdr_get_reply_hdr_len()
252 return (unsigned long) wr_ary - (unsigned long) rmsgp; in svc_rdma_xdr_get_reply_hdr_len()
255 void svc_rdma_xdr_encode_write_list(struct rpcrdma_msg *rmsgp, int chunks) in svc_rdma_xdr_encode_write_list() argument
260 rmsgp->rm_body.rm_chunks[0] = xdr_zero; in svc_rdma_xdr_encode_write_list()
264 &rmsgp->rm_body.rm_chunks[1]; in svc_rdma_xdr_encode_write_list()