Searched refs:max_policers (Results 1 – 3 of 3) sorted by relevance
22 u64 max_policers; member
1241 hw_id = find_first_zero_bit(trap->policers_usage, trap->max_policers); in mlxsw_sp_trap_cpu_policers_set()1242 if (WARN_ON(hw_id == trap->max_policers)) in mlxsw_sp_trap_cpu_policers_set()1270 for_each_clear_bit(i, trap->policers_usage, trap->max_policers) in mlxsw_sp_trap_policer_items_arr_init()1723 hw_id = find_first_zero_bit(trap->policers_usage, trap->max_policers); in mlxsw_sp_trap_policer_item_init()1724 if (WARN_ON(hw_id == trap->max_policers)) in mlxsw_sp_trap_policer_item_init()
2640 u64 max_policers; in mlxsw_sp_traps_init() local2645 max_policers = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_CPU_POLICERS); in mlxsw_sp_traps_init()2647 BITS_TO_LONGS(max_policers)), GFP_KERNEL); in mlxsw_sp_traps_init()2650 trap->max_policers = max_policers; in mlxsw_sp_traps_init()