Lines Matching refs:policer_item

1293 		const struct mlxsw_sp_trap_policer_item *policer_item;  in mlxsw_sp_trap_policer_items_arr_init()  local
1298 policer_item = &mlxsw_sp_trap_policer_items_arr[0]; in mlxsw_sp_trap_policer_items_arr_init()
1299 trap->policer_items_arr[i] = *policer_item; in mlxsw_sp_trap_policer_items_arr_init()
1316 const struct mlxsw_sp_trap_policer_item *policer_item; in mlxsw_sp_trap_policers_init() local
1325 policer_item = &trap->policer_items_arr[i]; in mlxsw_sp_trap_policers_init()
1327 &policer_item->policer, 1); in mlxsw_sp_trap_policers_init()
1336 policer_item = &trap->policer_items_arr[i]; in mlxsw_sp_trap_policers_init()
1338 &policer_item->policer, 1); in mlxsw_sp_trap_policers_init()
1347 const struct mlxsw_sp_trap_policer_item *policer_item; in mlxsw_sp_trap_policers_fini() local
1352 policer_item = &trap->policer_items_arr[i]; in mlxsw_sp_trap_policers_fini()
1354 &policer_item->policer, 1); in mlxsw_sp_trap_policers_fini()
1680 struct mlxsw_sp_trap_policer_item *policer_item; in __mlxsw_sp_trap_group_init() local
1682 policer_item = mlxsw_sp_trap_policer_item_lookup(mlxsw_sp, in __mlxsw_sp_trap_group_init()
1684 if (WARN_ON(!policer_item)) in __mlxsw_sp_trap_group_init()
1686 hw_policer_id = policer_item->hw_id; in __mlxsw_sp_trap_group_init()
1714 struct mlxsw_sp_trap_policer_item *policer_item) in mlxsw_sp_trap_policer_item_init() argument
1728 policer_item->hw_id = hw_id; in mlxsw_sp_trap_policer_item_init()
1735 struct mlxsw_sp_trap_policer_item *policer_item) in mlxsw_sp_trap_policer_item_fini() argument
1737 __clear_bit(policer_item->hw_id, mlxsw_sp->trap->policers_usage); in mlxsw_sp_trap_policer_item_fini()
1777 struct mlxsw_sp_trap_policer_item *policer_item; in mlxsw_sp_trap_policer_init() local
1780 policer_item = mlxsw_sp_trap_policer_item_lookup(mlxsw_sp, policer->id); in mlxsw_sp_trap_policer_init()
1781 if (WARN_ON(!policer_item)) in mlxsw_sp_trap_policer_init()
1784 err = mlxsw_sp_trap_policer_item_init(mlxsw_sp, policer_item); in mlxsw_sp_trap_policer_init()
1788 err = __mlxsw_sp_trap_policer_set(mlxsw_sp, policer_item->hw_id, in mlxsw_sp_trap_policer_init()
1797 mlxsw_sp_trap_policer_item_fini(mlxsw_sp, policer_item); in mlxsw_sp_trap_policer_init()
1805 struct mlxsw_sp_trap_policer_item *policer_item; in mlxsw_sp_trap_policer_fini() local
1807 policer_item = mlxsw_sp_trap_policer_item_lookup(mlxsw_sp, policer->id); in mlxsw_sp_trap_policer_fini()
1808 if (WARN_ON(!policer_item)) in mlxsw_sp_trap_policer_fini()
1811 mlxsw_sp_trap_policer_item_fini(mlxsw_sp, policer_item); in mlxsw_sp_trap_policer_fini()
1820 struct mlxsw_sp_trap_policer_item *policer_item; in mlxsw_sp_trap_policer_set() local
1822 policer_item = mlxsw_sp_trap_policer_item_lookup(mlxsw_sp, policer->id); in mlxsw_sp_trap_policer_set()
1823 if (WARN_ON(!policer_item)) in mlxsw_sp_trap_policer_set()
1826 return __mlxsw_sp_trap_policer_set(mlxsw_sp, policer_item->hw_id, in mlxsw_sp_trap_policer_set()
1836 struct mlxsw_sp_trap_policer_item *policer_item; in mlxsw_sp_trap_policer_counter_get() local
1840 policer_item = mlxsw_sp_trap_policer_item_lookup(mlxsw_sp, policer->id); in mlxsw_sp_trap_policer_counter_get()
1841 if (WARN_ON(!policer_item)) in mlxsw_sp_trap_policer_counter_get()
1844 mlxsw_reg_qpcr_pack(qpcr_pl, policer_item->hw_id, in mlxsw_sp_trap_policer_counter_get()