Lines Matching refs:cq
50 void (*comp)(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe);
58 void (*comp)(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe);
142 static inline void mlx5_cq_set_ci(struct mlx5_core_cq *cq) in mlx5_cq_set_ci() argument
144 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff); in mlx5_cq_set_ci()
152 static inline void mlx5_cq_arm(struct mlx5_core_cq *cq, u32 cmd, in mlx5_cq_arm() argument
160 sn = cq->arm_sn & 3; in mlx5_cq_arm()
163 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); in mlx5_cq_arm()
171 doorbell[1] = cpu_to_be32(cq->cqn); in mlx5_cq_arm()
176 static inline void mlx5_cq_hold(struct mlx5_core_cq *cq) in mlx5_cq_hold() argument
178 refcount_inc(&cq->refcount); in mlx5_cq_hold()
181 static inline void mlx5_cq_put(struct mlx5_core_cq *cq) in mlx5_cq_put() argument
183 if (refcount_dec_and_test(&cq->refcount)) in mlx5_cq_put()
184 complete(&cq->free); in mlx5_cq_put()
187 int mlx5_core_create_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
189 int mlx5_core_destroy_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq);
190 int mlx5_core_query_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
192 int mlx5_core_modify_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq,
195 struct mlx5_core_cq *cq, u16 cq_period,
203 int mlx5_debug_cq_add(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq);
204 void mlx5_debug_cq_remove(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq);