Lines Matching refs:cqe

58     hermon_hw_cqe_t *cqe, ibt_wc_t *wc);
60 hermon_hw_cqe_t *cqe, ibt_wc_t *wc);
749 * in the cq_hdl, and setting up for the next cqe polling
870 hermon_hw_cqe_t *cqe;
899 cqe = &cq->cq_buf[cons_indx & wrap_around_mask];
912 while (HERMON_CQE_OWNER_IS_SW(cq, cqe, cons_indx, shift, mask)) {
915 opcode = HERMON_CQE_OPCODE_GET(cq, cqe);
926 cqe = &cq->cq_buf[cons_indx & wrap_around_mask];
936 hermon_cq_cqe_consume(state, cq, cqe, &wc_p[polled_cnt++]);
942 cqe = &cq->cq_buf[cons_indx & wrap_around_mask];
1292 hermon_hw_cqe_t *cqe, ibt_wc_t *wc)
1304 opcode = HERMON_CQE_OPCODE_GET(cq, cqe);
1307 hermon_cq_errcqe_consume(state, cq, cqe, wc);
1315 wc->wc_id = hermon_wrid_get_entry(cq, cqe);
1324 if (HERMON_CQE_SENDRECV_GET(cq, cqe) != HERMON_COMPLETION_RECV) {
1373 hermon_fcoib_is_fexch_qpn(state, HERMON_CQE_QPNUM_GET(cq, cqe))) {
1375 if (HERMON_CQE_FEXCH_DIFE(cq, cqe))
1377 wc->wc_bytes_xfer = HERMON_CQE_BYTECNT_GET(cq, cqe);
1378 wc->wc_fexch_seq_cnt = HERMON_CQE_FEXCH_SEQ_CNT(cq, cqe);
1379 wc->wc_fexch_tx_bytes_xfer = HERMON_CQE_FEXCH_TX_BYTES(cq, cqe);
1380 wc->wc_fexch_rx_bytes_xfer = HERMON_CQE_FEXCH_RX_BYTES(cq, cqe);
1381 wc->wc_fexch_seq_id = HERMON_CQE_FEXCH_SEQ_ID(cq, cqe);
1382 wc->wc_detail = HERMON_CQE_FEXCH_DETAIL(cq, cqe) &
1384 wc->wc_rkey = HERMON_CQE_IMM_ETH_PKEY_CRED_GET(cq, cqe);
1398 wc->wc_sl = HERMON_CQE_SL_GET(cq, cqe);
1399 wc->wc_qpn = HERMON_CQE_DQPN_GET(cq, cqe);
1400 wc->wc_slid = HERMON_CQE_DLID_GET(cq, cqe);
1402 HERMON_CQE_IMM_ETH_PKEY_CRED_GET(cq, cqe);
1410 wc->wc_path_bits = HERMON_CQE_PATHBITS_GET(cq, cqe);
1411 wc->wc_bytes_xfer = HERMON_CQE_BYTECNT_GET(cq, cqe);
1417 if (HERMON_CQE_GRH_GET(cq, cqe) != 0) {
1431 qpnum = HERMON_CQE_QPNUM_GET(cq, cqe);
1440 if (HERMON_CQE_IS_IPOK(cq, cqe)) {
1441 wc->wc_cksum = HERMON_CQE_CKSUM(cq, cqe);
1444 HERMON_CQE_IPOIB_STATUS(cq, cqe);
1451 wc->wc_rkey = wc->wc_immed_data; /* same field in cqe */
1477 hermon_hw_cqe_t *cqe, ibt_wc_t *wc)
1487 wc->wc_id = hermon_wrid_get_entry(cq, cqe);
1494 imm_eth_pkey_cred = HERMON_CQE_ERROR_SYNDROME_GET(cq, cqe);
1497 IBTF_DPRINTF_L2("CQE ERR", "cqe %p QPN %x indx %x status 0x%x "
1498 "vendor syndrome %x", cqe, HERMON_CQE_QPNUM_GET(cq, cqe),
1499 HERMON_CQE_WQECNTR_GET(cq, cqe), status,
1500 HERMON_CQE_ERROR_VENDOR_SYNDROME_GET(cq, cqe));
1515 IBTF_DPRINTF_L2("ERRCQE", "is at %p", cqe);
1599 * we're here because we found the special cqe opcode, so we have
1650 hermon_hw_cqe_t *cqe, *next_cqe;
1679 cqe = &cq->cq_buf[cons_indx & wrap_around_mask];
1690 while (HERMON_CQE_OWNER_IS_SW(cq, cqe, tail_cons_indx, shift, mask)) {
1698 cqe = &cq->cq_buf[tail_cons_indx & wrap_around_mask];
1709 cqe = &cq->cq_buf[check_indx & wrap_around_mask];
1716 if (qpnum == HERMON_CQE_QPNUM_GET(cq, cqe)) {
1717 if (srq && (HERMON_CQE_SENDRECV_GET(cq, cqe) ==
1723 indx = HERMON_CQE_WQEADDRSZ_GET(cq, cqe) &
1734 bcopy(cqe, next_cqe, sizeof (hermon_hw_cqe_t));