Lines Matching refs:rmsgp

151 	struct rpcrdma_msg *rmsgp = NULL;  in svc_rdma_xdr_decode_req()  local
156 rmsgp = (struct rpcrdma_msg *)rqstp->rq_arg.head[0].iov_base; in svc_rdma_xdr_decode_req()
166 rmsgp->rm_xid = ntohl(rmsgp->rm_xid); in svc_rdma_xdr_decode_req()
167 rmsgp->rm_vers = ntohl(rmsgp->rm_vers); in svc_rdma_xdr_decode_req()
168 rmsgp->rm_credit = ntohl(rmsgp->rm_credit); in svc_rdma_xdr_decode_req()
169 rmsgp->rm_type = ntohl(rmsgp->rm_type); in svc_rdma_xdr_decode_req()
171 if (rmsgp->rm_vers != RPCRDMA_VERSION) in svc_rdma_xdr_decode_req()
175 if (rmsgp->rm_type == RDMA_MSGP) { in svc_rdma_xdr_decode_req()
177 rmsgp->rm_body.rm_padded.rm_align = in svc_rdma_xdr_decode_req()
178 ntohl(rmsgp->rm_body.rm_padded.rm_align); in svc_rdma_xdr_decode_req()
179 rmsgp->rm_body.rm_padded.rm_thresh = in svc_rdma_xdr_decode_req()
180 ntohl(rmsgp->rm_body.rm_padded.rm_thresh); in svc_rdma_xdr_decode_req()
182 va = &rmsgp->rm_body.rm_padded.rm_pempty[4]; in svc_rdma_xdr_decode_req()
184 hdrlen = (u32)((unsigned long)va - (unsigned long)rmsgp); in svc_rdma_xdr_decode_req()
194 va = &rmsgp->rm_body.rm_chunks[0]; in svc_rdma_xdr_decode_req()
195 vaend = (u32 *)((unsigned long)rmsgp + rqstp->rq_arg.len); in svc_rdma_xdr_decode_req()
207 hdr_len = (unsigned long)va - (unsigned long)rmsgp; in svc_rdma_xdr_decode_req()
210 *rdma_req = rmsgp; in svc_rdma_xdr_decode_req()
216 struct rpcrdma_msg *rmsgp = NULL; in svc_rdma_xdr_decode_deferred_req() local
224 rmsgp = (struct rpcrdma_msg *)rqstp->rq_arg.head[0].iov_base; in svc_rdma_xdr_decode_deferred_req()
227 if (rmsgp->rm_type == RDMA_MSGP) { in svc_rdma_xdr_decode_deferred_req()
228 va = &rmsgp->rm_body.rm_padded.rm_pempty[4]; in svc_rdma_xdr_decode_deferred_req()
230 hdrlen = (u32)((unsigned long)va - (unsigned long)rmsgp); in svc_rdma_xdr_decode_deferred_req()
238 va = &rmsgp->rm_body.rm_chunks[0]; in svc_rdma_xdr_decode_deferred_req()
264 hdrlen = (unsigned long)va - (unsigned long)rmsgp; in svc_rdma_xdr_decode_deferred_req()
271 struct rpcrdma_msg *rmsgp, in svc_rdma_xdr_encode_error() argument
276 *va++ = htonl(rmsgp->rm_xid); in svc_rdma_xdr_encode_error()
277 *va++ = htonl(rmsgp->rm_vers); in svc_rdma_xdr_encode_error()
289 int svc_rdma_xdr_get_reply_hdr_len(struct rpcrdma_msg *rmsgp) in svc_rdma_xdr_get_reply_hdr_len() argument
297 &rmsgp->rm_body.rm_chunks[1]; in svc_rdma_xdr_get_reply_hdr_len()
314 return (unsigned long) wr_ary - (unsigned long) rmsgp; in svc_rdma_xdr_get_reply_hdr_len()
317 void svc_rdma_xdr_encode_write_list(struct rpcrdma_msg *rmsgp, int chunks) in svc_rdma_xdr_encode_write_list() argument
322 rmsgp->rm_body.rm_chunks[0] = xdr_zero; in svc_rdma_xdr_encode_write_list()
326 &rmsgp->rm_body.rm_chunks[1]; in svc_rdma_xdr_encode_write_list()