Lines Matching refs:counter_index
529 mlx4_counter_free(dev->dev, qp->counter_index->index); in mlx4_ib_free_qp_counter()
530 list_del(&qp->counter_index->list); in mlx4_ib_free_qp_counter()
533 kfree(qp->counter_index); in mlx4_ib_free_qp_counter()
534 qp->counter_index = NULL; in mlx4_ib_free_qp_counter()
1606 if (mqp->counter_index) in _mlx4_ib_destroy_qp()
1890 struct counter_index *new_counter_index; in create_qp_lb_counter()
1912 qp->counter_index = new_counter_index; in create_qp_lb_counter()
2061 int counter_index; in __mlx4_ib_modify_qp() local
2153 if (new_state == IB_QPS_RESET && qp->counter_index) in __mlx4_ib_modify_qp()
2188 counter_index = in __mlx4_ib_modify_qp()
2190 if (qp->counter_index) in __mlx4_ib_modify_qp()
2191 counter_index = qp->counter_index->index; in __mlx4_ib_modify_qp()
2193 if (counter_index != -1) { in __mlx4_ib_modify_qp()
2194 context->pri_path.counter_index = counter_index; in __mlx4_ib_modify_qp()
2196 if (qp->counter_index) { in __mlx4_ib_modify_qp()
2203 context->pri_path.counter_index = in __mlx4_ib_modify_qp()
2552 if (err && qp->counter_index) in __mlx4_ib_modify_qp()
4249 if (qp->counter_index) in mlx4_ib_destroy_wq()