• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/infiniband/hw/cxgb3/

Lines Matching refs:cqe

73 	struct t3_cqe *cqe;
103 * Now rptr is the index for the (last) cqe that was
107 cqe = cq->queue + Q_PTR2IDX(rptr, cq->size_log2);
108 while (!CQ_VLD_ENTRY(rptr, cq->size_log2, cqe)) {
345 struct t3_cqe cqe;
349 memset(&cqe, 0, sizeof(cqe));
350 cqe.header = cpu_to_be32(V_CQE_STATUS(TPT_ERR_SWFLUSH) |
357 *(cq->sw_queue + Q_PTR2IDX(cq->sw_wptr, cq->size_log2)) = cqe;
378 struct t3_cqe cqe;
382 memset(&cqe, 0, sizeof(cqe));
383 cqe.header = cpu_to_be32(V_CQE_STATUS(TPT_ERR_SWFLUSH) |
390 cqe.u.scqe.wrid_hi = sqp->sq_wptr;
392 *(cq->sw_queue + Q_PTR2IDX(cq->sw_wptr, cq->size_log2)) = cqe;
415 struct t3_cqe *cqe, *swcqe;
418 cqe = cxio_next_hw_cqe(cq);
419 while (cqe) {
423 *swcqe = *cqe;
427 cqe = cxio_next_hw_cqe(cq);
431 static int cqe_completes_wr(struct t3_cqe *cqe, struct t3_wq *wq)
433 if (CQE_OPCODE(*cqe) == T3_TERMINATE)
436 if ((CQE_OPCODE(*cqe) == T3_RDMA_WRITE) && RQ_TYPE(*cqe))
439 if ((CQE_OPCODE(*cqe) == T3_READ_RESP) && SQ_TYPE(*cqe))
442 if ((CQE_OPCODE(*cqe) == T3_SEND) && RQ_TYPE(*cqe) &&
451 struct t3_cqe *cqe;
457 cqe = cq->sw_queue + (Q_PTR2IDX(ptr, cq->size_log2));
458 if ((SQ_TYPE(*cqe) || (CQE_OPCODE(*cqe) == T3_READ_RESP)) &&
459 (CQE_QPID(*cqe) == wq->qpid))
468 struct t3_cqe *cqe;
475 cqe = cq->sw_queue + (Q_PTR2IDX(ptr, cq->size_log2));
476 if (RQ_TYPE(*cqe) && (CQE_OPCODE(*cqe) != T3_READ_RESP) &&
477 (CQE_QPID(*cqe) == wq->qpid) && cqe_completes_wr(cqe, wq))
864 CQE_QPID(rsp_msg->cqe), CQE_GENBIT(rsp_msg->cqe),
865 CQE_TYPE(rsp_msg->cqe), CQE_STATUS(rsp_msg->cqe),
866 CQE_OPCODE(rsp_msg->cqe), CQE_LEN(rsp_msg->cqe),
867 CQE_WRID_HI(rsp_msg->cqe), CQE_WRID_LOW(rsp_msg->cqe));
874 if (CQE_QPID(rsp_msg->cqe) == T3_CTRL_QP_ID) {
875 rdev_p->ctrl_qp.rptr = CQE_WRID_LOW(rsp_msg->cqe) + 1;
878 } else if (CQE_QPID(rsp_msg->cqe) == 0xfff8)
1042 * Insert this completed cqe into the swcq.
1044 PDBG("%s moving cqe into swcq sq idx %ld cq idx %ld\n",
1047 sqp->cqe.header |= htonl(V_CQE_SWCQE(1));
1049 = sqp->cqe;
1096 * cqe: copy of the polled CQE.
1102 int cxio_poll_cq(struct t3_wq *wq, struct t3_cq *cq, struct t3_cqe *cqe,
1120 * skip cqe's not affiliated with a QP.
1129 * 1) the cqe doesn't contain the sq_wptr from the wr.
1221 sqp->cqe = *hw_cqe;
1228 *cqe = *hw_cqe;
1256 PDBG("%s cq %p cqid 0x%x skip sw cqe sw_rptr 0x%x\n",
1260 PDBG("%s cq %p cqid 0x%x skip hw cqe rptr 0x%x\n",