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