/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_dcb.c | 26 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_dcbnl_ieee_getets() local 28 memcpy(ets, mlxsw_sp_port->dcb.ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_getets() 33 static int mlxsw_sp_port_ets_validate(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_ets_validate() argument 36 struct net_device *dev = mlxsw_sp_port->dev; in mlxsw_sp_port_ets_validate() 67 static int mlxsw_sp_port_headroom_ets_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_headroom_ets_set() argument 70 struct net_device *dev = mlxsw_sp_port->dev; in mlxsw_sp_port_headroom_ets_set() 75 hdroom = *mlxsw_sp_port in mlxsw_sp_port_headroom_ets_set() 91 __mlxsw_sp_dcbnl_ieee_setets(struct mlxsw_sp_port *mlxsw_sp_port, struct ieee_ets *ets) __mlxsw_sp_dcbnl_ieee_setets() argument 151 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_setets() local 203 mlxsw_sp_port_dcb_app_default_prio(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_app_default_prio() argument 216 mlxsw_sp_port_dcb_app_dscp_prio_map(struct mlxsw_sp_port *mlxsw_sp_port, u8 default_prio, struct dcb_ieee_app_dscp_map *map) mlxsw_sp_port_dcb_app_dscp_prio_map() argument 232 mlxsw_sp_port_dcb_app_prio_dscp_map(struct mlxsw_sp_port *mlxsw_sp_port, struct dcb_ieee_app_prio_map *map) mlxsw_sp_port_dcb_app_prio_dscp_map() argument 250 mlxsw_sp_port_dcb_app_update_qpts(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qpts_trust_state ts) mlxsw_sp_port_dcb_app_update_qpts() argument 261 mlxsw_sp_port_dcb_app_update_qrwe(struct mlxsw_sp_port *mlxsw_sp_port, bool rewrite_dscp) mlxsw_sp_port_dcb_app_update_qrwe() argument 273 mlxsw_sp_port_dcb_toggle_trust(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qpts_trust_state ts) mlxsw_sp_port_dcb_toggle_trust() argument 300 mlxsw_sp_port_dcb_app_update_qpdp(struct mlxsw_sp_port *mlxsw_sp_port, u8 default_prio) mlxsw_sp_port_dcb_app_update_qpdp() argument 311 mlxsw_sp_port_dcb_app_update_qpdpm(struct mlxsw_sp_port *mlxsw_sp_port, struct dcb_ieee_app_dscp_map *map) mlxsw_sp_port_dcb_app_update_qpdpm() argument 325 mlxsw_sp_port_dcb_app_update_qpdsm(struct mlxsw_sp_port *mlxsw_sp_port, struct dcb_ieee_app_prio_map *map) mlxsw_sp_port_dcb_app_update_qpdsm() argument 338 mlxsw_sp_port_dcb_app_update(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_app_update() argument 398 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_setapp() local 423 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_delapp() local 439 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_getmaxrate() local 449 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_setmaxrate() local 477 mlxsw_sp_port_pfc_cnt_get(struct mlxsw_sp_port *mlxsw_sp_port, u8 prio) mlxsw_sp_port_pfc_cnt_get() argument 500 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_getpfc() local 517 mlxsw_sp_port_pfc_set(struct mlxsw_sp_port *mlxsw_sp_port, struct ieee_pfc *pfc) mlxsw_sp_port_pfc_set() argument 534 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_setpfc() local 584 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_getbuffer() local 611 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_setbuffer() local 655 mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ets_init() argument 667 mlxsw_sp_port_ets_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ets_fini() argument 672 mlxsw_sp_port_maxrate_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_maxrate_init() argument 687 mlxsw_sp_port_maxrate_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_maxrate_fini() argument 692 mlxsw_sp_port_pfc_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_pfc_init() argument 704 mlxsw_sp_port_pfc_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_pfc_fini() argument 709 mlxsw_sp_port_dcb_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_init() argument 735 mlxsw_sp_port_dcb_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_fini() argument [all...] |
H A D | spectrum.c | 260 int mlxsw_sp_port_vid_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_stp_set() argument 264 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vid_stp_set() 271 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_vid_stp_set() 291 int mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_admin_status_set() argument 294 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_admin_status_set() 297 mlxsw_reg_paos_pack(paos_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_admin_status_set() 303 static int mlxsw_sp_port_dev_addr_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dev_addr_set() argument 314 mlxsw_sp_port_dev_addr_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dev_addr_init() argument 324 mlxsw_sp_port_max_mtu_get(struct mlxsw_sp_port *mlxsw_sp_port, int *p_max_mtu) mlxsw_sp_port_max_mtu_get() argument 339 mlxsw_sp_port_mtu_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mtu) mlxsw_sp_port_mtu_set() argument 352 mlxsw_sp_port_swid_set(struct mlxsw_sp_port *mlxsw_sp_port, u8 swid) mlxsw_sp_port_swid_set() argument 361 mlxsw_sp_port_vp_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp_port_vp_mode_set() argument 370 mlxsw_sp_port_vid_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, bool learn_enable) mlxsw_sp_port_vid_learning_set() argument 387 __mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) __mlxsw_sp_port_pvid_set() argument 397 mlxsw_sp_port_allow_untagged_set(struct mlxsw_sp_port *mlxsw_sp_port, bool allow) mlxsw_sp_port_allow_untagged_set() argument 407 mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) mlxsw_sp_port_pvid_set() argument 433 mlxsw_sp_port_system_port_mapping_set(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_system_port_mapping_set() argument 493 mlxsw_sp_port_module_map(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_module_map() argument 510 mlxsw_sp_port_module_unmap(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_module_unmap() argument 522 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_open() local 534 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_stop() local 543 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_xmit() local 599 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_set_mac_address() local 615 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_change_mtu() local 647 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_sw_stats64() local 699 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_stats_raw() local 789 struct mlxsw_sp_port *mlxsw_sp_port = update_stats_cache() local 816 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_stats64() local 821 __mlxsw_sp_port_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid_begin, u16 vid_end, bool is_member, bool untagged) __mlxsw_sp_port_vlan_set() argument 840 mlxsw_sp_port_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid_begin, u16 vid_end, bool is_member, bool untagged) mlxsw_sp_port_vlan_set() argument 860 mlxsw_sp_port_vlan_flush(struct mlxsw_sp_port *mlxsw_sp_port, bool flush_default) mlxsw_sp_port_vlan_flush() argument 884 mlxsw_sp_port_vlan_create(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) mlxsw_sp_port_vlan_create() argument 917 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_destroy() local 929 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_add_vid() local 943 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_kill_vid() local 960 mlxsw_sp_setup_tc_block(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f) mlxsw_sp_setup_tc_block() argument 978 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_setup_tc() local 1000 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_feature_hw_tc() local 1019 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_feature_loopback() local 1086 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_devlink_port() local 1093 mlxsw_sp_port_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct ifreq *ifr) mlxsw_sp_port_hwtstamp_set() argument 1113 mlxsw_sp_port_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, struct ifreq *ifr) mlxsw_sp_port_hwtstamp_get() argument 1130 mlxsw_sp_port_ptp_clear(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ptp_clear() argument 1140 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_ioctl() local 1171 mlxsw_sp_port_speed_by_width_set(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_speed_by_width_set() argument 1200 mlxsw_sp_port_speed_get(struct mlxsw_sp_port *mlxsw_sp_port, u32 *speed) mlxsw_sp_port_speed_get() argument 1221 mlxsw_sp_port_ets_set(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qeec_hr hr, u8 index, u8 next_index, bool dwrr, u8 dwrr_weight) mlxsw_sp_port_ets_set() argument 1236 mlxsw_sp_port_ets_maxrate_set(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qeec_hr hr, u8 index, u8 next_index, u32 maxrate, u8 burst_size) mlxsw_sp_port_ets_maxrate_set() argument 1251 mlxsw_sp_port_min_bw_set(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qeec_hr hr, u8 index, u8 next_index, u32 minrate) mlxsw_sp_port_min_bw_set() argument 1266 mlxsw_sp_port_prio_tc_set(struct mlxsw_sp_port *mlxsw_sp_port, u8 switch_prio, u8 tclass) mlxsw_sp_port_prio_tc_set() argument 1277 mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ets_init() argument 1363 mlxsw_sp_port_tc_mc_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp_port_tc_mc_mode_set() argument 1373 mlxsw_sp_port_overheat_init_val_set(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_overheat_init_val_set() argument 1395 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_port_create() local 1660 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; mlxsw_sp_port_remove() local 1685 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_cpu_port_create() local 1714 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_cpu_port_remove() local 1909 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_port_split() local 1991 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_port_unsplit() local 2041 mlxsw_sp_port_down_wipe_counters(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_down_wipe_counters() argument 2053 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_pude_event_func() local 2123 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; mlxsw_sp_rx_listener_no_mark_func() local 2168 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; mlxsw_sp_sample_receive() local 3370 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_lower_get() local 3393 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_port_lower_dev_hold() local 3403 mlxsw_sp_port_dev_put(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dev_put() argument 3409 mlxsw_sp_port_lag_uppers_cleanup(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *lag_dev) mlxsw_sp_port_lag_uppers_cleanup() argument 3443 mlxsw_sp_lag_col_port_add(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id, u8 port_index) mlxsw_sp_lag_col_port_add() argument 3454 mlxsw_sp_lag_col_port_remove(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_col_port_remove() argument 3465 mlxsw_sp_lag_col_port_enable(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_col_port_enable() argument 3476 mlxsw_sp_lag_col_port_disable(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_col_port_disable() argument 3550 mlxsw_sp_port_lag_join(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *lag_dev) mlxsw_sp_port_lag_join() argument 3595 mlxsw_sp_port_lag_leave(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *lag_dev) mlxsw_sp_port_lag_leave() argument 3629 mlxsw_sp_lag_dist_port_add(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_dist_port_add() argument 3640 mlxsw_sp_lag_dist_port_remove(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_dist_port_remove() argument 3652 mlxsw_sp_port_lag_col_dist_enable(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_lag_col_dist_enable() argument 3673 mlxsw_sp_port_lag_col_dist_disable(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_lag_col_dist_disable() argument 3694 mlxsw_sp_port_lag_changed(struct mlxsw_sp_port *mlxsw_sp_port, struct netdev_lag_lower_state_info *info) mlxsw_sp_port_lag_changed() argument 3703 mlxsw_sp_port_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp_port_stp_set() argument 3728 mlxsw_sp_port_ovs_join(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ovs_join() argument 3763 mlxsw_sp_port_ovs_leave(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ovs_leave() argument 3843 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_netdevice_port_upper_event() local 3956 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_netdevice_port_lower_event() local 4017 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_netdevice_port_vlan_event() local [all...] |
H A D | spectrum_qdisc.c | 31 int (*check_params)(struct mlxsw_sp_port *mlxsw_sp_port, 34 int (*replace)(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, 36 int (*destroy)(struct mlxsw_sp_port *mlxsw_sp_port, 38 int (*get_stats)(struct mlxsw_sp_port *mlxsw_sp_port, 41 int (*get_xstats)(struct mlxsw_sp_port *mlxsw_sp_port, 100 mlxsw_sp_qdisc_find(struct mlxsw_sp_port *mlxsw_sp_port, u32 parent, bool root_only) mlxsw_sp_qdisc_find() argument 121 mlxsw_sp_qdisc_find_by_handle(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle) mlxsw_sp_qdisc_find_by_handle() argument 140 mlxsw_sp_qdisc_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_destroy() argument 171 mlxsw_sp_qdisc_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct mlxsw_sp_qdisc_ops *ops, void *params) mlxsw_sp_qdisc_replace() argument 234 mlxsw_sp_qdisc_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_stats() argument 248 mlxsw_sp_qdisc_get_xstats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *xstats_ptr) mlxsw_sp_qdisc_get_xstats() argument 293 mlxsw_sp_qdisc_collect_tc_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, u64 *p_tx_bytes, u64 *p_tx_packets, u64 *p_drops, u64 *p_backlog) mlxsw_sp_qdisc_collect_tc_stats() argument 339 mlxsw_sp_qdisc_get_tc_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_tc_stats() argument 357 mlxsw_sp_tclass_congestion_enable(struct mlxsw_sp_port *mlxsw_sp_port, int tclass_num, u32 min, u32 max, u32 probability, bool is_wred, bool is_ecn) mlxsw_sp_tclass_congestion_enable() argument 383 mlxsw_sp_tclass_congestion_disable(struct mlxsw_sp_port *mlxsw_sp_port, int tclass_num) mlxsw_sp_tclass_congestion_disable() argument 395 mlxsw_sp_setup_tc_qdisc_red_clean_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_setup_tc_qdisc_red_clean_stats() argument 421 mlxsw_sp_qdisc_red_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_red_destroy() argument 436 mlxsw_sp_qdisc_red_check_params(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_red_check_params() argument 464 mlxsw_sp_qdisc_red_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_red_replace() argument 487 mlxsw_sp_qdisc_leaf_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct gnet_stats_queue *qstats) mlxsw_sp_qdisc_leaf_unoffload() argument 500 mlxsw_sp_qdisc_red_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_red_unoffload() argument 510 mlxsw_sp_qdisc_get_red_xstats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *xstats_ptr) mlxsw_sp_qdisc_get_red_xstats() argument 535 mlxsw_sp_qdisc_get_red_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_red_stats() argument 569 mlxsw_sp_setup_tc_red(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_red_qopt_offload *p) mlxsw_sp_setup_tc_red() argument 603 mlxsw_sp_setup_tc_qdisc_leaf_clean_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_setup_tc_qdisc_leaf_clean_stats() argument 622 mlxsw_sp_qdisc_tbf_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_tbf_destroy() argument 639 mlxsw_sp_qdisc_tbf_bs(struct mlxsw_sp_port *mlxsw_sp_port, u32 max_size, u8 *p_burst_size) mlxsw_sp_qdisc_tbf_bs() argument 680 mlxsw_sp_qdisc_tbf_check_params(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_tbf_check_params() argument 713 mlxsw_sp_qdisc_tbf_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_tbf_replace() argument 742 mlxsw_sp_qdisc_tbf_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_tbf_unoffload() argument 752 mlxsw_sp_qdisc_get_tbf_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_tbf_stats() argument 771 mlxsw_sp_setup_tc_tbf(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_tbf_qopt_offload *p) mlxsw_sp_setup_tc_tbf() argument 802 mlxsw_sp_qdisc_fifo_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_fifo_destroy() argument 815 mlxsw_sp_qdisc_fifo_check_params(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_fifo_check_params() argument 823 mlxsw_sp_qdisc_fifo_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_fifo_replace() argument 831 mlxsw_sp_qdisc_get_fifo_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_fifo_stats() argument 849 mlxsw_sp_setup_tc_fifo(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_fifo_qopt_offload *p) mlxsw_sp_setup_tc_fifo() argument 914 __mlxsw_sp_qdisc_ets_destroy(struct mlxsw_sp_port *mlxsw_sp_port) __mlxsw_sp_qdisc_ets_destroy() argument 934 mlxsw_sp_qdisc_prio_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_prio_destroy() argument 950 mlxsw_sp_qdisc_prio_check_params(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_prio_check_params() argument 960 __mlxsw_sp_qdisc_ets_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, unsigned int nbands, const unsigned int *quanta, const unsigned int *weights, const u8 *priomap) __mlxsw_sp_qdisc_ets_replace() argument 1030 mlxsw_sp_qdisc_prio_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_prio_replace() argument 1042 __mlxsw_sp_qdisc_ets_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct gnet_stats_queue *qstats) __mlxsw_sp_qdisc_ets_unoffload() argument 1054 mlxsw_sp_qdisc_prio_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_prio_unoffload() argument 1065 mlxsw_sp_qdisc_get_prio_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_prio_stats() argument 1091 mlxsw_sp_setup_tc_qdisc_prio_clean_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_setup_tc_qdisc_prio_clean_stats() argument 1126 mlxsw_sp_qdisc_ets_check_params(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_ets_check_params() argument 1136 mlxsw_sp_qdisc_ets_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_ets_replace() argument 1147 mlxsw_sp_qdisc_ets_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_ets_unoffload() argument 1158 mlxsw_sp_qdisc_ets_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_ets_destroy() argument 1200 __mlxsw_sp_qdisc_ets_graft(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, u8 band, u32 child_handle) __mlxsw_sp_qdisc_ets_graft() argument 1233 mlxsw_sp_qdisc_prio_graft(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_prio_qopt_offload_graft_params *p) mlxsw_sp_qdisc_prio_graft() argument 1241 mlxsw_sp_setup_tc_prio(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_prio_qopt_offload *p) mlxsw_sp_setup_tc_prio() argument 1274 mlxsw_sp_setup_tc_ets(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_ets_qopt_offload *p) mlxsw_sp_setup_tc_ets() argument 1316 struct mlxsw_sp_port *mlxsw_sp_port; global() member 1330 struct mlxsw_sp_port *mlxsw_sp_port = qevent_binding->mlxsw_sp_port; mlxsw_sp_qevent_span_configure() local 1371 struct mlxsw_sp_port *mlxsw_sp_port = qevent_binding->mlxsw_sp_port; mlxsw_sp_qevent_span_deconfigure() local 1669 mlxsw_sp_qevent_binding_create(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, int tclass_num, enum mlxsw_sp_span_trigger span_trigger) mlxsw_sp_qevent_binding_create() argument 1692 mlxsw_sp_qevent_binding_lookup(struct mlxsw_sp_qevent_block *block, struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, enum mlxsw_sp_span_trigger span_trigger) mlxsw_sp_qevent_binding_lookup() argument 1707 mlxsw_sp_setup_tc_block_qevent_bind(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, enum mlxsw_sp_span_trigger span_trigger) mlxsw_sp_setup_tc_block_qevent_bind() argument 1779 mlxsw_sp_setup_tc_block_qevent_unbind(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, enum mlxsw_sp_span_trigger span_trigger) mlxsw_sp_setup_tc_block_qevent_unbind() argument 1808 mlxsw_sp_setup_tc_block_qevent(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, enum mlxsw_sp_span_trigger span_trigger) mlxsw_sp_setup_tc_block_qevent() argument 1825 mlxsw_sp_setup_tc_block_qevent_early_drop(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f) mlxsw_sp_setup_tc_block_qevent_early_drop() argument 1831 mlxsw_sp_tc_qdisc_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_tc_qdisc_init() argument 1849 mlxsw_sp_tc_qdisc_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_tc_qdisc_fini() argument [all...] |
H A D | spectrum_matchall.c | 26 mlxsw_sp_mall_port_mirror_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add() argument 29 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_add() 36 netdev_err(mlxsw_sp_port->dev, "Could not find requested device\n"); in mlxsw_sp_mall_port_mirror_add() 46 err = mlxsw_sp_span_analyzed_port_get(mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add() 54 err = mlxsw_sp_span_agent_bind(mlxsw_sp, trigger, mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add() 62 mlxsw_sp_span_analyzed_port_put(mlxsw_sp_port, mall_entry->ingress); in mlxsw_sp_mall_port_mirror_add() 69 mlxsw_sp_mall_port_mirror_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_del() argument 72 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port in mlxsw_sp_mall_port_mirror_del() 84 mlxsw_sp_mall_port_sample_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable, u32 rate) mlxsw_sp_mall_port_sample_set() argument 95 mlxsw_sp_mall_port_sample_add(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry) mlxsw_sp_mall_port_sample_add() argument 118 mlxsw_sp_mall_port_sample_del(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_mall_port_sample_del() argument 128 mlxsw_sp_mall_port_rule_add(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry) mlxsw_sp_mall_port_rule_add() argument 143 mlxsw_sp_mall_port_rule_del(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry) mlxsw_sp_mall_port_rule_del() argument 316 mlxsw_sp_mall_port_bind(struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_mall_port_bind() argument 336 mlxsw_sp_mall_port_unbind(struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_mall_port_unbind() argument [all...] |
H A D | spectrum_flow.c | 35 struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) in mlxsw_sp_flow_block_lookup() 40 if (binding->mlxsw_sp_port == mlxsw_sp_port && in mlxsw_sp_flow_block_lookup() 54 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_flow_block_bind() 61 if (WARN_ON(mlxsw_sp_flow_block_lookup(block, mlxsw_sp_port, ingress))) in mlxsw_sp_flow_block_bind() 74 err = mlxsw_sp_mall_port_bind(block, mlxsw_sp_port); in mlxsw_sp_flow_block_bind() 83 binding->mlxsw_sp_port = mlxsw_sp_port; in mlxsw_sp_flow_block_bind() 34 mlxsw_sp_flow_block_lookup(struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) mlxsw_sp_flow_block_lookup() argument 52 mlxsw_sp_flow_block_bind(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port, bool ingress, struct netlink_ext_ack *extack) mlxsw_sp_flow_block_bind() argument 107 mlxsw_sp_flow_block_unbind(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) mlxsw_sp_flow_block_unbind() argument 201 mlxsw_sp_setup_tc_block_bind(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, bool ingress) mlxsw_sp_setup_tc_block_bind() argument 252 mlxsw_sp_setup_tc_block_unbind(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, bool ingress) mlxsw_sp_setup_tc_block_unbind() argument 280 mlxsw_sp_setup_tc_block_clsact(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, bool ingress) mlxsw_sp_setup_tc_block_clsact() argument [all...] |
H A D | spectrum.h | 70 struct mlxsw_sp_port; 144 struct mlxsw_sp_port **ports; 207 int (*hwtstamp_get)(struct mlxsw_sp_port *mlxsw_sp_port, 209 int (*hwtstamp_set)(struct mlxsw_sp_port *mlxsw_sp_port, 216 void (*get_stats)(struct mlxsw_sp_port *mlxsw_sp_port, 247 struct mlxsw_sp_port *mlxsw_sp_port; member 274 struct mlxsw_sp_port { global() struct 403 mlxsw_sp_port_is_pause_en(const struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_is_pause_en() argument 411 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_port_lagged_get() local 421 mlxsw_sp_port_vlan_find_by_vid(const struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) mlxsw_sp_port_vlan_find_by_vid() argument 622 mlxsw_sp_port_dcb_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_init() argument 626 mlxsw_sp_port_dcb_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_fini() argument 783 struct mlxsw_sp_port *mlxsw_sp_port; global() member [all...] |
H A D | spectrum_ptp.h | 11 struct mlxsw_sp_port; 51 int mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, 54 int mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, 64 void mlxsw_sp1_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, 110 mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_ptp_hwtstamp_get() argument 117 mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_por argument 142 mlxsw_sp1_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, u64 *data, int data_index) mlxsw_sp1_get_stats() argument 181 mlxsw_sp2_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp2_ptp_hwtstamp_get() argument 188 mlxsw_sp2_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp2_ptp_hwtstamp_set() argument 213 mlxsw_sp2_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, u64 *data, int data_index) mlxsw_sp2_get_stats() argument [all...] |
H A D | spectrum_switchdev.c | 82 struct mlxsw_sp_port *mlxsw_sp_port, 86 struct mlxsw_sp_port *mlxsw_sp_port); 106 mlxsw_sp_bridge_port_mdb_flush(struct mlxsw_sp_port *mlxsw_sp_port, 110 mlxsw_sp_bridge_mdb_mc_enable_sync(struct mlxsw_sp_port *mlxsw_sp_port, 115 mlxsw_sp_port_mrouter_update_mdb(struct mlxsw_sp_port *mlxsw_sp_port, 330 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_bridge_port_create() local 408 mlxsw_sp_port_vlan_find_by_bridge(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_bridge_device * bridge_device, u16 vid) mlxsw_sp_port_vlan_find_by_bridge() argument 432 mlxsw_sp_port_vlan_find_by_fid(struct mlxsw_sp_port *mlxsw_sp_port, u16 fid_index) mlxsw_sp_port_vlan_find_by_fid() argument 505 mlxsw_sp_port_bridge_vlan_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_vlan *bridge_vlan, u8 state) mlxsw_sp_port_bridge_vlan_stp_set() argument 522 mlxsw_sp_port_attr_stp_state_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_trans *trans, struct net_device *orig_dev, u8 state) mlxsw_sp_port_attr_stp_state_set() argument 562 mlxsw_sp_port_bridge_vlan_flood_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_vlan *bridge_vlan, enum mlxsw_sp_flood_type packet_type, bool member) mlxsw_sp_port_bridge_vlan_flood_set() argument 583 mlxsw_sp_bridge_port_flood_table_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, enum mlxsw_sp_flood_type packet_type, bool member) mlxsw_sp_bridge_port_flood_table_set() argument 611 mlxsw_sp_port_bridge_vlan_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_vlan *bridge_vlan, bool set) mlxsw_sp_port_bridge_vlan_learning_set() argument 629 mlxsw_sp_bridge_port_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, bool set) mlxsw_sp_bridge_port_learning_set() argument 653 mlxsw_sp_port_attr_br_pre_flags_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_trans *trans, unsigned long brport_flags) mlxsw_sp_port_attr_br_pre_flags_set() argument 664 mlxsw_sp_port_attr_br_flags_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_trans *trans, struct net_device *orig_dev, unsigned long brport_flags) mlxsw_sp_port_attr_br_flags_set() argument 719 mlxsw_sp_port_attr_br_ageing_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_trans *trans, unsigned long ageing_clock_t) mlxsw_sp_port_attr_br_ageing_set() argument 738 mlxsw_sp_port_attr_br_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_trans *trans, struct net_device *orig_dev, bool vlan_enabled) mlxsw_sp_port_attr_br_vlan_set() argument 760 mlxsw_sp_port_attr_mrouter_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_trans *trans, struct net_device *orig_dev, bool is_port_mrouter) mlxsw_sp_port_attr_mrouter_set() argument 801 mlxsw_sp_port_mc_disabled_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_trans *trans, struct net_device *orig_dev, bool mc_disabled) mlxsw_sp_port_mc_disabled_set() argument 872 mlxsw_sp_port_attr_br_mrouter_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_trans *trans, struct net_device *orig_dev, bool is_mrouter) mlxsw_sp_port_attr_br_mrouter_set() argument 901 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_attr_set() local 960 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_fid_join() local 1009 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_fid_leave() local 1023 mlxsw_sp_port_pvid_determine(const struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, bool is_pvid) mlxsw_sp_port_pvid_determine() argument 1039 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_bridge_join() local 1090 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_bridge_leave() local 1124 mlxsw_sp_bridge_port_vlan_add(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, u16 vid, bool is_untagged, bool is_pvid, struct netlink_ext_ack *extack) mlxsw_sp_bridge_port_vlan_add() argument 1204 mlxsw_sp_port_vlans_add(struct mlxsw_sp_port *mlxsw_sp_port, const struct switchdev_obj_port_vlan *vlan, struct switchdev_trans *trans, struct netlink_ext_ack *extack) mlxsw_sp_port_vlans_add() argument 1407 mlxsw_sp_port_fdb_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_notifier_fdb_info *fdb_info, bool adding) mlxsw_sp_port_fdb_set() argument 1501 mlxsw_sp_port_smid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mid_idx, bool add) mlxsw_sp_port_smid_set() argument 1537 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_bridge_port_get_ports_bitmap() local 1665 mlxsw_sp_port_remove_from_mid(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mid *mid) mlxsw_sp_port_remove_from_mid() argument 1682 mlxsw_sp_port_mdb_add(struct mlxsw_sp_port *mlxsw_sp_port, const struct switchdev_obj_port_mdb *mdb, struct switchdev_trans *trans) mlxsw_sp_port_mdb_add() argument 1743 mlxsw_sp_bridge_mdb_mc_enable_sync(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_device *bridge_device) mlxsw_sp_bridge_mdb_mc_enable_sync() argument 1763 mlxsw_sp_port_mrouter_update_mdb(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, bool add) mlxsw_sp_port_mrouter_update_mdb() argument 1783 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_obj_add() local 1816 mlxsw_sp_bridge_port_vlan_del(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, u16 vid) mlxsw_sp_bridge_port_vlan_del() argument 1832 mlxsw_sp_port_vlans_del(struct mlxsw_sp_port *mlxsw_sp_port, const struct switchdev_obj_port_vlan *vlan) mlxsw_sp_port_vlans_del() argument 1857 __mlxsw_sp_port_mdb_del(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_mid *mid) __mlxsw_sp_port_mdb_del() argument 1878 mlxsw_sp_port_mdb_del(struct mlxsw_sp_port *mlxsw_sp_port, const struct switchdev_obj_port_mdb *mdb) mlxsw_sp_port_mdb_del() argument 1913 mlxsw_sp_bridge_port_mdb_flush(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port) mlxsw_sp_bridge_port_mdb_flush() argument 1935 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_obj_del() local 1960 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_lag_rep_port() local 1975 mlxsw_sp_bridge_8021q_port_join(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port, struct netlink_ext_ack *extack) mlxsw_sp_bridge_8021q_port_join() argument 1993 mlxsw_sp_bridge_8021q_port_leave(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_bridge_8021q_port_leave() argument 2108 mlxsw_sp_port_is_br_member(const struct mlxsw_sp_port *mlxsw_sp_port, const struct net_device *br_dev) mlxsw_sp_port_is_br_member() argument 2125 mlxsw_sp_bridge_8021d_port_join(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port, struct netlink_ext_ack *extack) mlxsw_sp_bridge_8021d_port_join() argument 2153 mlxsw_sp_bridge_8021d_port_leave(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_bridge_8021d_port_leave() argument 2246 mlxsw_sp_port_bridge_join(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *brport_dev, struct net_device *br_dev, struct netlink_ext_ack *extack) mlxsw_sp_port_bridge_join() argument 2274 mlxsw_sp_port_bridge_leave(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *brport_dev, struct net_device *br_dev) mlxsw_sp_port_bridge_leave() argument 2414 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_fdb_notify_mac_process() local 2478 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_fdb_notify_mac_lag_process() local 2849 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_switchdev_bridge_fdb_event_work() local [all...] |
H A D | spectrum_ethtool.c | 14 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_drvinfo() local 15 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_get_drvinfo() 139 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_link_ext_state() local 147 mlxsw_reg_pddr_pack(pddr_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_get_link_ext_state() 153 err = mlxsw_reg_query(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pddr), in mlxsw_sp_port_get_link_ext_state() 177 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_pauseparam() local 179 pause->rx_pause = mlxsw_sp_port in mlxsw_sp_port_get_pauseparam() 183 mlxsw_sp_port_pause_set(struct mlxsw_sp_port *mlxsw_sp_port, struct ethtool_pauseparam *pause) mlxsw_sp_port_pause_set() argument 204 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_set_pauseparam() local 562 mlxsw_sp_port_get_transceiver_overheat_stats(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_get_transceiver_overheat_stats() argument 624 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_strings() local 686 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_set_phys_id() local 754 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); __mlxsw_sp_port_get_stats() local 778 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); __mlxsw_sp_port_get_env_stats() local 788 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_stats() local 848 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_sset_count() local 921 mlxsw_sp_port_ptys_query(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_eth_proto_cap, u32 *p_eth_proto_admin, u32 *p_eth_proto_oper, u8 *p_connector_type) mlxsw_sp_port_ptys_query() argument 948 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_link_ksettings() local 981 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_set_link_ksettings() local 1031 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(netdev); mlxsw_sp_get_module_info() local 1045 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(netdev); mlxsw_sp_get_module_eeprom() local 1059 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(netdev); mlxsw_sp_get_ts_info() local 1246 mlxsw_sp1_ptys_max_speed(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_max_speed) mlxsw_sp1_ptys_max_speed() argument 1669 mlxsw_sp2_ptys_max_speed(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_max_speed) mlxsw_sp2_ptys_max_speed() argument [all...] |
H A D | spectrum_span.h | 14 struct mlxsw_sp_port; 17 struct mlxsw_sp_port *dest_port; /* NULL for unoffloaded SPAN. */ 84 int mlxsw_sp_span_port_mtu_update(struct mlxsw_sp_port *port, u16 mtu); 90 int mlxsw_sp_span_analyzed_port_get(struct mlxsw_sp_port *mlxsw_sp_port, 92 void mlxsw_sp_span_analyzed_port_put(struct mlxsw_sp_port *mlxsw_sp_port, 96 struct mlxsw_sp_port *mlxsw_sp_port, 101 struct mlxsw_sp_port *mlxsw_sp_por [all...] |
H A D | spectrum_buffers.c | 138 static u32 mlxsw_sp_port_headroom_8x_adjust(const struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_headroom_8x_adjust() argument 145 return mlxsw_sp_port->mapping.width == 8 ? 2 * size_cells : size_cells; in mlxsw_sp_port_headroom_8x_adjust() 383 void mlxsw_sp_hdroom_bufs_reset_sizes(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_hdroom_bufs_reset_sizes() argument 386 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_hdroom_bufs_reset_sizes() 391 reserve_cells = mlxsw_sp_hdroom_int_buf_size_get(mlxsw_sp, mlxsw_sp_port->max_speed, in mlxsw_sp_hdroom_bufs_reset_sizes() 392 mlxsw_sp_port->max_mtu); in mlxsw_sp_hdroom_bufs_reset_sizes() 393 reserve_cells = mlxsw_sp_port_headroom_8x_adjust(mlxsw_sp_port, reserve_cells); in mlxsw_sp_hdroom_bufs_reset_sizes() 418 thres_cells = mlxsw_sp_port_headroom_8x_adjust(mlxsw_sp_port, thres_cell in mlxsw_sp_hdroom_bufs_reset_sizes() 435 mlxsw_sp_hdroom_configure_buffers(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_buffers() argument 467 mlxsw_sp_hdroom_configure_priomap(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_priomap() argument 491 mlxsw_sp_hdroom_configure_int_buf(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_int_buf() argument 524 __mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) __mlxsw_sp_hdroom_configure() argument 579 mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_configure() argument 585 mlxsw_sp_port_headroom_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_headroom_init() argument 963 mlxsw_sp_port_sb_cms_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_sb_cms_init() argument 1068 mlxsw_sp_port_sb_pms_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_sb_pms_init() argument 1296 mlxsw_sp_port_buffers_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_buffers_init() argument 1323 mlxsw_sp_port_buffers_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_buffers_fini() argument 1416 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_port_pool_get() local 1432 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_port_pool_set() local 1458 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_tc_pool_bind_get() local 1479 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_tc_pool_bind_set() local 1715 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_occ_port_pool_get() local 1732 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_occ_tc_port_bind_get() local [all...] |
H A D | spectrum_ptp.c | 413 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_packet_finish() local 419 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_packet_finish() 420 if (!(mlxsw_sp_port && (!skb->dev || skb->dev == mlxsw_sp_port->dev))) { in mlxsw_sp1_ptp_packet_finish() 530 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_packet() local 535 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_got_packet() 536 if (!mlxsw_sp_port) in mlxsw_sp1_ptp_got_packet() 539 types = ingress ? mlxsw_sp_port in mlxsw_sp1_ptp_got_packet() 572 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp1_ptp_got_timestamp() local 619 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp1_ptp_ht_gc_collect() local 884 mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp1_ptp_hwtstamp_get() argument 952 mlxsw_sp1_ptp_mtpppc_update(struct mlxsw_sp_port *mlxsw_sp_port, u16 ing_types, u16 egr_types) mlxsw_sp1_ptp_mtpppc_update() argument 991 mlxsw_sp1_ptp_hwtstamp_enabled(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp1_ptp_hwtstamp_enabled() argument 997 mlxsw_sp1_ptp_port_shaper_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp1_ptp_port_shaper_set() argument 1006 mlxsw_sp1_ptp_port_shaper_check(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp1_ptp_port_shaper_check() argument 1032 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp1_ptp_shaper_work() local 1046 mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp1_ptp_hwtstamp_set() argument 1135 mlxsw_sp1_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, u64 *data, int data_index) mlxsw_sp1_get_stats() argument [all...] |
H A D | spectrum_span.c | 64 struct mlxsw_sp_port *mlxsw_sp_port); 66 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc); 68 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc); 180 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_phys_configure() 199 struct mlxsw_sp_port *dest_port = span_entry->parms.dest_port; in mlxsw_sp_span_entry_deconfigure_common() 303 struct mlxsw_sp_port *port; in mlxsw_sp_span_entry_bridge() 479 struct mlxsw_sp_port *dest_por in mlxsw_sp_span_entry_gretap4_configure() 974 mlxsw_sp_span_port_buffer_update(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp_span_port_buffer_update() argument 986 mlxsw_sp_span_port_buffer_enable(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_span_port_buffer_enable() argument 991 mlxsw_sp_span_port_buffer_disable(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_span_port_buffer_disable() argument 1111 mlxsw_sp_span_analyzed_port_create(struct mlxsw_sp_span *span, struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) mlxsw_sp_span_analyzed_port_create() argument 1145 mlxsw_sp_span_analyzed_port_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_span_analyzed_port * analyzed_port) mlxsw_sp_span_analyzed_port_destroy() argument 1159 mlxsw_sp_span_analyzed_port_get(struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) mlxsw_sp_span_analyzed_port_get() argument 1187 mlxsw_sp_span_analyzed_port_put(struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) mlxsw_sp_span_analyzed_port_put() argument 1252 mlxsw_sp_span_trigger_port_matches(struct mlxsw_sp_span_trigger_entry * trigger_entry, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_span_trigger_port_matches() argument 1262 mlxsw_sp_span_trigger_port_enable(struct mlxsw_sp_span_trigger_entry * trigger_entry, struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) mlxsw_sp_span_trigger_port_enable() argument 1271 mlxsw_sp_span_trigger_port_disable(struct mlxsw_sp_span_trigger_entry * trigger_entry, struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) mlxsw_sp_span_trigger_port_disable() argument 1300 mlxsw_sp1_span_trigger_global_matches(struct mlxsw_sp_span_trigger_entry * trigger_entry, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp1_span_trigger_global_matches() argument 1310 mlxsw_sp1_span_trigger_global_enable(struct mlxsw_sp_span_trigger_entry * trigger_entry, struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) mlxsw_sp1_span_trigger_global_enable() argument 1319 mlxsw_sp1_span_trigger_global_disable(struct mlxsw_sp_span_trigger_entry * trigger_entry, struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) mlxsw_sp1_span_trigger_global_disable() argument 1380 mlxsw_sp2_span_trigger_global_matches(struct mlxsw_sp_span_trigger_entry * trigger_entry, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp2_span_trigger_global_matches() argument 1389 __mlxsw_sp2_span_trigger_global_enable(struct mlxsw_sp_span_trigger_entry * trigger_entry, struct mlxsw_sp_port *mlxsw_sp_port, u8 tc, bool enable) __mlxsw_sp2_span_trigger_global_enable() argument 1427 mlxsw_sp2_span_trigger_global_enable(struct mlxsw_sp_span_trigger_entry * trigger_entry, struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) mlxsw_sp2_span_trigger_global_enable() argument 1437 mlxsw_sp2_span_trigger_global_disable(struct mlxsw_sp_span_trigger_entry * trigger_entry, struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) mlxsw_sp2_span_trigger_global_disable() argument 1487 mlxsw_sp_span_trigger_entry_create(struct mlxsw_sp_span *span, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_span_trigger_parms *parms) mlxsw_sp_span_trigger_entry_create() argument 1532 mlxsw_sp_span_trigger_entry_find(struct mlxsw_sp_span *span, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_span_trigger_entry_find() argument 1547 mlxsw_sp_span_agent_bind(struct mlxsw_sp *mlxsw_sp, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_span_trigger_parms *parms) mlxsw_sp_span_agent_bind() argument 1581 mlxsw_sp_span_agent_unbind(struct mlxsw_sp *mlxsw_sp, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_span_trigger_parms *parms) mlxsw_sp_span_agent_unbind() argument 1606 mlxsw_sp_span_trigger_enable(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_sp_span_trigger trigger, u8 tc) mlxsw_sp_span_trigger_enable() argument 1623 mlxsw_sp_span_trigger_disable(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_sp_span_trigger trigger, u8 tc) mlxsw_sp_span_trigger_disable() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_dcb.c | 26 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_dcbnl_ieee_getets() local 28 memcpy(ets, mlxsw_sp_port->dcb.ets, sizeof(*ets)); in mlxsw_sp_dcbnl_ieee_getets() 33 static int mlxsw_sp_port_ets_validate(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_ets_validate() argument 36 struct net_device *dev = mlxsw_sp_port->dev; in mlxsw_sp_port_ets_validate() 67 static int mlxsw_sp_port_headroom_ets_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_headroom_ets_set() argument 70 struct net_device *dev = mlxsw_sp_port->dev; in mlxsw_sp_port_headroom_ets_set() 75 hdroom = *mlxsw_sp_port in mlxsw_sp_port_headroom_ets_set() 91 __mlxsw_sp_dcbnl_ieee_setets(struct mlxsw_sp_port *mlxsw_sp_port, struct ieee_ets *ets) __mlxsw_sp_dcbnl_ieee_setets() argument 151 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_setets() local 203 mlxsw_sp_port_dcb_app_default_prio(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_app_default_prio() argument 216 mlxsw_sp_port_dcb_app_dscp_prio_map(struct mlxsw_sp_port *mlxsw_sp_port, u8 default_prio, struct dcb_ieee_app_dscp_map *map) mlxsw_sp_port_dcb_app_dscp_prio_map() argument 232 mlxsw_sp_port_dcb_app_prio_dscp_map(struct mlxsw_sp_port *mlxsw_sp_port, struct dcb_ieee_app_prio_map *map) mlxsw_sp_port_dcb_app_prio_dscp_map() argument 250 mlxsw_sp_port_dcb_app_update_qpts(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qpts_trust_state ts) mlxsw_sp_port_dcb_app_update_qpts() argument 261 mlxsw_sp_port_dcb_app_update_qrwe(struct mlxsw_sp_port *mlxsw_sp_port, bool rewrite_dscp) mlxsw_sp_port_dcb_app_update_qrwe() argument 273 mlxsw_sp_port_dcb_toggle_trust(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qpts_trust_state ts) mlxsw_sp_port_dcb_toggle_trust() argument 300 mlxsw_sp_port_dcb_app_update_qpdp(struct mlxsw_sp_port *mlxsw_sp_port, u8 default_prio) mlxsw_sp_port_dcb_app_update_qpdp() argument 311 mlxsw_sp_port_dcb_app_update_qpdpm(struct mlxsw_sp_port *mlxsw_sp_port, struct dcb_ieee_app_dscp_map *map) mlxsw_sp_port_dcb_app_update_qpdpm() argument 325 mlxsw_sp_port_dcb_app_update_qpdsm(struct mlxsw_sp_port *mlxsw_sp_port, struct dcb_ieee_app_prio_map *map) mlxsw_sp_port_dcb_app_update_qpdsm() argument 338 mlxsw_sp_port_dcb_app_update(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_app_update() argument 398 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_setapp() local 423 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_delapp() local 439 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_getmaxrate() local 449 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_setmaxrate() local 477 mlxsw_sp_port_pfc_cnt_get(struct mlxsw_sp_port *mlxsw_sp_port, u8 prio) mlxsw_sp_port_pfc_cnt_get() argument 500 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_getpfc() local 517 mlxsw_sp_port_pfc_set(struct mlxsw_sp_port *mlxsw_sp_port, struct ieee_pfc *pfc) mlxsw_sp_port_pfc_set() argument 534 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_ieee_setpfc() local 584 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_getbuffer() local 611 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_dcbnl_setbuffer() local 655 mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ets_init() argument 667 mlxsw_sp_port_ets_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ets_fini() argument 672 mlxsw_sp_port_maxrate_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_maxrate_init() argument 687 mlxsw_sp_port_maxrate_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_maxrate_fini() argument 692 mlxsw_sp_port_pfc_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_pfc_init() argument 704 mlxsw_sp_port_pfc_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_pfc_fini() argument 709 mlxsw_sp_port_dcb_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_init() argument 735 mlxsw_sp_port_dcb_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_fini() argument [all...] |
H A D | spectrum_qdisc.c | 31 int (*check_params)(struct mlxsw_sp_port *mlxsw_sp_port, 33 int (*replace)(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, 35 int (*destroy)(struct mlxsw_sp_port *mlxsw_sp_port, 37 int (*get_stats)(struct mlxsw_sp_port *mlxsw_sp_port, 40 int (*get_xstats)(struct mlxsw_sp_port *mlxsw_sp_port, 160 mlxsw_sp_qdisc_find(struct mlxsw_sp_port *mlxsw_sp_port, u32 parent) mlxsw_sp_qdisc_find() argument 183 mlxsw_sp_qdisc_find_by_handle(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle) mlxsw_sp_qdisc_find_by_handle() argument 203 mlxsw_sp_qdisc_get_prio_bitmap(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_get_prio_bitmap() argument 217 mlxsw_sp_qdisc_get_tclass_num(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_get_tclass_num() argument 230 mlxsw_sp_qdisc_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_destroy() argument 344 mlxsw_sp_qdisc_tree_validate(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_qdisc_tree_validate() argument 353 mlxsw_sp_qdisc_create(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct mlxsw_sp_qdisc_ops *ops, void *params) mlxsw_sp_qdisc_create() argument 417 mlxsw_sp_qdisc_change(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_change() argument 452 mlxsw_sp_qdisc_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct mlxsw_sp_qdisc_ops *ops, void *params) mlxsw_sp_qdisc_replace() argument 473 mlxsw_sp_qdisc_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_stats() argument 487 mlxsw_sp_qdisc_get_xstats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *xstats_ptr) mlxsw_sp_qdisc_get_xstats() argument 532 mlxsw_sp_qdisc_collect_tc_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, u64 *p_tx_bytes, u64 *p_tx_packets, u64 *p_drops, u64 *p_backlog) mlxsw_sp_qdisc_collect_tc_stats() argument 582 mlxsw_sp_qdisc_get_tc_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_tc_stats() argument 600 mlxsw_sp_tclass_congestion_enable(struct mlxsw_sp_port *mlxsw_sp_port, int tclass_num, u32 min, u32 max, u32 probability, bool is_wred, bool is_ecn) mlxsw_sp_tclass_congestion_enable() argument 626 mlxsw_sp_tclass_congestion_disable(struct mlxsw_sp_port *mlxsw_sp_port, int tclass_num) mlxsw_sp_tclass_congestion_disable() argument 638 mlxsw_sp_setup_tc_qdisc_red_clean_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_setup_tc_qdisc_red_clean_stats() argument 669 mlxsw_sp_qdisc_red_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_red_destroy() argument 679 mlxsw_sp_qdisc_red_check_params(struct mlxsw_sp_port *mlxsw_sp_port, void *params) mlxsw_sp_qdisc_red_check_params() argument 714 mlxsw_sp_qdisc_red_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_red_replace() argument 747 mlxsw_sp_qdisc_leaf_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct gnet_stats_queue *qstats) mlxsw_sp_qdisc_leaf_unoffload() argument 760 mlxsw_sp_qdisc_red_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_red_unoffload() argument 770 mlxsw_sp_qdisc_get_red_xstats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *xstats_ptr) mlxsw_sp_qdisc_get_red_xstats() argument 800 mlxsw_sp_qdisc_get_red_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_red_stats() argument 851 __mlxsw_sp_setup_tc_red(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_red_qopt_offload *p) __mlxsw_sp_setup_tc_red() argument 886 mlxsw_sp_setup_tc_red(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_red_qopt_offload *p) mlxsw_sp_setup_tc_red() argument 899 mlxsw_sp_setup_tc_qdisc_leaf_clean_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_setup_tc_qdisc_leaf_clean_stats() argument 918 mlxsw_sp_qdisc_tbf_hr(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_tbf_hr() argument 936 mlxsw_sp_qdisc_tbf_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_tbf_destroy() argument 949 mlxsw_sp_qdisc_tbf_bs(struct mlxsw_sp_port *mlxsw_sp_port, u32 max_size, u8 *p_burst_size) mlxsw_sp_qdisc_tbf_bs() argument 990 mlxsw_sp_qdisc_tbf_check_params(struct mlxsw_sp_port *mlxsw_sp_port, void *params) mlxsw_sp_qdisc_tbf_check_params() argument 1022 mlxsw_sp_qdisc_tbf_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_tbf_replace() argument 1053 mlxsw_sp_qdisc_tbf_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_tbf_unoffload() argument 1063 mlxsw_sp_qdisc_get_tbf_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_tbf_stats() argument 1084 __mlxsw_sp_setup_tc_tbf(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_tbf_qopt_offload *p) __mlxsw_sp_setup_tc_tbf() argument 1116 mlxsw_sp_setup_tc_tbf(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_tbf_qopt_offload *p) mlxsw_sp_setup_tc_tbf() argument 1129 mlxsw_sp_qdisc_fifo_check_params(struct mlxsw_sp_port *mlxsw_sp_port, void *params) mlxsw_sp_qdisc_fifo_check_params() argument 1136 mlxsw_sp_qdisc_fifo_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_fifo_replace() argument 1144 mlxsw_sp_qdisc_get_fifo_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_fifo_stats() argument 1162 mlxsw_sp_qdisc_future_fifo_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, unsigned int band, struct mlxsw_sp_qdisc *child_qdisc) mlxsw_sp_qdisc_future_fifo_replace() argument 1178 mlxsw_sp_qdisc_future_fifos_init(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle) mlxsw_sp_qdisc_future_fifos_init() argument 1187 __mlxsw_sp_setup_tc_fifo(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_fifo_qopt_offload *p) __mlxsw_sp_setup_tc_fifo() argument 1239 mlxsw_sp_setup_tc_fifo(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_fifo_qopt_offload *p) mlxsw_sp_setup_tc_fifo() argument 1251 __mlxsw_sp_qdisc_ets_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) __mlxsw_sp_qdisc_ets_destroy() argument 1270 mlxsw_sp_qdisc_prio_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_prio_destroy() argument 1286 mlxsw_sp_qdisc_prio_check_params(struct mlxsw_sp_port *mlxsw_sp_port, void *params) mlxsw_sp_qdisc_prio_check_params() argument 1295 mlxsw_sp_qdisc_walk_cb_clean_stats(struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *mlxsw_sp_port) mlxsw_sp_qdisc_walk_cb_clean_stats() argument 1312 mlxsw_sp_qdisc_tree_clean_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_tree_clean_stats() argument 1320 __mlxsw_sp_qdisc_ets_replace(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, u32 handle, unsigned int nbands, const unsigned int *quanta, const unsigned int *weights, const u8 *priomap) __mlxsw_sp_qdisc_ets_replace() argument 1405 mlxsw_sp_qdisc_prio_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_prio_replace() argument 1418 __mlxsw_sp_qdisc_ets_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct gnet_stats_queue *qstats) __mlxsw_sp_qdisc_ets_unoffload() argument 1430 mlxsw_sp_qdisc_prio_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_prio_unoffload() argument 1441 mlxsw_sp_qdisc_get_prio_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, struct tc_qopt_offload_stats *stats_ptr) mlxsw_sp_qdisc_get_prio_stats() argument 1466 mlxsw_sp_setup_tc_qdisc_prio_clean_stats(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_setup_tc_qdisc_prio_clean_stats() argument 1542 mlxsw_sp_qdisc_ets_check_params(struct mlxsw_sp_port *mlxsw_sp_port, void *params) mlxsw_sp_qdisc_ets_check_params() argument 1551 mlxsw_sp_qdisc_ets_replace(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_ets_replace() argument 1563 mlxsw_sp_qdisc_ets_unoffload(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, void *params) mlxsw_sp_qdisc_ets_unoffload() argument 1574 mlxsw_sp_qdisc_ets_destroy(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc) mlxsw_sp_qdisc_ets_destroy() argument 1619 mlxsw_sp_qdisc_graft(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_qdisc *mlxsw_sp_qdisc, u8 band, u32 child_handle) mlxsw_sp_qdisc_graft() argument 1654 __mlxsw_sp_setup_tc_prio(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_prio_qopt_offload *p) __mlxsw_sp_setup_tc_prio() argument 1687 mlxsw_sp_setup_tc_prio(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_prio_qopt_offload *p) mlxsw_sp_setup_tc_prio() argument 1699 __mlxsw_sp_setup_tc_ets(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_ets_qopt_offload *p) __mlxsw_sp_setup_tc_ets() argument 1732 mlxsw_sp_setup_tc_ets(struct mlxsw_sp_port *mlxsw_sp_port, struct tc_ets_qopt_offload *p) mlxsw_sp_setup_tc_ets() argument 1752 struct mlxsw_sp_port *mlxsw_sp_port; global() member 1768 struct mlxsw_sp_port *mlxsw_sp_port = qevent_binding->mlxsw_sp_port; mlxsw_sp_qevent_span_configure() local 1813 struct mlxsw_sp_port *mlxsw_sp_port = qevent_binding->mlxsw_sp_port; mlxsw_sp_qevent_span_deconfigure() local 2129 mlxsw_sp_qevent_binding_create(struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, int tclass_num, enum mlxsw_sp_span_trigger span_trigger, unsigned int action_mask) mlxsw_sp_qevent_binding_create() argument 2154 mlxsw_sp_qevent_binding_lookup(struct mlxsw_sp_qevent_block *block, struct mlxsw_sp_port *mlxsw_sp_port, u32 handle, enum mlxsw_sp_span_trigger span_trigger) mlxsw_sp_qevent_binding_lookup() argument 2170 mlxsw_sp_setup_tc_block_qevent_bind(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, enum mlxsw_sp_span_trigger span_trigger, unsigned int action_mask) mlxsw_sp_setup_tc_block_qevent_bind() argument 2249 mlxsw_sp_setup_tc_block_qevent_unbind(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, enum mlxsw_sp_span_trigger span_trigger) mlxsw_sp_setup_tc_block_qevent_unbind() argument 2279 mlxsw_sp_setup_tc_block_qevent(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, enum mlxsw_sp_span_trigger span_trigger, unsigned int action_mask) mlxsw_sp_setup_tc_block_qevent() argument 2299 mlxsw_sp_setup_tc_block_qevent_early_drop(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f) mlxsw_sp_setup_tc_block_qevent_early_drop() argument 2310 mlxsw_sp_setup_tc_block_qevent_mark(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f) mlxsw_sp_setup_tc_block_qevent_mark() argument 2320 mlxsw_sp_tc_qdisc_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_tc_qdisc_init() argument 2333 mlxsw_sp_tc_qdisc_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_tc_qdisc_fini() argument [all...] |
H A D | spectrum_ptp.h | 11 struct mlxsw_sp_port; 44 int mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, 47 int mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, 57 void mlxsw_sp1_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, 61 struct mlxsw_sp_port *mlxsw_sp_port, 80 int mlxsw_sp2_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_por 137 mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp1_ptp_hwtstamp_get() argument 144 mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp1_ptp_hwtstamp_set() argument 169 mlxsw_sp1_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, u64 *data, int data_index) mlxsw_sp1_get_stats() argument 175 mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, struct mlxsw_sp_port *mlxsw_sp_port, struct sk_buff *skb, const struct mlxsw_tx_info *tx_info) mlxsw_sp_ptp_txhdr_construct() argument 216 mlxsw_sp2_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp2_ptp_hwtstamp_get() argument 223 mlxsw_sp2_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp2_ptp_hwtstamp_set() argument 236 mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, struct mlxsw_sp_port *mlxsw_sp_port, struct sk_buff *skb, const struct mlxsw_tx_info *tx_info) mlxsw_sp2_ptp_txhdr_construct() argument 258 mlxsw_sp2_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, u64 *data, int data_index) mlxsw_sp2_get_stats() argument [all...] |
H A D | spectrum.c | 252 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_txhdr_ptp_data_construct() 284 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_txhdr_ptp_data_construct() 301 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_txhdr_handle() 313 mlxsw_sp_port, skb, in mlxsw_sp_txhdr_handle() 317 this_cpu_inc(mlxsw_sp_port->pcpu_stats->tx_dropped); in mlxsw_sp_txhdr_handle() 342 int mlxsw_sp_port_vid_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, in mlxsw_sp_port_vid_stp_set() argument 346 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port in mlxsw_sp_port_vid_stp_set() 251 mlxsw_sp_txhdr_ptp_data_construct(struct mlxsw_core *mlxsw_core, struct mlxsw_sp_port *mlxsw_sp_port, struct sk_buff *skb, const struct mlxsw_tx_info *tx_info) mlxsw_sp_txhdr_ptp_data_construct() argument 300 mlxsw_sp_txhdr_handle(struct mlxsw_core *mlxsw_core, struct mlxsw_sp_port *mlxsw_sp_port, struct sk_buff *skb, const struct mlxsw_tx_info *tx_info) mlxsw_sp_txhdr_handle() argument 373 mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port, bool is_up) mlxsw_sp_port_admin_status_set() argument 385 mlxsw_sp_port_dev_addr_set(struct mlxsw_sp_port *mlxsw_sp_port, const unsigned char *addr) mlxsw_sp_port_dev_addr_set() argument 396 mlxsw_sp_port_dev_addr_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dev_addr_init() argument 406 mlxsw_sp_port_max_mtu_get(struct mlxsw_sp_port *mlxsw_sp_port, int *p_max_mtu) mlxsw_sp_port_max_mtu_get() argument 421 mlxsw_sp_port_mtu_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mtu) mlxsw_sp_port_mtu_set() argument 443 mlxsw_sp_port_vp_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp_port_vp_mode_set() argument 452 mlxsw_sp_port_vid_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, bool learn_enable) mlxsw_sp_port_vid_learning_set() argument 469 mlxsw_sp_port_security_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp_port_security_set() argument 503 mlxsw_sp_port_egress_ethtype_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 ethtype) mlxsw_sp_port_egress_ethtype_set() argument 519 __mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, u16 ethtype) __mlxsw_sp_port_pvid_set() argument 537 mlxsw_sp_port_allow_untagged_set(struct mlxsw_sp_port *mlxsw_sp_port, bool allow) mlxsw_sp_port_allow_untagged_set() argument 547 mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, u16 ethtype) mlxsw_sp_port_pvid_set() argument 574 mlxsw_sp_port_system_port_mapping_set(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_system_port_mapping_set() argument 698 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_open() local 722 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_stop() local 736 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_xmit() local 790 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_set_mac_address() local 806 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_change_mtu() local 838 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_sw_stats64() local 890 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_stats_raw() local 984 struct mlxsw_sp_port *mlxsw_sp_port = update_stats_cache() local 1011 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_stats64() local 1016 __mlxsw_sp_port_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid_begin, u16 vid_end, bool is_member, bool untagged) __mlxsw_sp_port_vlan_set() argument 1035 mlxsw_sp_port_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid_begin, u16 vid_end, bool is_member, bool untagged) mlxsw_sp_port_vlan_set() argument 1055 mlxsw_sp_port_vlan_flush(struct mlxsw_sp_port *mlxsw_sp_port, bool flush_default) mlxsw_sp_port_vlan_flush() argument 1079 mlxsw_sp_port_vlan_create(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) mlxsw_sp_port_vlan_create() argument 1112 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_destroy() local 1124 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_add_vid() local 1138 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_kill_vid() local 1155 mlxsw_sp_setup_tc_block(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f) mlxsw_sp_setup_tc_block() argument 1175 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_setup_tc() local 1197 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_feature_hw_tc() local 1216 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_feature_loopback() local 1280 mlxsw_sp_port_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct ifreq *ifr) mlxsw_sp_port_hwtstamp_set() argument 1300 mlxsw_sp_port_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, struct ifreq *ifr) mlxsw_sp_port_hwtstamp_get() argument 1317 mlxsw_sp_port_ptp_clear(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ptp_clear() argument 1327 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_ioctl() local 1357 mlxsw_sp_port_speed_by_width_set(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_speed_by_width_set() argument 1386 mlxsw_sp_port_speed_get(struct mlxsw_sp_port *mlxsw_sp_port, u32 *speed) mlxsw_sp_port_speed_get() argument 1407 mlxsw_sp_port_ets_set(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qeec_hr hr, u8 index, u8 next_index, bool dwrr, u8 dwrr_weight) mlxsw_sp_port_ets_set() argument 1422 mlxsw_sp_port_ets_maxrate_set(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qeec_hr hr, u8 index, u8 next_index, u32 maxrate, u8 burst_size) mlxsw_sp_port_ets_maxrate_set() argument 1437 mlxsw_sp_port_min_bw_set(struct mlxsw_sp_port *mlxsw_sp_port, enum mlxsw_reg_qeec_hr hr, u8 index, u8 next_index, u32 minrate) mlxsw_sp_port_min_bw_set() argument 1452 mlxsw_sp_port_prio_tc_set(struct mlxsw_sp_port *mlxsw_sp_port, u8 switch_prio, u8 tclass) mlxsw_sp_port_prio_tc_set() argument 1463 mlxsw_sp_port_ets_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ets_init() argument 1549 mlxsw_sp_port_tc_mc_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp_port_tc_mc_mode_set() argument 1559 mlxsw_sp_port_overheat_init_val_set(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_overheat_init_val_set() argument 1577 mlxsw_sp_port_vlan_classification_set(struct mlxsw_sp_port *mlxsw_sp_port, bool is_8021ad_tagged, bool is_8021q_tagged) mlxsw_sp_port_vlan_classification_set() argument 1611 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_port_create() local 1901 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; mlxsw_sp_port_remove() local 1929 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_cpu_port_create() local 1958 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_cpu_port_remove() local 2267 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_port_split() local 2330 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_port_unsplit() local 2375 mlxsw_sp_port_down_wipe_counters(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_down_wipe_counters() argument 2387 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_pude_event_func() local 2455 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; mlxsw_sp_rx_listener_no_mark_func() local 4094 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_lower_get() local 4179 mlxsw_sp_port_lag_uppers_cleanup(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *lag_dev) mlxsw_sp_port_lag_uppers_cleanup() argument 4213 mlxsw_sp_lag_col_port_add(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id, u8 port_index) mlxsw_sp_lag_col_port_add() argument 4224 mlxsw_sp_lag_col_port_remove(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_col_port_remove() argument 4235 mlxsw_sp_lag_col_port_enable(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_col_port_enable() argument 4246 mlxsw_sp_lag_col_port_disable(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_col_port_disable() argument 4323 mlxsw_sp_lag_uppers_bridge_join(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *lag_dev, struct netlink_ext_ack *extack) mlxsw_sp_lag_uppers_bridge_join() argument 4382 mlxsw_sp_lag_uppers_bridge_leave(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *lag_dev) mlxsw_sp_lag_uppers_bridge_leave() argument 4405 mlxsw_sp_port_lag_join(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *lag_dev, struct netlink_ext_ack *extack) mlxsw_sp_port_lag_join() argument 4477 mlxsw_sp_port_lag_leave(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *lag_dev) mlxsw_sp_port_lag_leave() argument 4512 mlxsw_sp_lag_dist_port_add(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_dist_port_add() argument 4523 mlxsw_sp_lag_dist_port_remove(struct mlxsw_sp_port *mlxsw_sp_port, u16 lag_id) mlxsw_sp_lag_dist_port_remove() argument 4535 mlxsw_sp_port_lag_col_dist_enable(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_lag_col_dist_enable() argument 4556 mlxsw_sp_port_lag_col_dist_disable(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_lag_col_dist_disable() argument 4577 mlxsw_sp_port_lag_changed(struct mlxsw_sp_port *mlxsw_sp_port, struct netdev_lag_lower_state_info *info) mlxsw_sp_port_lag_changed() argument 4586 mlxsw_sp_port_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp_port_stp_set() argument 4611 mlxsw_sp_port_ovs_join(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ovs_join() argument 4646 mlxsw_sp_port_ovs_leave(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_ovs_leave() argument 4779 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_netdevice_port_upper_event() local 4933 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_netdevice_port_lower_event() local 5020 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_netdevice_port_vlan_event() local [all...] |
H A D | spectrum_matchall.c | 26 mlxsw_sp_mall_port_mirror_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add() argument 30 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_add() 49 err = mlxsw_sp_span_analyzed_port_get(mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add() 60 err = mlxsw_sp_span_agent_bind(mlxsw_sp, trigger, mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_add() 70 mlxsw_sp_span_analyzed_port_put(mlxsw_sp_port, mall_entry->ingress); in mlxsw_sp_mall_port_mirror_add() 77 mlxsw_sp_mall_port_mirror_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_del() argument 80 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_del() 87 mlxsw_sp_span_agent_unbind(mlxsw_sp, trigger, mlxsw_sp_port, in mlxsw_sp_mall_port_mirror_del() 92 mlxsw_sp_mall_port_sample_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable, u32 rate) mlxsw_sp_mall_port_sample_set() argument 103 mlxsw_sp_mall_port_sample_add(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry, struct netlink_ext_ack *extack) mlxsw_sp_mall_port_sample_add() argument 134 mlxsw_sp_mall_port_sample_del(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry) mlxsw_sp_mall_port_sample_del() argument 151 mlxsw_sp_mall_port_rule_add(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry, struct netlink_ext_ack *extack) mlxsw_sp_mall_port_rule_add() argument 169 mlxsw_sp_mall_port_rule_del(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry) mlxsw_sp_mall_port_rule_del() argument 334 mlxsw_sp_mall_port_bind(struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port, struct netlink_ext_ack *extack) mlxsw_sp_mall_port_bind() argument 356 mlxsw_sp_mall_port_unbind(struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_mall_port_unbind() argument 379 mlxsw_sp1_mall_sample_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry, struct netlink_ext_ack *extack) mlxsw_sp1_mall_sample_add() argument 399 mlxsw_sp1_mall_sample_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry) mlxsw_sp1_mall_sample_del() argument 411 mlxsw_sp2_mall_sample_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry, struct netlink_ext_ack *extack) mlxsw_sp2_mall_sample_add() argument 459 mlxsw_sp2_mall_sample_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_mall_entry *mall_entry) mlxsw_sp2_mall_sample_del() argument [all...] |
H A D | spectrum_flow.c | 35 struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) in mlxsw_sp_flow_block_lookup() 40 if (binding->mlxsw_sp_port == mlxsw_sp_port && in mlxsw_sp_flow_block_lookup() 54 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_flow_block_bind() 61 if (WARN_ON(mlxsw_sp_flow_block_lookup(block, mlxsw_sp_port, ingress))) in mlxsw_sp_flow_block_bind() 74 err = mlxsw_sp_mall_port_bind(block, mlxsw_sp_port, extack); in mlxsw_sp_flow_block_bind() 83 binding->mlxsw_sp_port = mlxsw_sp_port; in mlxsw_sp_flow_block_bind() 34 mlxsw_sp_flow_block_lookup(struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) mlxsw_sp_flow_block_lookup() argument 52 mlxsw_sp_flow_block_bind(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port, bool ingress, struct netlink_ext_ack *extack) mlxsw_sp_flow_block_bind() argument 107 mlxsw_sp_flow_block_unbind(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_flow_block *block, struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) mlxsw_sp_flow_block_unbind() argument 201 mlxsw_sp_setup_tc_block_bind(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, bool ingress) mlxsw_sp_setup_tc_block_bind() argument 252 mlxsw_sp_setup_tc_block_unbind(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, bool ingress) mlxsw_sp_setup_tc_block_unbind() argument 280 mlxsw_sp_setup_tc_block_clsact(struct mlxsw_sp_port *mlxsw_sp_port, struct flow_block_offload *f, bool ingress) mlxsw_sp_setup_tc_block_clsact() argument [all...] |
H A D | spectrum_switchdev.c | 84 struct mlxsw_sp_port *mlxsw_sp_port, 88 struct mlxsw_sp_port *mlxsw_sp_port); 139 mlxsw_sp_bridge_port_mdb_flush(struct mlxsw_sp_port *mlxsw_sp_port, 149 mlxsw_sp_port_mrouter_update_mdb(struct mlxsw_sp_port *mlxsw_sp_port, 395 struct mlxsw_sp_port *mlxsw_sp_port; member 478 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_bridge_port_create() local 569 mlxsw_sp_port_vlan_find_by_bridge(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_bridge_device * bridge_device, u16 vid) mlxsw_sp_port_vlan_find_by_bridge() argument 593 mlxsw_sp_port_vlan_find_by_fid(struct mlxsw_sp_port *mlxsw_sp_port, u16 fid_index) mlxsw_sp_port_vlan_find_by_fid() argument 666 mlxsw_sp_port_bridge_vlan_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_vlan *bridge_vlan, u8 state) mlxsw_sp_port_bridge_vlan_stp_set() argument 683 mlxsw_sp_port_attr_stp_state_set(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *orig_dev, u8 state) mlxsw_sp_port_attr_stp_state_set() argument 719 mlxsw_sp_port_bridge_vlan_flood_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_vlan *bridge_vlan, enum mlxsw_sp_flood_type packet_type, bool member) mlxsw_sp_port_bridge_vlan_flood_set() argument 740 mlxsw_sp_bridge_port_flood_table_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, enum mlxsw_sp_flood_type packet_type, bool member) mlxsw_sp_bridge_port_flood_table_set() argument 826 mlxsw_sp_port_bridge_vlan_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_vlan *bridge_vlan, bool set) mlxsw_sp_port_bridge_vlan_learning_set() argument 844 mlxsw_sp_bridge_port_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, bool set) mlxsw_sp_bridge_port_learning_set() argument 869 mlxsw_sp_port_attr_br_pre_flags_set(struct mlxsw_sp_port *mlxsw_sp_port, const struct net_device *orig_dev, struct switchdev_brport_flags flags, struct netlink_ext_ack *extack) mlxsw_sp_port_attr_br_pre_flags_set() argument 893 mlxsw_sp_port_attr_br_flags_set(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *orig_dev, struct switchdev_brport_flags flags) mlxsw_sp_port_attr_br_flags_set() argument 959 mlxsw_sp_port_attr_br_ageing_set(struct mlxsw_sp_port *mlxsw_sp_port, unsigned long ageing_clock_t) mlxsw_sp_port_attr_br_ageing_set() argument 973 mlxsw_sp_port_attr_br_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *orig_dev, bool vlan_enabled) mlxsw_sp_port_attr_br_vlan_set() argument 991 mlxsw_sp_port_attr_br_vlan_proto_set(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *orig_dev, u16 vlan_proto) mlxsw_sp_port_attr_br_vlan_proto_set() argument 1006 mlxsw_sp_port_attr_mrouter_set(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *orig_dev, bool is_port_mrouter) mlxsw_sp_port_attr_mrouter_set() argument 1044 mlxsw_sp_port_mc_disabled_set(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *orig_dev, bool mc_disabled) mlxsw_sp_port_mc_disabled_set() argument 1260 mlxsw_sp_port_attr_br_mrouter_set(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *orig_dev, bool is_mrouter) mlxsw_sp_port_attr_br_mrouter_set() argument 1285 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_attr_set() local 1349 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_fid_join() local 1398 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_fid_leave() local 1412 mlxsw_sp_port_pvid_determine(const struct mlxsw_sp_port *mlxsw_sp_port, u16 vid, bool is_pvid) mlxsw_sp_port_pvid_determine() argument 1428 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_bridge_join() local 1479 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; mlxsw_sp_port_vlan_bridge_leave() local 1513 mlxsw_sp_bridge_port_vlan_add(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, u16 vid, bool is_untagged, bool is_pvid, struct netlink_ext_ack *extack) mlxsw_sp_bridge_port_vlan_add() argument 1578 mlxsw_sp_port_vlans_add(struct mlxsw_sp_port *mlxsw_sp_port, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) mlxsw_sp_port_vlans_add() argument 1855 mlxsw_sp_port_fdb_set(struct mlxsw_sp_port *mlxsw_sp_port, struct switchdev_notifier_fdb_info *fdb_info, bool adding) mlxsw_sp_port_fdb_set() argument 1925 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_bridge_port_get_ports_bitmap() local 2178 mlxsw_sp_port_mdb_add(struct mlxsw_sp_port *mlxsw_sp_port, const struct switchdev_obj_port_mdb *mdb) mlxsw_sp_port_mdb_add() argument 2234 mlxsw_sp_port_mrouter_update_mdb(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, bool add) mlxsw_sp_port_mrouter_update_mdb() argument 2259 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_obj_add() local 2289 mlxsw_sp_bridge_port_vlan_del(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, u16 vid) mlxsw_sp_bridge_port_vlan_del() argument 2307 mlxsw_sp_port_vlans_del(struct mlxsw_sp_port *mlxsw_sp_port, const struct switchdev_obj_port_vlan *vlan) mlxsw_sp_port_vlans_del() argument 2329 mlxsw_sp_port_mdb_del(struct mlxsw_sp_port *mlxsw_sp_port, const struct switchdev_obj_port_mdb *mdb) mlxsw_sp_port_mdb_del() argument 2370 mlxsw_sp_bridge_port_mdb_flush(struct mlxsw_sp_port *mlxsw_sp_port, struct mlxsw_sp_bridge_port *bridge_port, u16 fid_index) mlxsw_sp_bridge_port_mdb_flush() argument 2399 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_obj_del() local 2424 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_lag_rep_port() local 2439 mlxsw_sp_bridge_port_replay(struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port, struct netlink_ext_ack *extack) mlxsw_sp_bridge_port_replay() argument 2466 mlxsw_sp_bridge_vlan_aware_port_join(struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port, struct netlink_ext_ack *extack) mlxsw_sp_bridge_vlan_aware_port_join() argument 2483 mlxsw_sp_bridge_8021q_port_join(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port, struct netlink_ext_ack *extack) mlxsw_sp_bridge_8021q_port_join() argument 2493 mlxsw_sp_bridge_vlan_aware_port_leave(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_bridge_vlan_aware_port_leave() argument 2501 mlxsw_sp_bridge_8021q_port_leave(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_bridge_8021q_port_leave() argument 2626 mlxsw_sp_port_is_br_member(const struct mlxsw_sp_port *mlxsw_sp_port, const struct net_device *br_dev) mlxsw_sp_port_is_br_member() argument 2643 mlxsw_sp_bridge_8021d_port_join(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port, struct netlink_ext_ack *extack) mlxsw_sp_bridge_8021d_port_join() argument 2684 mlxsw_sp_bridge_8021d_port_leave(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_bridge_8021d_port_leave() argument 2779 mlxsw_sp_bridge_8021ad_port_join(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port, struct netlink_ext_ack *extack) mlxsw_sp_bridge_8021ad_port_join() argument 2803 mlxsw_sp_bridge_8021ad_port_leave(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_bridge_8021ad_port_leave() argument 2830 mlxsw_sp2_bridge_8021ad_port_join(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port, struct netlink_ext_ack *extack) mlxsw_sp2_bridge_8021ad_port_join() argument 2858 mlxsw_sp2_bridge_8021ad_port_leave(struct mlxsw_sp_bridge_device *bridge_device, struct mlxsw_sp_bridge_port *bridge_port, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp2_bridge_8021ad_port_leave() argument 2876 mlxsw_sp_port_bridge_join(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *brport_dev, struct net_device *br_dev, struct netlink_ext_ack *extack) mlxsw_sp_port_bridge_join() argument 2911 mlxsw_sp_port_bridge_leave(struct mlxsw_sp_port *mlxsw_sp_port, struct net_device *brport_dev, struct net_device *br_dev) mlxsw_sp_port_bridge_leave() argument 3052 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_fdb_notify_mac_process() local 3120 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_fdb_notify_mac_lag_process() local 3492 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_switchdev_bridge_fdb_event_work() local [all...] |
H A D | spectrum.h | 75 struct mlxsw_sp_port; 162 struct mlxsw_sp_port **ports; 237 int (*hwtstamp_get)(struct mlxsw_sp_port *mlxsw_sp_port, 239 int (*hwtstamp_set)(struct mlxsw_sp_port *mlxsw_sp_port, 246 void (*get_stats)(struct mlxsw_sp_port *mlxsw_sp_port, 249 struct mlxsw_sp_port *mlxsw_sp_port, 292 struct mlxsw_sp_port *mlxsw_sp_port; global() member 320 struct mlxsw_sp_port { global() struct 474 mlxsw_sp_port_is_pause_en(const struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_is_pause_en() argument 482 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp_port_lagged_get() local 492 mlxsw_sp_port_vlan_find_by_vid(const struct mlxsw_sp_port *mlxsw_sp_port, u16 vid) mlxsw_sp_port_vlan_find_by_vid() argument 734 mlxsw_sp_port_dcb_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_init() argument 738 mlxsw_sp_port_dcb_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_dcb_fini() argument 904 struct mlxsw_sp_port *mlxsw_sp_port; global() member [all...] |
H A D | spectrum_span.h | 14 struct mlxsw_sp_port; 30 struct mlxsw_sp_port *dest_port; /* NULL for unoffloaded SPAN. */ 101 int mlxsw_sp_span_analyzed_port_get(struct mlxsw_sp_port *mlxsw_sp_port, 103 void mlxsw_sp_span_analyzed_port_put(struct mlxsw_sp_port *mlxsw_sp_port, 107 struct mlxsw_sp_port *mlxsw_sp_port, 112 struct mlxsw_sp_port *mlxsw_sp_port, [all...] |
H A D | spectrum_ethtool.c | 14 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_drvinfo() local 15 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_get_drvinfo() 146 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_link_ext_state() local 154 mlxsw_reg_pddr_pack(pddr_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_get_link_ext_state() 160 err = mlxsw_reg_query(mlxsw_sp_port->mlxsw_sp->core, MLXSW_REG(pddr), in mlxsw_sp_port_get_link_ext_state() 184 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_get_pauseparam() local 186 pause->rx_pause = mlxsw_sp_port in mlxsw_sp_port_get_pauseparam() 190 mlxsw_sp_port_pause_set(struct mlxsw_sp_port *mlxsw_sp_port, struct ethtool_pauseparam *pause) mlxsw_sp_port_pause_set() argument 211 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_set_pauseparam() local 569 mlxsw_sp_port_get_transceiver_overheat_stats(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_get_transceiver_overheat_stats() argument 631 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_strings() local 693 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_set_phys_id() local 761 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); __mlxsw_sp_port_get_stats() local 785 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); __mlxsw_sp_port_get_env_stats() local 795 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_stats() local 855 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_sset_count() local 928 mlxsw_sp_port_ptys_query(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_eth_proto_cap, u32 *p_eth_proto_admin, u32 *p_eth_proto_oper, u8 *p_connector_type) mlxsw_sp_port_ptys_query() argument 955 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_get_link_ksettings() local 986 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_port_set_link_ksettings() local 1035 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(netdev); mlxsw_sp_get_module_info() local 1047 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(netdev); mlxsw_sp_get_module_eeprom() local 1061 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_get_module_eeprom_by_page() local 1073 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(netdev); mlxsw_sp_get_ts_info() local 1206 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_reset() local 1220 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_get_module_power_mode() local 1234 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); mlxsw_sp_set_module_power_mode() local 1451 mlxsw_sp1_ptys_max_speed(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_max_speed) mlxsw_sp1_ptys_max_speed() argument 1917 mlxsw_sp2_ptys_max_speed(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_max_speed) mlxsw_sp2_ptys_max_speed() argument [all...] |
H A D | spectrum_buffers.c | 138 static u32 mlxsw_sp_port_headroom_8x_adjust(const struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_headroom_8x_adjust() argument 145 return mlxsw_sp_port->mapping.width == 8 ? 2 * size_cells : size_cells; in mlxsw_sp_port_headroom_8x_adjust() 398 void mlxsw_sp_hdroom_bufs_reset_sizes(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_hdroom_bufs_reset_sizes() argument 401 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_hdroom_bufs_reset_sizes() 406 reserve_cells = mlxsw_sp_hdroom_int_buf_size_get(mlxsw_sp, mlxsw_sp_port->max_mtu, in mlxsw_sp_hdroom_bufs_reset_sizes() 407 mlxsw_sp_port->max_speed); in mlxsw_sp_hdroom_bufs_reset_sizes() 408 reserve_cells = mlxsw_sp_port_headroom_8x_adjust(mlxsw_sp_port, reserve_cells); in mlxsw_sp_hdroom_bufs_reset_sizes() 433 thres_cells = mlxsw_sp_port_headroom_8x_adjust(mlxsw_sp_port, thres_cell in mlxsw_sp_hdroom_bufs_reset_sizes() 450 mlxsw_sp_hdroom_configure_buffers(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_buffers() argument 482 mlxsw_sp_hdroom_configure_priomap(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_priomap() argument 506 mlxsw_sp_hdroom_configure_int_buf(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) mlxsw_sp_hdroom_configure_int_buf() argument 539 __mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom, bool force) __mlxsw_sp_hdroom_configure() argument 594 mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_hdroom *hdroom) mlxsw_sp_hdroom_configure() argument 600 mlxsw_sp_port_headroom_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_headroom_init() argument 989 mlxsw_sp_port_sb_cms_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_sb_cms_init() argument 1094 mlxsw_sp_port_sb_pms_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_sb_pms_init() argument 1322 mlxsw_sp_port_buffers_init(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_buffers_init() argument 1349 mlxsw_sp_port_buffers_fini(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_port_buffers_fini() argument 1442 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_port_pool_get() local 1458 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_port_pool_set() local 1484 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_tc_pool_bind_get() local 1505 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_tc_pool_bind_set() local 1757 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_occ_port_pool_get() local 1774 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_sb_occ_tc_port_bind_get() local [all...] |
H A D | spectrum_ptp.c | 587 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_packet_finish() local 593 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_packet_finish() 594 if (!(mlxsw_sp_port && (!skb->dev || skb->dev == mlxsw_sp_port->dev))) { in mlxsw_sp1_ptp_packet_finish() 709 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp1_ptp_got_packet() local 714 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp1_ptp_got_packet() 715 if (!mlxsw_sp_port) in mlxsw_sp1_ptp_got_packet() 718 types = ingress ? mlxsw_sp_port in mlxsw_sp1_ptp_got_packet() 750 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp1_ptp_got_timestamp() local 798 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp1_ptp_ht_gc_collect() local 1084 mlxsw_sp1_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp1_ptp_hwtstamp_get() argument 1153 mlxsw_sp1_ptp_mtpppc_update(struct mlxsw_sp_port *mlxsw_sp_port, u16 ing_types, u16 egr_types) mlxsw_sp1_ptp_mtpppc_update() argument 1192 mlxsw_sp1_ptp_hwtstamp_enabled(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp1_ptp_hwtstamp_enabled() argument 1198 mlxsw_sp1_ptp_port_shaper_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) mlxsw_sp1_ptp_port_shaper_set() argument 1207 mlxsw_sp1_ptp_port_shaper_check(struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp1_ptp_port_shaper_check() argument 1233 struct mlxsw_sp_port *mlxsw_sp_port; mlxsw_sp1_ptp_shaper_work() local 1247 mlxsw_sp1_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp1_ptp_hwtstamp_set() argument 1336 mlxsw_sp1_get_stats(struct mlxsw_sp_port *mlxsw_sp_port, u64 *data, int data_index) mlxsw_sp1_get_stats() argument 1448 mlxsw_sp2_ptp_hwtstamp_get(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp2_ptp_hwtstamp_get() argument 1567 mlxsw_sp2_ptp_configure_port(struct mlxsw_sp_port *mlxsw_sp_port, u16 ing_types, u16 egr_types, struct hwtstamp_config new_config) mlxsw_sp2_ptp_configure_port() argument 1589 mlxsw_sp2_ptp_deconfigure_port(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config new_config) mlxsw_sp2_ptp_deconfigure_port() argument 1611 mlxsw_sp2_ptp_hwtstamp_set(struct mlxsw_sp_port *mlxsw_sp_port, struct hwtstamp_config *config) mlxsw_sp2_ptp_hwtstamp_set() argument 1682 mlxsw_sp_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, struct mlxsw_sp_port *mlxsw_sp_port, struct sk_buff *skb, const struct mlxsw_tx_info *tx_info) mlxsw_sp_ptp_txhdr_construct() argument 1691 mlxsw_sp2_ptp_txhdr_construct(struct mlxsw_core *mlxsw_core, struct mlxsw_sp_port *mlxsw_sp_port, struct sk_buff *skb, const struct mlxsw_tx_info *tx_info) mlxsw_sp2_ptp_txhdr_construct() argument [all...] |