Lines Matching defs:mlxsw_sp

62 static int mlxsw_sp_rx_listener(struct mlxsw_sp *mlxsw_sp, struct sk_buff *skb,  in mlxsw_sp_rx_listener()
93 struct mlxsw_sp *mlxsw_sp; in mlxsw_sp_rx_drop_listener() local
119 struct mlxsw_sp *mlxsw_sp; in mlxsw_sp_rx_acl_drop_listener() local
146 struct mlxsw_sp *mlxsw_sp; in __mlxsw_sp_rx_no_mark_listener() local
197 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_ptp_listener() local
212 mlxsw_sp_sample_tx_port_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sample_tx_port_get()
238 static void mlxsw_sp_psample_md_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_psample_md_init()
263 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_listener() local
300 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_tx_listener() local
349 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_acl_listener() local
1191 mlxsw_sp_trap_policer_item_lookup(struct mlxsw_sp *mlxsw_sp, u32 id) in mlxsw_sp_trap_policer_item_lookup()
1205 mlxsw_sp_trap_group_item_lookup(struct mlxsw_sp *mlxsw_sp, u16 id) in mlxsw_sp_trap_group_item_lookup()
1219 mlxsw_sp_trap_item_lookup(struct mlxsw_sp *mlxsw_sp, u16 id) in mlxsw_sp_trap_item_lookup()
1232 static int mlxsw_sp_trap_cpu_policers_set(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_cpu_policers_set()
1252 static int mlxsw_sp_trap_dummy_group_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_dummy_group_init()
1261 static int mlxsw_sp_trap_policer_items_arr_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_policer_items_arr_init()
1308 static void mlxsw_sp_trap_policer_items_arr_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_policer_items_arr_fini()
1313 static int mlxsw_sp_trap_policers_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_policers_init()
1344 static void mlxsw_sp_trap_policers_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_policers_fini()
1359 static int mlxsw_sp_trap_group_items_arr_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_group_items_arr_init()
1391 static void mlxsw_sp_trap_group_items_arr_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_group_items_arr_fini()
1396 static int mlxsw_sp_trap_groups_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_groups_init()
1425 static void mlxsw_sp_trap_groups_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_groups_fini()
1446 static int mlxsw_sp_trap_items_arr_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_items_arr_init()
1478 static void mlxsw_sp_trap_items_arr_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_trap_items_arr_fini()
1483 static int mlxsw_sp_traps_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_traps_init()
1513 static void mlxsw_sp_traps_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_traps_fini()
1528 int mlxsw_sp_devlink_traps_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_devlink_traps_init()
1561 void mlxsw_sp_devlink_traps_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_devlink_traps_fini()
1571 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_trap_init() local
1597 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_trap_fini() local
1620 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_trap_action_set() local
1665 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in __mlxsw_sp_trap_group_init() local
1713 mlxsw_sp_trap_policer_item_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_trap_policer_item_init()
1734 mlxsw_sp_trap_policer_item_fini(struct mlxsw_sp *mlxsw_sp, 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()
1776 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_trap_policer_init() local
1804 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_trap_policer_fini() local
1819 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_trap_policer_set() local
1835 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_trap_policer_counter_get() local
1855 int mlxsw_sp_trap_group_policer_hw_id_get(struct mlxsw_sp *mlxsw_sp, u16 id, in mlxsw_sp_trap_group_policer_hw_id_get()
1903 mlxsw_sp1_trap_groups_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_trap_groups_init()
1913 static int mlxsw_sp1_traps_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_traps_init()
1971 mlxsw_sp2_trap_groups_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_trap_groups_init()
1981 static int mlxsw_sp2_traps_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_traps_init()