Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_trap.h23 unsigned long policers_usage[]; /* Usage bitmap */ member
Dspectrum_trap.c1063 hw_id = find_first_zero_bit(trap->policers_usage, trap->max_policers); in mlxsw_sp_trap_cpu_policers_set()
1067 __set_bit(hw_id, trap->policers_usage); in mlxsw_sp_trap_cpu_policers_set()
1092 for_each_clear_bit(i, trap->policers_usage, trap->max_policers) in mlxsw_sp_trap_policer_items_arr_init()
1546 hw_id = find_first_zero_bit(trap->policers_usage, trap->max_policers); in mlxsw_sp_trap_policer_item_init()
1550 __set_bit(hw_id, trap->policers_usage); in mlxsw_sp_trap_policer_item_init()
1560 __clear_bit(policer_item->hw_id, mlxsw_sp->trap->policers_usage); in mlxsw_sp_trap_policer_item_fini()
Dspectrum.c2263 __set_bit(i, mlxsw_sp->trap->policers_usage); in mlxsw_sp_cpu_policers_set()
2369 trap = kzalloc(struct_size(trap, policers_usage, in mlxsw_sp_traps_init()