Lines Matching refs:mcq

89 	return get_sw_cqe(cq, cq->mcq.cons_index);  in next_cqe_sw()
94 struct mlx4_ib_cq *mcq = to_mcq(cq); in mlx4_ib_modify_cq() local
97 return mlx4_cq_modify(dev->dev, &mcq->mcq, cq_count, cq_period); in mlx4_ib_modify_cq()
218 cq->mcq.set_ci_db = cq->db.db; in mlx4_ib_create_cq()
219 cq->mcq.arm_db = cq->db.db + 1; in mlx4_ib_create_cq()
220 *cq->mcq.set_ci_db = 0; in mlx4_ib_create_cq()
221 *cq->mcq.arm_db = 0; in mlx4_ib_create_cq()
234 cq->db.dma, &cq->mcq, vector, 0, 0); in mlx4_ib_create_cq()
239 cq->mcq.tasklet_ctx.comp = mlx4_ib_cq_comp; in mlx4_ib_create_cq()
241 cq->mcq.comp = mlx4_ib_cq_comp; in mlx4_ib_create_cq()
242 cq->mcq.event = mlx4_ib_cq_event; in mlx4_ib_create_cq()
245 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof (__u32))) { in mlx4_ib_create_cq()
331 i = cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes()
335 return i - cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes()
345 i = cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes()
360 ++cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes()
407 err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt); in mlx4_ib_resize_cq()
467 struct mlx4_ib_cq *mcq = to_mcq(cq); in mlx4_ib_destroy_cq() local
469 mlx4_cq_free(dev->dev, &mcq->mcq); in mlx4_ib_destroy_cq()
470 mlx4_mtt_cleanup(dev->dev, &mcq->buf.mtt); in mlx4_ib_destroy_cq()
473 mlx4_ib_db_unmap_user(to_mucontext(cq->uobject->context), &mcq->db); in mlx4_ib_destroy_cq()
474 ib_umem_release(mcq->umem); in mlx4_ib_destroy_cq()
476 mlx4_ib_free_cq_buf(dev, &mcq->buf, cq->cqe); in mlx4_ib_destroy_cq()
477 mlx4_db_free(dev->dev, &mcq->db); in mlx4_ib_destroy_cq()
480 kfree(mcq); in mlx4_ib_destroy_cq()
671 ++cq->mcq.cons_index; in mlx4_ib_poll_one()
716 cq->mcq.cqn, be32_to_cpu(cqe->vlan_my_qpn) & MLX4_CQE_QPN_MASK); in mlx4_ib_poll_one()
734 cq->mcq.cqn, srq_num); in mlx4_ib_poll_one()
903 mlx4_cq_set_ci(&cq->mcq); in mlx4_ib_poll_cq()
916 mlx4_cq_arm(&to_mcq(ibcq)->mcq, in mlx4_ib_arm_cq()
940 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); ++prod_index) in __mlx4_ib_cq_clean()
941 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx4_ib_cq_clean()
948 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) { in __mlx4_ib_cq_clean()
968 cq->mcq.cons_index += nfreed; in __mlx4_ib_cq_clean()
974 mlx4_cq_set_ci(&cq->mcq); in __mlx4_ib_cq_clean()