Lines Matching refs:mcq

91 	return get_sw_cqe(cq, cq->mcq.cons_index);  in next_cqe_sw()
96 struct mlx4_ib_cq *mcq = to_mcq(cq); in mlx4_ib_modify_cq() local
99 return mlx4_cq_modify(dev->dev, &mcq->mcq, cq_count, cq_period); in mlx4_ib_modify_cq()
226 cq->mcq.set_ci_db = cq->db.db; in mlx4_ib_create_cq()
227 cq->mcq.arm_db = cq->db.db + 1; in mlx4_ib_create_cq()
228 *cq->mcq.set_ci_db = 0; in mlx4_ib_create_cq()
229 *cq->mcq.arm_db = 0; in mlx4_ib_create_cq()
242 cq->db.dma, &cq->mcq, vector, 0, in mlx4_ib_create_cq()
247 cq->mcq.comp = mlx4_ib_cq_comp; in mlx4_ib_create_cq()
248 cq->mcq.event = mlx4_ib_cq_event; in mlx4_ib_create_cq()
251 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof (__u32))) { in mlx4_ib_create_cq()
259 mlx4_cq_free(dev->dev, &cq->mcq); in mlx4_ib_create_cq()
336 i = cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes()
340 return i - cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes()
350 i = cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes()
365 ++cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes()
412 err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt); in mlx4_ib_resize_cq()
469 struct mlx4_ib_cq *mcq = to_mcq(cq); in mlx4_ib_destroy_cq() local
471 mlx4_cq_free(dev->dev, &mcq->mcq); in mlx4_ib_destroy_cq()
472 mlx4_mtt_cleanup(dev->dev, &mcq->buf.mtt); in mlx4_ib_destroy_cq()
480 &mcq->db); in mlx4_ib_destroy_cq()
482 mlx4_ib_free_cq_buf(dev, &mcq->buf, cq->cqe); in mlx4_ib_destroy_cq()
483 mlx4_db_free(dev->dev, &mcq->db); in mlx4_ib_destroy_cq()
485 ib_umem_release(mcq->umem); in mlx4_ib_destroy_cq()
673 ++cq->mcq.cons_index; in mlx4_ib_poll_one()
887 mlx4_cq_set_ci(&cq->mcq); in mlx4_ib_poll_cq()
904 mlx4_cq_arm(&cq->mcq, in mlx4_ib_arm_cq()
928 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); ++prod_index) in __mlx4_ib_cq_clean()
929 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx4_ib_cq_clean()
936 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) { in __mlx4_ib_cq_clean()
956 cq->mcq.cons_index += nfreed; in __mlx4_ib_cq_clean()
962 mlx4_cq_set_ci(&cq->mcq); in __mlx4_ib_cq_clean()