Lines Matching refs:hw_id

17 	u16 hw_id;  member
1236 u16 hw_id; in mlxsw_sp_trap_cpu_policers_set() local
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()
1245 __set_bit(hw_id, trap->policers_usage); in mlxsw_sp_trap_cpu_policers_set()
1246 trap->thin_policer_hw_id = hw_id; in mlxsw_sp_trap_cpu_policers_set()
1247 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, in mlxsw_sp_trap_cpu_policers_set()
1686 hw_policer_id = policer_item->hw_id; in __mlxsw_sp_trap_group_init()
1717 u16 hw_id; in mlxsw_sp_trap_policer_item_init() local
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()
1727 __set_bit(hw_id, trap->policers_usage); in mlxsw_sp_trap_policer_item_init()
1728 policer_item->hw_id = hw_id; in mlxsw_sp_trap_policer_item_init()
1737 __clear_bit(policer_item->hw_id, mlxsw_sp->trap->policers_usage); in mlxsw_sp_trap_policer_item_fini()
1755 static int __mlxsw_sp_trap_policer_set(struct mlxsw_sp *mlxsw_sp, u16 hw_id, in __mlxsw_sp_trap_policer_set() argument
1767 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, false, in __mlxsw_sp_trap_policer_set()
1788 err = __mlxsw_sp_trap_policer_set(mlxsw_sp, policer_item->hw_id, in mlxsw_sp_trap_policer_init()
1826 return __mlxsw_sp_trap_policer_set(mlxsw_sp, policer_item->hw_id, in mlxsw_sp_trap_policer_set()
1844 mlxsw_reg_qpcr_pack(qpcr_pl, policer_item->hw_id, in mlxsw_sp_trap_policer_counter_get()
1877 *p_hw_id = pol_item->hw_id; in mlxsw_sp_trap_group_policer_hw_id_get()