Lines Matching refs:counter_index
544 mlx4_counter_free(dev->dev, qp->counter_index->index); in mlx4_ib_free_qp_counter()
545 list_del(&qp->counter_index->list); in mlx4_ib_free_qp_counter()
548 kfree(qp->counter_index); in mlx4_ib_free_qp_counter()
549 qp->counter_index = NULL; in mlx4_ib_free_qp_counter()
1675 if (mqp->counter_index) in _mlx4_ib_destroy_qp()
1952 struct counter_index *new_counter_index; in create_qp_lb_counter()
1974 qp->counter_index = new_counter_index; in create_qp_lb_counter()
2129 int counter_index; in __mlx4_ib_modify_qp() local
2219 if (new_state == IB_QPS_RESET && qp->counter_index) in __mlx4_ib_modify_qp()
2252 counter_index = in __mlx4_ib_modify_qp()
2254 if (qp->counter_index) in __mlx4_ib_modify_qp()
2255 counter_index = qp->counter_index->index; in __mlx4_ib_modify_qp()
2257 if (counter_index != -1) { in __mlx4_ib_modify_qp()
2258 context->pri_path.counter_index = counter_index; in __mlx4_ib_modify_qp()
2260 if (qp->counter_index) { in __mlx4_ib_modify_qp()
2267 context->pri_path.counter_index = in __mlx4_ib_modify_qp()
2618 if (err && qp->counter_index) in __mlx4_ib_modify_qp()
4321 if (qp->counter_index) in mlx4_ib_destroy_wq()