Lines Matching refs:ibv_cq
138 return cqe_sw(cq, cq->cons_index & cq->ibv_cq.cqe);
155 if (mthca_is_memfree(cq->ibv_cq.context)) {
162 mthca_write64(doorbell, to_mctx(cq->ibv_cq.context), MTHCA_CQ_DOORBELL);
262 if (mthca_is_memfree(cq->ibv_cq.context))
277 if (mthca_is_memfree(cq->ibv_cq.context) ||
330 *cur_qp = mthca_find_qp(to_mctx(cq->ibv_cq.context), ntohl(cqe->my_qpn));
460 int mthca_poll_cq(struct ibv_cq *ibcq, int ne, struct ibv_wc *wc)
486 int mthca_tavor_arm_cq(struct ibv_cq *cq, int solicited)
501 int mthca_arbel_arm_cq(struct ibv_cq *ibvcq, int solicited)
535 void mthca_arbel_cq_event(struct ibv_cq *cq)
563 cqe_sw(cq, prod_index & cq->ibv_cq.cqe);
565 if (prod_index == cq->cons_index + cq->ibv_cq.cqe)
573 cqe = get_cqe(cq, prod_index & cq->ibv_cq.cqe);
580 memcpy(get_cqe(cq, (prod_index + nfreed) & cq->ibv_cq.cqe),
586 set_cqe_hw(get_cqe(cq, (cq->cons_index + i) & cq->ibv_cq.cqe));
610 if (!mthca_is_memfree(cq->ibv_cq.context) && old_cqe < cq->ibv_cq.cqe) {
617 memcpy(buf + (i & cq->ibv_cq.cqe) * MTHCA_CQ_ENTRY_SIZE,