Lines Matching refs:ibcq
41 struct ib_cq *ibcq = &to_mibcq(cq)->ibcq;
42 ibcq->comp_handler(ibcq, ibcq->cq_context);
48 struct ib_cq *ibcq;
56 ibcq = &to_mibcq(cq)->ibcq;
57 if (ibcq->event_handler) {
58 event.device = ibcq->device;
60 event.element.cq = ibcq;
61 ibcq->event_handler(&event, ibcq->cq_context);
83 struct mlx4_cqe *cqe = get_cqe(cq, n & cq->ibcq.cqe);
86 !!(n & (cq->ibcq.cqe + 1))) ? NULL : cqe;
112 cq->ibcq.cqe = entries - 1;
187 return &cq->ibcq;
341 mqp = __mlx4_qp_lookup(to_mdev(cq->ibcq.device)->dev,
439 int mlx4_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
441 struct mlx4_ib_cq *cq = to_mcq(ibcq);
466 int mlx4_ib_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags)
468 mlx4_cq_arm(&to_mcq(ibcq)->mcq,
471 to_mdev(ibcq->device)->uar_map,
472 MLX4_GET_DOORBELL_LOCK(&to_mdev(ibcq->device)->uar_lock));
492 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe)
500 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe);
506 dest = get_cqe(cq, (prod_index + nfreed) & cq->ibcq.cqe);