Lines Matching refs:mcq

90 	return get_sw_cqe(cq, cq->mcq.cons_index);  in next_cqe_sw()
95 struct mlx4_ib_cq *mcq = to_mcq(cq); in mlx4_ib_modify_cq() local
98 return mlx4_cq_modify(dev->dev, &mcq->mcq, cq_count, cq_period); in mlx4_ib_modify_cq()
223 cq->mcq.usage = MLX4_RES_USAGE_USER_VERBS; in mlx4_ib_create_cq()
229 cq->mcq.set_ci_db = cq->db.db; in mlx4_ib_create_cq()
230 cq->mcq.arm_db = cq->db.db + 1; in mlx4_ib_create_cq()
231 *cq->mcq.set_ci_db = 0; in mlx4_ib_create_cq()
232 *cq->mcq.arm_db = 0; in mlx4_ib_create_cq()
241 cq->mcq.usage = MLX4_RES_USAGE_DRIVER; in mlx4_ib_create_cq()
248 &cq->mcq, vector, 0, in mlx4_ib_create_cq()
256 cq->mcq.tasklet_ctx.comp = mlx4_ib_cq_comp; in mlx4_ib_create_cq()
258 cq->mcq.comp = mlx4_ib_cq_comp; in mlx4_ib_create_cq()
259 cq->mcq.event = mlx4_ib_cq_event; in mlx4_ib_create_cq()
262 if (ib_copy_to_udata(udata, &cq->mcq.cqn, sizeof (__u32))) { in mlx4_ib_create_cq()
270 mlx4_cq_free(dev->dev, &cq->mcq); in mlx4_ib_create_cq()
347 i = cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes()
351 return i - cq->mcq.cons_index; in mlx4_ib_get_outstanding_cqes()
361 i = cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes()
376 ++cq->mcq.cons_index; in mlx4_ib_cq_resize_copy_cqes()
423 err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt); in mlx4_ib_resize_cq()
480 struct mlx4_ib_cq *mcq = to_mcq(cq); in mlx4_ib_destroy_cq() local
482 mlx4_cq_free(dev->dev, &mcq->mcq); in mlx4_ib_destroy_cq()
483 mlx4_mtt_cleanup(dev->dev, &mcq->buf.mtt); in mlx4_ib_destroy_cq()
491 &mcq->db); in mlx4_ib_destroy_cq()
493 mlx4_ib_free_cq_buf(dev, &mcq->buf, cq->cqe); in mlx4_ib_destroy_cq()
494 mlx4_db_free(dev->dev, &mcq->db); in mlx4_ib_destroy_cq()
496 ib_umem_release(mcq->umem); in mlx4_ib_destroy_cq()
680 ++cq->mcq.cons_index; in mlx4_ib_poll_one()
896 mlx4_cq_set_ci(&cq->mcq); in mlx4_ib_poll_cq()
906 mlx4_cq_arm(&to_mcq(ibcq)->mcq, in mlx4_ib_arm_cq()
930 for (prod_index = cq->mcq.cons_index; get_sw_cqe(cq, prod_index); ++prod_index) in __mlx4_ib_cq_clean()
931 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx4_ib_cq_clean()
938 while ((int) --prod_index - (int) cq->mcq.cons_index >= 0) { in __mlx4_ib_cq_clean()
958 cq->mcq.cons_index += nfreed; in __mlx4_ib_cq_clean()
964 mlx4_cq_set_ci(&cq->mcq); in __mlx4_ib_cq_clean()