Lines Matching refs:ibcq
42 struct ib_cq *ibcq = &to_mibcq(cq)->ibcq; in mlx5_ib_cq_comp() local
44 ibcq->comp_handler(ibcq, ibcq->cq_context); in mlx5_ib_cq_comp()
50 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_cq_event()
51 struct ib_cq *ibcq = &cq->ibcq; in mlx5_ib_cq_event() local
60 if (ibcq->event_handler) { in mlx5_ib_cq_event()
63 event.element.cq = ibcq; in mlx5_ib_cq_event()
64 ibcq->event_handler(&event, ibcq->cq_context); in mlx5_ib_cq_event()
85 void *cqe = get_cqe(cq, n & cq->ibcq.cqe); in get_sw_cqe()
91 !((cqe64->op_own & MLX5_CQE_OWNER_MASK) ^ !!(n & (cq->ibcq.cqe + 1)))) { in get_sw_cqe()
414 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_poll_one()
554 int mlx5_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in mlx5_ib_poll_cq() argument
556 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_poll_cq()
581 int mlx5_ib_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags) in mlx5_ib_arm_cq() argument
583 struct mlx5_core_dev *mdev = to_mdev(ibcq->device)->mdev; in mlx5_ib_arm_cq()
586 mlx5_cq_arm(&to_mcq(ibcq)->mcq, in mlx5_ib_arm_cq()
591 to_mcq(ibcq)->mcq.cons_index); in mlx5_ib_arm_cq()
777 cq->ibcq.cqe = entries - 1; in mlx5_ib_create_cq()
824 return &cq->ibcq; in mlx5_ib_create_cq()
886 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx5_ib_cq_clean()
893 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe); in __mlx5_ib_cq_clean()
900 dest = get_cqe(cq, (prod_index + nfreed) & cq->ibcq.cqe); in __mlx5_ib_cq_clean()
1026 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in copy_resize_cqes()
1080 int mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mlx5_ib_resize_cq() argument
1082 struct mlx5_ib_dev *dev = to_mdev(ibcq->device); in mlx5_ib_resize_cq()
1083 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_resize_cq()
1104 if (entries == ibcq->cqe + 1) in mlx5_ib_resize_cq()
1151 cq->ibcq.cqe = entries - 1; in mlx5_ib_resize_cq()
1170 cq->ibcq.cqe = entries - 1; in mlx5_ib_resize_cq()
1193 int mlx5_ib_get_cqe_size(struct mlx5_ib_dev *dev, struct ib_cq *ibcq) in mlx5_ib_get_cqe_size() argument
1197 if (!ibcq) in mlx5_ib_get_cqe_size()
1200 cq = to_mcq(ibcq); in mlx5_ib_get_cqe_size()