Lines Matching refs:cq
1106 static void mlx4_ib_tunnel_comp_handler(struct ib_cq *cq, void *arg) in mlx4_ib_tunnel_comp_handler() argument
1109 struct mlx4_ib_demux_pv_ctx *ctx = cq->cq_context; in mlx4_ib_tunnel_comp_handler()
1529 ib_req_notify_cq(ctx->cq, IB_CQ_NEXT_COMP); in mlx4_ib_tunnel_comp_worker()
1531 while (ib_poll_cq(ctx->cq, 1, &wc) == 1) { in mlx4_ib_tunnel_comp_worker()
1601 qp_init_attr.init_attr.send_cq = ctx->cq; in create_pv_sqp()
1602 qp_init_attr.init_attr.recv_cq = ctx->cq; in create_pv_sqp()
1695 ib_req_notify_cq(ctx->cq, IB_CQ_NEXT_COMP); in mlx4_ib_sqp_comp_worker()
1697 while (mlx4_ib_poll_cq(ctx->cq, 1, &wc) == 1) { in mlx4_ib_sqp_comp_worker()
1804 ctx->cq = ib_create_cq(ctx->ib_dev, mlx4_ib_tunnel_comp_handler, in create_pv_resources()
1806 if (IS_ERR(ctx->cq)) { in create_pv_resources()
1807 ret = PTR_ERR(ctx->cq); in create_pv_resources()
1849 ret = ib_req_notify_cq(ctx->cq, IB_CQ_NEXT_COMP); in create_pv_resources()
1877 ib_destroy_cq(ctx->cq); in create_pv_resources()
1878 ctx->cq = NULL; in create_pv_resources()
1912 ib_destroy_cq(ctx->cq); in destroy_pv_resources()
1913 ctx->cq = NULL; in destroy_pv_resources()
2046 ib_destroy_cq(sqp_ctx->cq); in mlx4_ib_free_sqp_ctx()
2047 sqp_ctx->cq = NULL; in mlx4_ib_free_sqp_ctx()