Searched refs:ft_pool (Results 1 – 2 of 2) sorted by relevance
26 struct mlx5_ft_pool *ft_pool; in mlx5_ft_pool_init() local29 ft_pool = kzalloc(sizeof(*ft_pool), GFP_KERNEL); in mlx5_ft_pool_init()30 if (!ft_pool) in mlx5_ft_pool_init()34 ft_pool->ft_left[i] = FT_SIZE / FT_POOLS[i]; in mlx5_ft_pool_init()36 dev->priv.ft_pool = ft_pool; in mlx5_ft_pool_init()42 kfree(dev->priv.ft_pool); in mlx5_ft_pool_destroy()53 if (dev->priv.ft_pool->ft_left[i] && FT_POOLS[i] >= desired_size && in mlx5_ft_pool_get_avail_sz()62 --dev->priv.ft_pool->ft_left[found_i]; in mlx5_ft_pool_get_avail_sz()79 ++dev->priv.ft_pool->ft_left[i]; in mlx5_ft_pool_put_sz()
628 struct mlx5_ft_pool *ft_pool; member