Lines Matching refs:headerp
244 struct rpcrdma_msg *headerp, enum rpcrdma_chunktype type) in rpcrdma_create_chunks() argument
254 __be32 *iptr = headerp->rm_body.rm_chunks; in rpcrdma_create_chunks()
349 return (unsigned char *)iptr - (unsigned char *)headerp; in rpcrdma_create_chunks()
442 struct rpcrdma_msg *headerp; in rpcrdma_marshal_req() local
456 headerp = rdmab_to_msg(req->rl_rdmabuf); in rpcrdma_marshal_req()
458 headerp->rm_xid = rqst->rq_xid; in rpcrdma_marshal_req()
459 headerp->rm_vers = rpcrdma_version; in rpcrdma_marshal_req()
460 headerp->rm_credit = cpu_to_be32(r_xprt->rx_buf.rb_max_requests); in rpcrdma_marshal_req()
461 headerp->rm_type = rdma_msg; in rpcrdma_marshal_req()
498 headerp->rm_type = htonl(RDMA_NOMSG); in rpcrdma_marshal_req()
523 headerp->rm_body.rm_nochunks.rm_empty[0] = xdr_zero; in rpcrdma_marshal_req()
524 headerp->rm_body.rm_nochunks.rm_empty[1] = xdr_zero; in rpcrdma_marshal_req()
525 headerp->rm_body.rm_nochunks.rm_empty[2] = xdr_zero; in rpcrdma_marshal_req()
532 headerp, rtype); in rpcrdma_marshal_req()
537 headerp, wtype); in rpcrdma_marshal_req()
545 headerp, base, rdmab_lkey(req->rl_rdmabuf)); in rpcrdma_marshal_req()
726 rpcrdma_is_bcall(struct rpcrdma_msg *headerp) in rpcrdma_is_bcall() argument
728 __be32 *p = (__be32 *)headerp; in rpcrdma_is_bcall()
730 if (headerp->rm_type != rdma_msg) in rpcrdma_is_bcall()
732 if (headerp->rm_body.rm_chunks[0] != xdr_zero) in rpcrdma_is_bcall()
734 if (headerp->rm_body.rm_chunks[1] != xdr_zero) in rpcrdma_is_bcall()
736 if (headerp->rm_body.rm_chunks[2] != xdr_zero) in rpcrdma_is_bcall()
740 if (p[7] != headerp->rm_xid) in rpcrdma_is_bcall()
770 struct rpcrdma_msg *headerp; in rpcrdma_reply_handler() local
787 headerp = rdmab_to_msg(rep->rr_rdmabuf); in rpcrdma_reply_handler()
788 if (headerp->rm_vers != rpcrdma_version) in rpcrdma_reply_handler()
791 if (rpcrdma_is_bcall(headerp)) in rpcrdma_reply_handler()
799 rqst = xprt_lookup_rqst(xprt, headerp->rm_xid); in rpcrdma_reply_handler()
810 be32_to_cpu(headerp->rm_xid)); in rpcrdma_reply_handler()
818 switch (headerp->rm_type) { in rpcrdma_reply_handler()
823 if (headerp->rm_body.rm_chunks[0] != xdr_zero || in rpcrdma_reply_handler()
824 (headerp->rm_body.rm_chunks[1] == xdr_zero && in rpcrdma_reply_handler()
825 headerp->rm_body.rm_chunks[2] != xdr_zero) || in rpcrdma_reply_handler()
826 (headerp->rm_body.rm_chunks[1] != xdr_zero && in rpcrdma_reply_handler()
829 if (headerp->rm_body.rm_chunks[1] != xdr_zero) { in rpcrdma_reply_handler()
832 iptr = &headerp->rm_body.rm_chunks[2]; in rpcrdma_reply_handler()
839 ((unsigned char *)iptr - (unsigned char *)headerp); in rpcrdma_reply_handler()
850 iptr = (__be32 *)((unsigned char *)headerp + in rpcrdma_reply_handler()
861 if (headerp->rm_body.rm_chunks[0] != xdr_zero || in rpcrdma_reply_handler()
862 headerp->rm_body.rm_chunks[1] != xdr_zero || in rpcrdma_reply_handler()
863 headerp->rm_body.rm_chunks[2] != xdr_one || in rpcrdma_reply_handler()
866 iptr = (__be32 *)((unsigned char *)headerp + in rpcrdma_reply_handler()
881 __func__, be32_to_cpu(headerp->rm_type), in rpcrdma_reply_handler()
882 headerp->rm_body.rm_chunks[0], in rpcrdma_reply_handler()
883 headerp->rm_body.rm_chunks[1], in rpcrdma_reply_handler()
884 headerp->rm_body.rm_chunks[2], in rpcrdma_reply_handler()
891 credits = be32_to_cpu(headerp->rm_credit); in rpcrdma_reply_handler()
928 __func__, be32_to_cpu(headerp->rm_vers)); in rpcrdma_reply_handler()
934 __func__, be32_to_cpu(headerp->rm_xid), in rpcrdma_reply_handler()
942 __func__, rep, req, be32_to_cpu(headerp->rm_xid)); in rpcrdma_reply_handler()