Lines Matching refs:mcq
54 struct mlx5_core_cq mcq; member
356 MLX5_SET(qpc, qpc, cqn_rcv, mvq->cq.mcq.cqn); in qp_prepare()
452 return get_sw_cqe(cq, cq->mcq.cons_index); in next_cqe_sw()
463 vcq->mcq.cons_index++; in mlx5_vdpa_poll_one()
469 mlx5_cq_set_ci(&mvq->cq.mcq); in mlx5_vdpa_handle_completions()
480 static void mlx5_vdpa_cq_comp(struct mlx5_core_cq *mcq, struct mlx5_eqe *eqe) in mlx5_vdpa_cq_comp() argument
482 struct mlx5_vdpa_virtqueue *mvq = container_of(mcq, struct mlx5_vdpa_virtqueue, cq.mcq); in mlx5_vdpa_cq_comp()
504 mlx5_cq_arm(&mvq->cq.mcq, MLX5_CQ_DB_REQ_NOT, uar_page, mvq->cq.mcq.cons_index); in mlx5_vdpa_cq_comp()
525 vcq->mcq.set_ci_db = vcq->db.db; in cq_create()
526 vcq->mcq.arm_db = vcq->db.db + 1; in cq_create()
527 vcq->mcq.cqe_sz = 64; in cq_create()
563 err = mlx5_core_create_cq(mdev, &vcq->mcq, in, inlen, out, sizeof(out)); in cq_create()
567 vcq->mcq.comp = mlx5_vdpa_cq_comp; in cq_create()
569 vcq->mcq.set_ci_db = vcq->db.db; in cq_create()
570 vcq->mcq.arm_db = vcq->db.db + 1; in cq_create()
571 mlx5_cq_arm(&mvq->cq.mcq, MLX5_CQ_DB_REQ_NOT, uar_page, mvq->cq.mcq.cons_index); in cq_create()
590 if (mlx5_core_destroy_cq(mdev, &vcq->mcq)) { in cq_destroy()
591 mlx5_vdpa_warn(&ndev->mvdev, "destroy CQ 0x%x\n", vcq->mcq.cqn); in cq_destroy()