Lines Matching refs:ibcq

43 	struct ib_cq *ibcq = &to_mibcq(cq)->ibcq;  in mlx5_ib_cq_comp()  local
45 ibcq->comp_handler(ibcq, ibcq->cq_context); in mlx5_ib_cq_comp()
51 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_cq_event()
52 struct ib_cq *ibcq = &cq->ibcq; in mlx5_ib_cq_event() local
61 if (ibcq->event_handler) { in mlx5_ib_cq_event()
64 event.element.cq = ibcq; in mlx5_ib_cq_event()
65 ibcq->event_handler(&event, ibcq->cq_context); in mlx5_ib_cq_event()
81 void *cqe = get_cqe(cq, n & cq->ibcq.cqe); in get_sw_cqe()
87 !((cqe64->op_own & MLX5_CQE_OWNER_MASK) ^ !!(n & (cq->ibcq.cqe + 1)))) { in get_sw_cqe()
445 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_poll_one()
574 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in poll_soft_wc()
597 int mlx5_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in mlx5_ib_poll_cq() argument
599 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_poll_cq()
601 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_poll_cq()
634 int mlx5_ib_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags) in mlx5_ib_arm_cq() argument
636 struct mlx5_core_dev *mdev = to_mdev(ibcq->device)->mdev; in mlx5_ib_arm_cq()
637 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_arm_cq()
653 uar_page, to_mcq(ibcq)->mcq.cons_index); in mlx5_ib_arm_cq()
916 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); in notify_soft_wc_handler()
919 int mlx5_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, in mlx5_ib_create_cq() argument
922 struct ib_device *ibdev = ibcq->device; in mlx5_ib_create_cq()
926 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_create_cq()
947 cq->ibcq.cqe = entries - 1; in mlx5_ib_create_cq()
1064 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx5_ib_cq_clean()
1071 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe); in __mlx5_ib_cq_clean()
1078 dest = get_cqe(cq, (prod_index + nfreed) & cq->ibcq.cqe); in __mlx5_ib_cq_clean()
1188 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in copy_resize_cqes()
1241 int mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mlx5_ib_resize_cq() argument
1243 struct mlx5_ib_dev *dev = to_mdev(ibcq->device); in mlx5_ib_resize_cq()
1244 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_resize_cq()
1272 if (entries == ibcq->cqe + 1) in mlx5_ib_resize_cq()
1333 cq->ibcq.cqe = entries - 1; in mlx5_ib_resize_cq()
1352 cq->ibcq.cqe = entries - 1; in mlx5_ib_resize_cq()
1376 int mlx5_ib_get_cqe_size(struct ib_cq *ibcq) in mlx5_ib_get_cqe_size() argument
1380 if (!ibcq) in mlx5_ib_get_cqe_size()
1383 cq = to_mcq(ibcq); in mlx5_ib_get_cqe_size()
1388 int mlx5_ib_generate_wc(struct ib_cq *ibcq, struct ib_wc *wc) in mlx5_ib_generate_wc() argument
1391 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_generate_wc()