Searched refs:max_policers (Results 1 – 3 of 3) sorted by relevance
22 u64 max_policers; member
1216 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()1698 hw_id = find_first_zero_bit(trap->policers_usage, trap->max_policers); in mlxsw_sp_trap_policer_item_init()1699 if (WARN_ON(hw_id == trap->max_policers)) in mlxsw_sp_trap_policer_item_init()
2634 u64 max_policers; in mlxsw_sp_traps_init() local2639 max_policers = MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_CPU_POLICERS); in mlxsw_sp_traps_init()2641 BITS_TO_LONGS(max_policers)), GFP_KERNEL); in mlxsw_sp_traps_init()2644 trap->max_policers = max_policers; in mlxsw_sp_traps_init()