Lines Matching defs:mlxsw_sp

178 int mlxsw_sp_flow_counter_get(struct mlxsw_sp *mlxsw_sp,  in mlxsw_sp_flow_counter_get()
197 static int mlxsw_sp_flow_counter_clear(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_clear()
207 int mlxsw_sp_flow_counter_alloc(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_alloc()
227 void mlxsw_sp_flow_counter_free(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_free()
305 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_txhdr_handle() local
346 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vid_stp_set() local
361 static int mlxsw_sp_base_mac_get(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_base_mac_get()
376 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_admin_status_set() local
388 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_dev_addr_set() local
398 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_dev_addr_init() local
408 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_max_mtu_get() local
423 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_mtu_set() local
434 static int mlxsw_sp_port_swid_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_port_swid_set()
445 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vp_mode_set() local
455 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vid_learning_set() local
471 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_security_set() local
506 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_egress_ethtype_set() local
522 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in __mlxsw_sp_port_pvid_set() local
540 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_allow_untagged_set() local
576 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_system_port_mapping_set() local
584 mlxsw_sp_port_module_info_parse(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_port_module_info_parse()
641 mlxsw_sp_port_module_info_get(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_port_module_info_get()
656 mlxsw_sp_port_module_map(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_port_module_map()
685 static void mlxsw_sp_port_module_unmap(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_port_module_unmap()
699 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_open() local
723 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_stop() local
737 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_xmit() local
891 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_get_stats_raw() local
1020 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in __mlxsw_sp_port_vlan_set() local
1359 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_speed_by_width_set() local
1389 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_speed_get() local
1411 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_ets_set() local
1426 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_ets_maxrate_set() local
1441 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_min_bw_set() local
1455 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_prio_tc_set() local
1552 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_tc_mc_mode_set() local
1561 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_overheat_init_val_set() local
1581 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vlan_classification_set() local
1589 static int mlxsw_sp_port_label_info_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_port_label_info_get()
1606 static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_port_create()
1899 static void mlxsw_sp_port_remove(struct mlxsw_sp *mlxsw_sp, u16 local_port) in mlxsw_sp_port_remove()
1927 static int mlxsw_sp_cpu_port_create(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_cpu_port_create()
1956 static void mlxsw_sp_cpu_port_remove(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_cpu_port_remove()
1971 static bool mlxsw_sp_port_created(struct mlxsw_sp *mlxsw_sp, u16 local_port) in mlxsw_sp_port_created()
1978 static int mlxsw_sp_port_mapping_event_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_port_mapping_event_set()
1999 struct mlxsw_sp *mlxsw_sp; in mlxsw_sp_port_mapping_events_work() local
2046 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_port_mapping_listener_func() local
2065 __mlxsw_sp_port_mapping_events_cancel(struct mlxsw_sp *mlxsw_sp) in __mlxsw_sp_port_mapping_events_cancel()
2080 static void mlxsw_sp_ports_remove(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_ports_remove()
2103 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_ports_remove_selected() local
2112 static int mlxsw_sp_ports_create(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_ports_create()
2168 static int mlxsw_sp_port_module_info_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_port_module_info_init()
2194 static void mlxsw_sp_port_module_info_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_port_module_info_fini()
2200 mlxsw_sp_port_split_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_port_split_create()
2234 static void mlxsw_sp_port_unsplit_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_port_unsplit_create()
2254 mlxsw_sp_port_get_by_local_port(struct mlxsw_sp *mlxsw_sp, u16 local_port) in mlxsw_sp_port_get_by_local_port()
2265 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_port_split() local
2329 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_port_unsplit() local
2386 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_pude_event_func() local
2411 static void mlxsw_sp1_ptp_fifo_event_func(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_fifo_event_func()
2438 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp1_ptp_ing_fifo_event_func() local
2446 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp1_ptp_egr_fifo_event_func() local
2454 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_rx_listener_no_mark_func() local
2491 void mlxsw_sp_ptp_receive(struct mlxsw_sp *mlxsw_sp, struct sk_buff *skb, in mlxsw_sp_ptp_receive()
2551 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_cpu_policers_set() local
2637 static int mlxsw_sp_traps_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_traps_init()
2685 static void mlxsw_sp_traps_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_traps_fini()
2697 static int mlxsw_sp_lag_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_lag_init()
2734 static void mlxsw_sp_lag_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_lag_fini()
2816 mlxsw_sp_sample_trigger_params_lookup(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sample_trigger_params_lookup()
2832 mlxsw_sp_sample_trigger_node_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sample_trigger_node_init()
2861 mlxsw_sp_sample_trigger_node_fini(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sample_trigger_node_fini()
2871 mlxsw_sp_sample_trigger_params_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sample_trigger_params_set()
2909 mlxsw_sp_sample_trigger_params_unset(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sample_trigger_params_unset()
2938 static void mlxsw_sp_parsing_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_parsing_init()
2946 static void mlxsw_sp_parsing_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_parsing_fini()
2967 mlxsw_sp_ipv6_addr_init(struct mlxsw_sp *mlxsw_sp, const struct in6_addr *addr6, in mlxsw_sp_ipv6_addr_init()
3012 static void mlxsw_sp_ipv6_addr_fini(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipv6_addr_fini()
3024 int mlxsw_sp_ipv6_addr_kvdl_index_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipv6_addr_kvdl_index_get()
3048 mlxsw_sp_ipv6_addr_put(struct mlxsw_sp *mlxsw_sp, const struct in6_addr *addr6) in mlxsw_sp_ipv6_addr_put()
3067 static int mlxsw_sp_ipv6_addr_ht_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_ipv6_addr_ht_init()
3080 static void mlxsw_sp_ipv6_addr_ht_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_ipv6_addr_ht_fini()
3090 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_init() local
3326 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp1_init() local
3359 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp2_init() local
3393 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp3_init() local
3427 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp4_init() local
3459 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_fini() local
3908 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_ptp_transmitted() local
4115 int mlxsw_sp_parsing_depth_inc(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_parsing_depth_inc()
4139 void mlxsw_sp_parsing_depth_dec(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_parsing_depth_dec()
4157 int mlxsw_sp_parsing_vxlan_udp_dport_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_parsing_vxlan_udp_dport_set()
4197 static int mlxsw_sp_lag_create(struct mlxsw_sp *mlxsw_sp, u16 lag_id) in mlxsw_sp_lag_create()
4205 static int mlxsw_sp_lag_destroy(struct mlxsw_sp *mlxsw_sp, u16 lag_id) in mlxsw_sp_lag_destroy()
4216 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_lag_col_port_add() local
4227 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_lag_col_port_remove() local
4238 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_lag_col_port_enable() local
4249 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_lag_col_port_disable() local
4257 static int mlxsw_sp_lag_index_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_lag_index_get()
4288 mlxsw_sp_master_lag_check(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_master_lag_check()
4306 static int mlxsw_sp_port_lag_index_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_port_lag_index_get()
4409 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_lag_join() local
4480 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_lag_leave() local
4515 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_lag_dist_port_add() local
4526 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_lag_dist_port_remove() local
4589 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_stp_set() local
4731 static int mlxsw_sp_netdevice_validate_uppers(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_netdevice_validate_uppers()
4782 struct mlxsw_sp *mlxsw_sp; in mlxsw_sp_netdevice_port_upper_event() local
4979 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(dev); in mlxsw_sp_netdevice_post_lag_event() local
5021 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_netdevice_port_vlan_event() local
5105 static int mlxsw_sp_netdevice_bridge_vlan_event(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_netdevice_bridge_vlan_event()
5141 static int mlxsw_sp_netdevice_vlan_event(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_netdevice_vlan_event()
5166 static int mlxsw_sp_netdevice_bridge_event(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_netdevice_bridge_event()
5222 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_lower_get(macvlan_dev); in mlxsw_sp_netdevice_macvlan_event() local
5241 static int mlxsw_sp_netdevice_vxlan_event(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_netdevice_vxlan_event()
5309 static int __mlxsw_sp_netdevice_event(struct mlxsw_sp *mlxsw_sp, in __mlxsw_sp_netdevice_event()
5344 struct mlxsw_sp *mlxsw_sp; in mlxsw_sp_netdevice_event() local