Lines Matching refs:counter_index
505 mlx4_counter_free(dev->dev, qp->counter_index->index); in mlx4_ib_free_qp_counter()
506 list_del(&qp->counter_index->list); in mlx4_ib_free_qp_counter()
509 kfree(qp->counter_index); in mlx4_ib_free_qp_counter()
510 qp->counter_index = NULL; in mlx4_ib_free_qp_counter()
1636 if (mqp->counter_index) in _mlx4_ib_destroy_qp()
1913 struct counter_index *new_counter_index; in create_qp_lb_counter()
1935 qp->counter_index = new_counter_index; in create_qp_lb_counter()
2090 int counter_index; in __mlx4_ib_modify_qp() local
2180 if (new_state == IB_QPS_RESET && qp->counter_index) in __mlx4_ib_modify_qp()
2213 counter_index = in __mlx4_ib_modify_qp()
2215 if (qp->counter_index) in __mlx4_ib_modify_qp()
2216 counter_index = qp->counter_index->index; in __mlx4_ib_modify_qp()
2218 if (counter_index != -1) { in __mlx4_ib_modify_qp()
2219 context->pri_path.counter_index = counter_index; in __mlx4_ib_modify_qp()
2221 if (qp->counter_index) { in __mlx4_ib_modify_qp()
2228 context->pri_path.counter_index = in __mlx4_ib_modify_qp()
2579 if (err && qp->counter_index) in __mlx4_ib_modify_qp()
4282 if (qp->counter_index) in mlx4_ib_destroy_wq()