Lines Matching refs:cq
1124 static void mlx4_ib_tunnel_comp_handler(struct ib_cq *cq, void *arg) in mlx4_ib_tunnel_comp_handler() argument
1127 struct mlx4_ib_demux_pv_ctx *ctx = cq->cq_context; in mlx4_ib_tunnel_comp_handler()
1555 ib_req_notify_cq(ctx->cq, IB_CQ_NEXT_COMP); in mlx4_ib_tunnel_comp_worker()
1557 while (ib_poll_cq(ctx->cq, 1, &wc) == 1) { in mlx4_ib_tunnel_comp_worker()
1627 qp_init_attr.init_attr.send_cq = ctx->cq; in create_pv_sqp()
1628 qp_init_attr.init_attr.recv_cq = ctx->cq; in create_pv_sqp()
1721 ib_req_notify_cq(ctx->cq, IB_CQ_NEXT_COMP); in mlx4_ib_sqp_comp_worker()
1723 while (mlx4_ib_poll_cq(ctx->cq, 1, &wc) == 1) { in mlx4_ib_sqp_comp_worker()
1832 ctx->cq = ib_create_cq(ctx->ib_dev, mlx4_ib_tunnel_comp_handler, in create_pv_resources()
1834 if (IS_ERR(ctx->cq)) { in create_pv_resources()
1835 ret = PTR_ERR(ctx->cq); in create_pv_resources()
1870 ret = ib_req_notify_cq(ctx->cq, IB_CQ_NEXT_COMP); in create_pv_resources()
1894 ib_destroy_cq(ctx->cq); in create_pv_resources()
1895 ctx->cq = NULL; in create_pv_resources()
1927 ib_destroy_cq(ctx->cq); in destroy_pv_resources()
1928 ctx->cq = NULL; in destroy_pv_resources()
2059 ib_destroy_cq(sqp_ctx->cq); in mlx4_ib_free_sqp_ctx()
2060 sqp_ctx->cq = NULL; in mlx4_ib_free_sqp_ctx()