Lines Matching refs:rqe
2197 static void ocrdma_build_rqe(struct ocrdma_hdr_wqe *rqe, in ocrdma_build_rqe() argument
2203 wqe_size = (wr->num_sge * sizeof(*sge)) + sizeof(*rqe); in ocrdma_build_rqe()
2205 wqe_size = sizeof(*sge) + sizeof(*rqe); in ocrdma_build_rqe()
2207 rqe->cw = ((wqe_size / OCRDMA_WQE_STRIDE) << in ocrdma_build_rqe()
2209 rqe->cw |= (OCRDMA_FLAG_SIG << OCRDMA_WQE_FLAGS_SHIFT); in ocrdma_build_rqe()
2210 rqe->cw |= (OCRDMA_TYPE_LKEY << OCRDMA_WQE_TYPE_SHIFT); in ocrdma_build_rqe()
2211 rqe->total_len = 0; in ocrdma_build_rqe()
2212 rqe->rsvd_tag = tag; in ocrdma_build_rqe()
2213 sge = (struct ocrdma_sge *)(rqe + 1); in ocrdma_build_rqe()
2214 ocrdma_build_sges(rqe, sge, wr->num_sge, wr->sg_list); in ocrdma_build_rqe()
2215 ocrdma_cpu_to_le32(rqe, wqe_size); in ocrdma_build_rqe()
2224 struct ocrdma_hdr_wqe *rqe; in ocrdma_post_recv() local
2239 rqe = ocrdma_hwq_head(&qp->rq); in ocrdma_post_recv()
2240 ocrdma_build_rqe(rqe, wr, 0); in ocrdma_post_recv()
2294 struct ocrdma_hdr_wqe *rqe; in ocrdma_post_srq_recv() local
2308 rqe = ocrdma_hwq_head(&srq->rq); in ocrdma_post_srq_recv()
2309 ocrdma_build_rqe(rqe, wr, tag); in ocrdma_post_srq_recv()