Lines Matching refs:hw_cqe
1102 static void create_read_req_cqe(struct t3_wq *wq, struct t3_cqe *hw_cqe, in create_read_req_cqe() argument
1107 read_cqe->header = htonl(V_CQE_QPID(CQE_QPID(*hw_cqe)) | in create_read_req_cqe()
1108 V_CQE_SWCQE(SW_CQE(*hw_cqe)) | in create_read_req_cqe()
1151 struct t3_cqe *hw_cqe, read_cqe; in cxio_poll_cq() local
1155 hw_cqe = cxio_next_cqe(cq); in cxio_poll_cq()
1159 __func__, CQE_OOO(*hw_cqe), CQE_QPID(*hw_cqe), in cxio_poll_cq()
1160 CQE_GENBIT(*hw_cqe), CQE_TYPE(*hw_cqe), CQE_STATUS(*hw_cqe), in cxio_poll_cq()
1161 CQE_OPCODE(*hw_cqe), CQE_LEN(*hw_cqe), CQE_WRID_HI(*hw_cqe), in cxio_poll_cq()
1162 CQE_WRID_LOW(*hw_cqe)); in cxio_poll_cq()
1179 if (RQ_TYPE(*hw_cqe) && (CQE_OPCODE(*hw_cqe) == T3_READ_RESP)) { in cxio_poll_cq()
1187 if (CQE_STATUS(*hw_cqe)) in cxio_poll_cq()
1197 create_read_req_cqe(wq, hw_cqe, &read_cqe); in cxio_poll_cq()
1198 hw_cqe = &read_cqe; in cxio_poll_cq()
1205 if (CQE_OPCODE(*hw_cqe) == T3_TERMINATE) { in cxio_poll_cq()
1211 if (CQE_STATUS(*hw_cqe) || wq->error) { in cxio_poll_cq()
1220 if ((CQE_OPCODE(*hw_cqe) == T3_RDMA_WRITE) in cxio_poll_cq()
1221 && RQ_TYPE(*hw_cqe)) { in cxio_poll_cq()
1226 if ((CQE_OPCODE(*hw_cqe) == T3_READ_RESP) && SQ_TYPE(*hw_cqe)) { in cxio_poll_cq()
1232 if (CQE_SEND_OPCODE(*hw_cqe) && RQ_TYPE(*hw_cqe) && in cxio_poll_cq()
1237 BUG_ON((*cqe_flushed == 0) && !SW_CQE(*hw_cqe)); in cxio_poll_cq()
1244 if (RQ_TYPE(*hw_cqe)) { in cxio_poll_cq()
1259 if (unlikely((CQE_WRID_MSN(*hw_cqe) != (wq->rq_rptr + 1)))) { in cxio_poll_cq()
1261 hw_cqe->header |= htonl(V_CQE_STATUS(TPT_ERR_MSN)); in cxio_poll_cq()
1278 if (!SW_CQE(*hw_cqe) && (CQE_WRID_SQ_WPTR(*hw_cqe) != wq->sq_rptr)) { in cxio_poll_cq()
1283 Q_PTR2IDX(CQE_WRID_SQ_WPTR(*hw_cqe), wq->sq_size_log2)); in cxio_poll_cq()
1285 Q_PTR2IDX(CQE_WRID_SQ_WPTR(*hw_cqe), wq->sq_size_log2); in cxio_poll_cq()
1286 sqp->cqe = *hw_cqe; in cxio_poll_cq()
1293 *cqe = *hw_cqe; in cxio_poll_cq()
1299 if (SQ_TYPE(*hw_cqe)) { in cxio_poll_cq()
1300 wq->sq_rptr = CQE_WRID_SQ_WPTR(*hw_cqe); in cxio_poll_cq()
1324 if (SW_CQE(*hw_cqe)) { in cxio_poll_cq()