Lines Matching refs:ibcq

41 	struct ib_cq *ibcq = &to_mibcq(cq)->ibcq;  in mlx5_ib_cq_comp()  local
43 ibcq->comp_handler(ibcq, ibcq->cq_context); in mlx5_ib_cq_comp()
49 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_cq_event()
50 struct ib_cq *ibcq = &cq->ibcq; in mlx5_ib_cq_event() local
59 if (ibcq->event_handler) { in mlx5_ib_cq_event()
62 event.element.cq = ibcq; in mlx5_ib_cq_event()
63 ibcq->event_handler(&event, ibcq->cq_context); in mlx5_ib_cq_event()
84 void *cqe = get_cqe(cq, n & cq->ibcq.cqe); in get_sw_cqe()
90 !((cqe64->op_own & MLX5_CQE_OWNER_MASK) ^ !!(n & (cq->ibcq.cqe + 1)))) { in get_sw_cqe()
406 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_poll_one()
546 int mlx5_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in mlx5_ib_poll_cq() argument
548 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_poll_cq()
573 int mlx5_ib_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags) in mlx5_ib_arm_cq() argument
575 struct mlx5_core_dev *mdev = to_mdev(ibcq->device)->mdev; in mlx5_ib_arm_cq()
578 mlx5_cq_arm(&to_mcq(ibcq)->mcq, in mlx5_ib_arm_cq()
583 to_mcq(ibcq)->mcq.cons_index); in mlx5_ib_arm_cq()
764 cq->ibcq.cqe = entries - 1; in mlx5_ib_create_cq()
811 return &cq->ibcq; in mlx5_ib_create_cq()
873 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx5_ib_cq_clean()
880 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe); in __mlx5_ib_cq_clean()
887 dest = get_cqe(cq, (prod_index + nfreed) & cq->ibcq.cqe); in __mlx5_ib_cq_clean()
1013 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in copy_resize_cqes()
1067 int mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mlx5_ib_resize_cq() argument
1069 struct mlx5_ib_dev *dev = to_mdev(ibcq->device); in mlx5_ib_resize_cq()
1070 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_resize_cq()
1091 if (entries == ibcq->cqe + 1) in mlx5_ib_resize_cq()
1138 cq->ibcq.cqe = entries - 1; in mlx5_ib_resize_cq()
1157 cq->ibcq.cqe = entries - 1; in mlx5_ib_resize_cq()
1180 int mlx5_ib_get_cqe_size(struct mlx5_ib_dev *dev, struct ib_cq *ibcq) in mlx5_ib_get_cqe_size() argument
1184 if (!ibcq) in mlx5_ib_get_cqe_size()
1187 cq = to_mcq(ibcq); in mlx5_ib_get_cqe_size()