Lines Matching refs:mcq
87 return get_sw_cqe(cq, cq->mcq.cons_index);
92 struct mlx4_ib_cq *mcq = to_mcq(cq);
95 return mlx4_cq_modify(dev->dev, &mcq->mcq, cq_count, cq_period);
213 cq->mcq.set_ci_db = cq->db.db;
214 cq->mcq.arm_db = cq->db.db + 1;
215 *cq->mcq.set_ci_db = 0;
216 *cq->mcq.arm_db = 0;
226 cq->db.dma, &cq->mcq, vector, 0);
230 cq->mcq.comp = mlx4_ib_cq_comp;
231 cq->mcq.event = mlx4_ib_cq_event;
234 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof (__u32))) {
320 i = cq->mcq.cons_index;
324 return i - cq->mcq.cons_index;
332 i = cq->mcq.cons_index;
342 ++cq->mcq.cons_index;
385 err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt);
437 struct mlx4_ib_cq *mcq = to_mcq(cq);
439 mlx4_cq_free(dev->dev, &mcq->mcq);
440 mlx4_mtt_cleanup(dev->dev, &mcq->buf.mtt);
443 mlx4_ib_db_unmap_user(to_mucontext(cq->uobject->context), &mcq->db);
444 ib_umem_release(mcq->umem);
446 mlx4_ib_free_cq_buf(dev, &mcq->buf, cq->cqe);
447 mlx4_db_free(dev->dev, &mcq->db);
450 kfree(mcq);
558 ++cq->mcq.cons_index;
603 cq->mcq.cqn, be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK);
740 mlx4_cq_set_ci(&cq->mcq);
752 mlx4_cq_arm(&to_mcq(ibcq)->mcq,
775 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); ++prod_index)
776 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe)
783 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) {
799 cq->mcq.cons_index += nfreed;
805 mlx4_cq_set_ci(&cq->mcq);