Lines Matching refs:headerp
179 struct rpcrdma_msg *headerp, enum rpcrdma_chunktype type) in rpcrdma_create_chunks() argument
189 __be32 *iptr = headerp->rm_body.rm_chunks; in rpcrdma_create_chunks()
284 return (unsigned char *)iptr - (unsigned char *)headerp; in rpcrdma_create_chunks()
389 struct rpcrdma_msg *headerp; in rpcrdma_marshal_req() local
398 headerp = rdmab_to_msg(req->rl_rdmabuf); in rpcrdma_marshal_req()
400 headerp->rm_xid = rqst->rq_xid; in rpcrdma_marshal_req()
401 headerp->rm_vers = rpcrdma_version; in rpcrdma_marshal_req()
402 headerp->rm_credit = cpu_to_be32(r_xprt->rx_buf.rb_max_requests); in rpcrdma_marshal_req()
403 headerp->rm_type = rdma_msg; in rpcrdma_marshal_req()
477 headerp->rm_type = rdma_msgp; in rpcrdma_marshal_req()
478 headerp->rm_body.rm_padded.rm_align = in rpcrdma_marshal_req()
480 headerp->rm_body.rm_padded.rm_thresh = in rpcrdma_marshal_req()
482 headerp->rm_body.rm_padded.rm_pempty[0] = xdr_zero; in rpcrdma_marshal_req()
483 headerp->rm_body.rm_padded.rm_pempty[1] = xdr_zero; in rpcrdma_marshal_req()
484 headerp->rm_body.rm_padded.rm_pempty[2] = xdr_zero; in rpcrdma_marshal_req()
492 headerp->rm_body.rm_nochunks.rm_empty[0] = xdr_zero; in rpcrdma_marshal_req()
493 headerp->rm_body.rm_nochunks.rm_empty[1] = xdr_zero; in rpcrdma_marshal_req()
494 headerp->rm_body.rm_nochunks.rm_empty[2] = xdr_zero; in rpcrdma_marshal_req()
514 headerp, rtype); in rpcrdma_marshal_req()
519 headerp, wtype); in rpcrdma_marshal_req()
527 headerp, base, rdmab_lkey(req->rl_rdmabuf)); in rpcrdma_marshal_req()
732 struct rpcrdma_msg *headerp; in rpcrdma_reply_handler() local
755 headerp = rdmab_to_msg(rep->rr_rdmabuf); in rpcrdma_reply_handler()
756 if (headerp->rm_vers != rpcrdma_version) { in rpcrdma_reply_handler()
758 __func__, be32_to_cpu(headerp->rm_vers)); in rpcrdma_reply_handler()
764 rqst = xprt_lookup_rqst(xprt, headerp->rm_xid); in rpcrdma_reply_handler()
769 __func__, rep, be32_to_cpu(headerp->rm_xid), in rpcrdma_reply_handler()
786 be32_to_cpu(headerp->rm_xid)); in rpcrdma_reply_handler()
793 be32_to_cpu(headerp->rm_xid)); in rpcrdma_reply_handler()
801 switch (headerp->rm_type) { in rpcrdma_reply_handler()
806 if (headerp->rm_body.rm_chunks[0] != xdr_zero || in rpcrdma_reply_handler()
807 (headerp->rm_body.rm_chunks[1] == xdr_zero && in rpcrdma_reply_handler()
808 headerp->rm_body.rm_chunks[2] != xdr_zero) || in rpcrdma_reply_handler()
809 (headerp->rm_body.rm_chunks[1] != xdr_zero && in rpcrdma_reply_handler()
812 if (headerp->rm_body.rm_chunks[1] != xdr_zero) { in rpcrdma_reply_handler()
815 iptr = &headerp->rm_body.rm_chunks[2]; in rpcrdma_reply_handler()
822 ((unsigned char *)iptr - (unsigned char *)headerp); in rpcrdma_reply_handler()
833 iptr = (__be32 *)((unsigned char *)headerp + in rpcrdma_reply_handler()
844 if (headerp->rm_body.rm_chunks[0] != xdr_zero || in rpcrdma_reply_handler()
845 headerp->rm_body.rm_chunks[1] != xdr_zero || in rpcrdma_reply_handler()
846 headerp->rm_body.rm_chunks[2] != xdr_one || in rpcrdma_reply_handler()
849 iptr = (__be32 *)((unsigned char *)headerp + in rpcrdma_reply_handler()
864 __func__, be32_to_cpu(headerp->rm_type), in rpcrdma_reply_handler()
865 headerp->rm_body.rm_chunks[0], in rpcrdma_reply_handler()
866 headerp->rm_body.rm_chunks[1], in rpcrdma_reply_handler()
867 headerp->rm_body.rm_chunks[2], in rpcrdma_reply_handler()
874 credits = be32_to_cpu(headerp->rm_credit); in rpcrdma_reply_handler()