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()
451 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_poll_one()
584 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in poll_soft_wc()
607 int mlx5_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) in mlx5_ib_poll_cq() argument
609 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_poll_cq()
611 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in mlx5_ib_poll_cq()
644 int mlx5_ib_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags) in mlx5_ib_arm_cq() argument
646 struct mlx5_core_dev *mdev = to_mdev(ibcq->device)->mdev; in mlx5_ib_arm_cq()
647 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_arm_cq()
663 uar_page, to_mcq(ibcq)->mcq.cons_index); in mlx5_ib_arm_cq()
941 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); in notify_soft_wc_handler()
944 int mlx5_ib_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, in mlx5_ib_create_cq() argument
947 struct ib_device *ibdev = ibcq->device; in mlx5_ib_create_cq()
951 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_create_cq()
972 cq->ibcq.cqe = entries - 1; in mlx5_ib_create_cq()
1089 if (prod_index == cq->mcq.cons_index + cq->ibcq.cqe) in __mlx5_ib_cq_clean()
1096 cqe = get_cqe(cq, prod_index & cq->ibcq.cqe); in __mlx5_ib_cq_clean()
1103 dest = get_cqe(cq, (prod_index + nfreed) & cq->ibcq.cqe); in __mlx5_ib_cq_clean()
1209 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); in copy_resize_cqes()
1262 int mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) in mlx5_ib_resize_cq() argument
1264 struct mlx5_ib_dev *dev = to_mdev(ibcq->device); in mlx5_ib_resize_cq()
1265 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_resize_cq()
1294 if (entries == ibcq->cqe + 1) in mlx5_ib_resize_cq()
1368 cq->ibcq.cqe = entries - 1; in mlx5_ib_resize_cq()
1387 cq->ibcq.cqe = entries - 1; in mlx5_ib_resize_cq()
1411 int mlx5_ib_get_cqe_size(struct ib_cq *ibcq) in mlx5_ib_get_cqe_size() argument
1415 if (!ibcq) in mlx5_ib_get_cqe_size()
1418 cq = to_mcq(ibcq); in mlx5_ib_get_cqe_size()
1423 int mlx5_ib_generate_wc(struct ib_cq *ibcq, struct ib_wc *wc) in mlx5_ib_generate_wc() argument
1426 struct mlx5_ib_cq *cq = to_mcq(ibcq); in mlx5_ib_generate_wc()