Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_trap.h22 u64 max_policers; member
Dspectrum_trap.c1216 hw_id = find_first_zero_bit(trap->policers_usage, trap->max_policers); in mlxsw_sp_trap_cpu_policers_set()
1217 if (WARN_ON(hw_id == trap->max_policers)) in mlxsw_sp_trap_cpu_policers_set()
1245 for_each_clear_bit(i, trap->policers_usage, trap->max_policers) in mlxsw_sp_trap_policer_items_arr_init()
1699 hw_id = find_first_zero_bit(trap->policers_usage, trap->max_policers); in mlxsw_sp_trap_policer_item_init()
1700 if (WARN_ON(hw_id == trap->max_policers)) in mlxsw_sp_trap_policer_item_init()
Dspectrum.c2569 u64 max_policers; in mlxsw_sp_traps_init() local
2574 max_policers = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_CPU_POLICERS); in mlxsw_sp_traps_init()
2576 BITS_TO_LONGS(max_policers)), GFP_KERNEL); in mlxsw_sp_traps_init()
2579 trap->max_policers = max_policers; in mlxsw_sp_traps_init()