Lines Matching refs:cq
49 void (*comp)(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe);
57 void (*comp)(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe);
141 static inline void mlx5_cq_set_ci(struct mlx5_core_cq *cq)
143 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff);
151 static inline void mlx5_cq_arm(struct mlx5_core_cq *cq, u32 cmd,
159 sn = cq->arm_sn & 3;
162 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci);
170 doorbell[1] = cpu_to_be32(cq->cqn);
175 static inline void mlx5_cq_hold(struct mlx5_core_cq *cq)
177 refcount_inc(&cq->refcount);
180 static inline void mlx5_cq_put(struct mlx5_core_cq *cq)
182 if (refcount_dec_and_test(&cq->refcount))
183 complete(&cq->free);
186 int mlx5_create_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
188 int mlx5_core_create_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
190 int mlx5_core_destroy_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq);
191 int mlx5_core_query_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
193 int mlx5_core_modify_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
196 struct mlx5_core_cq *cq, u16 cq_period,
204 int mlx5_debug_cq_add(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq);
205 void mlx5_debug_cq_remove(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq);