Lines Matching defs:mlxsw_sp_port
262 int mlxsw_sp_port_vid_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_stp_set()
293 int mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_admin_status_set()
305 static int mlxsw_sp_port_dev_addr_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dev_addr_set()
316 static int mlxsw_sp_port_dev_addr_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dev_addr_init()
326 static int mlxsw_sp_port_max_mtu_get(struct mlxsw_sp_port *mlxsw_sp_port, int *p_max_mtu) in mlxsw_sp_port_max_mtu_get()
341 static int mlxsw_sp_port_mtu_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mtu) in mlxsw_sp_port_mtu_set()
354 static int mlxsw_sp_port_swid_set(struct mlxsw_sp_port *mlxsw_sp_port, u8 swid) in mlxsw_sp_port_swid_set()
363 int mlxsw_sp_port_vp_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp_port_vp_mode_set()
372 int mlxsw_sp_port_vid_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_learning_set()
405 int mlxsw_sp_port_egress_ethtype_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_egress_ethtype_set()
421 static int __mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, in __mlxsw_sp_port_pvid_set()
439 static int mlxsw_sp_port_allow_untagged_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_allow_untagged_set()
449 int mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_pvid_set()
476 mlxsw_sp_port_system_port_mapping_set(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_system_port_mapping_set()
536 static int mlxsw_sp_port_module_map(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_module_map()
553 static int mlxsw_sp_port_module_unmap(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_module_unmap()
565 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_open() local
577 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_stop() local
586 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_xmit() local
642 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_set_mac_address() local
658 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_change_mtu() local
690 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_sw_stats64() local
742 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_stats_raw() local
832 struct mlxsw_sp_port *mlxsw_sp_port = in update_stats_cache() local
859 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_stats64() local
864 static int __mlxsw_sp_port_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, in __mlxsw_sp_port_vlan_set()
883 int mlxsw_sp_port_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid_begin, in mlxsw_sp_port_vlan_set()
903 static void mlxsw_sp_port_vlan_flush(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_flush()
927 mlxsw_sp_port_vlan_create(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) in mlxsw_sp_port_vlan_create()
960 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_port_vlan_destroy() local
972 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_add_vid() local
986 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_kill_vid() local
1003 static int mlxsw_sp_setup_tc_block(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_setup_tc_block()
1021 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_setup_tc() local
1043 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_feature_hw_tc() local
1062 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_feature_loopback() local
1129 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_devlink_port() local
1136 static int mlxsw_sp_port_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_hwtstamp_set()
1156 static int mlxsw_sp_port_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_hwtstamp_get()
1173 static inline void mlxsw_sp_port_ptp_clear(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_ptp_clear()
1183 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_ioctl() local
1214 mlxsw_sp_port_speed_by_width_set(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_speed_by_width_set()
1243 int mlxsw_sp_port_speed_get(struct mlxsw_sp_port *mlxsw_sp_port, u32 *speed) in mlxsw_sp_port_speed_get()
1264 int mlxsw_sp_port_ets_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_ets_set()
1279 int mlxsw_sp_port_ets_maxrate_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_ets_maxrate_set()
1294 static int mlxsw_sp_port_min_bw_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_min_bw_set()
1309 int mlxsw_sp_port_prio_tc_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_prio_tc_set()
1320 static int mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_ets_init()
1406 static int mlxsw_sp_port_tc_mc_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_tc_mc_mode_set()
1416 static int mlxsw_sp_port_overheat_init_val_set(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_overheat_init_val_set()
1433 mlxsw_sp_port_vlan_classification_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_classification_set()
1451 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_port_create() local
1729 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_remove() local
1755 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_cpu_port_create() local
1784 struct mlxsw_sp_port *mlxsw_sp_port = in mlxsw_sp_cpu_port_remove() local
1982 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_port_split() local
2064 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_port_unsplit() local
2114 mlxsw_sp_port_down_wipe_counters(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_down_wipe_counters()
2126 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_pude_event_func() local
2196 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_rx_listener_no_mark_func() local
3595 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_lower_get() local
3618 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_port_lower_dev_hold() local
3628 void mlxsw_sp_port_dev_put(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dev_put()
3697 mlxsw_sp_port_lag_uppers_cleanup(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_lag_uppers_cleanup()
3731 static int mlxsw_sp_lag_col_port_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_lag_col_port_add()
3742 static int mlxsw_sp_lag_col_port_remove(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_lag_col_port_remove()
3753 static int mlxsw_sp_lag_col_port_enable(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_lag_col_port_enable()
3764 static int mlxsw_sp_lag_col_port_disable(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_lag_col_port_disable()
3838 static int mlxsw_sp_port_lag_join(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_lag_join()
3896 static void mlxsw_sp_port_lag_leave(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_lag_leave()
3931 static int mlxsw_sp_lag_dist_port_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_lag_dist_port_add()
3942 static int mlxsw_sp_lag_dist_port_remove(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_lag_dist_port_remove()
3954 mlxsw_sp_port_lag_col_dist_enable(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_lag_col_dist_enable()
3975 mlxsw_sp_port_lag_col_dist_disable(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_lag_col_dist_disable()
3996 static int mlxsw_sp_port_lag_changed(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_lag_changed()
4005 static int mlxsw_sp_port_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_stp_set()
4030 static int mlxsw_sp_port_ovs_join(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_ovs_join()
4065 static void mlxsw_sp_port_ovs_leave(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_ovs_leave()
4145 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_netdevice_port_upper_event() local
4289 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_netdevice_port_lower_event() local
4350 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_netdevice_port_vlan_event() local