Home
last modified time | relevance | path

Searched refs:ft_pool (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_ft_pool.c26 struct mlx5_ft_pool *ft_pool; in mlx5_ft_pool_init() local
29 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()
/openbmc/linux/include/linux/mlx5/
H A Ddriver.h628 struct mlx5_ft_pool *ft_pool; member