mlx4_counter_alloc
int mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx);
err = mlx4_counter_alloc(dev, &idx);
EXPORT_SYMBOL_GPL(mlx4_counter_alloc);
err = mlx4_counter_alloc(ibdev->dev, &counter_index);
err = mlx4_counter_alloc(dev->dev, &tmp_idx);