Home
last modified time | relevance | path

Searched refs:max_sfs (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
H A Ddev.c17 unsigned int max_sfs; member
113 if (!table->max_sfs) { in mlx5_sf_dev_add()
299 unsigned int max_sfs; in mlx5_sf_dev_table_create() local
314 max_sfs = MLX5_CAP_GEN(dev, max_num_sf); in mlx5_sf_dev_table_create()
316 max_sfs = 1 << MLX5_CAP_GEN(dev, log_max_sf); in mlx5_sf_dev_table_create()
319 table->max_sfs = max_sfs; in mlx5_sf_dev_table_create()
335 mlx5_core_dbg(dev, "SF DEV: max sf devices=%d\n", max_sfs); in mlx5_sf_dev_table_create()
343 table->max_sfs = 0; in mlx5_sf_dev_table_create()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c1661 int mlx5_esw_sf_max_hpf_functions(struct mlx5_core_dev *dev, u16 *max_sfs, u16 *sf_base_id) in mlx5_esw_sf_max_hpf_functions() argument
1670 *max_sfs = 0; in mlx5_esw_sf_max_hpf_functions()
1683 *max_sfs = MLX5_GET(cmd_hca_cap, hca_caps, max_num_sf); in mlx5_esw_sf_max_hpf_functions()
H A Deswitch.h809 int mlx5_esw_sf_max_hpf_functions(struct mlx5_core_dev *dev, u16 *max_sfs, u16 *sf_base_id);