Lines Matching refs:mlxsw_sp_port
74 struct mlxsw_sp_port;
161 struct mlxsw_sp_port **ports;
235 int (*hwtstamp_get)(struct mlxsw_sp_port *mlxsw_sp_port,
237 int (*hwtstamp_set)(struct mlxsw_sp_port *mlxsw_sp_port,
244 void (*get_stats)(struct mlxsw_sp_port *mlxsw_sp_port,
247 struct mlxsw_sp_port *mlxsw_sp_port,
290 struct mlxsw_sp_port *mlxsw_sp_port; member
318 struct mlxsw_sp_port { struct
378 int (*ptys_max_speed)(struct mlxsw_sp_port *mlxsw_sp_port, u32 *p_max_speed); argument
471 mlxsw_sp_port_is_pause_en(const struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_is_pause_en() argument
473 return mlxsw_sp_port->link.tx_pause || mlxsw_sp_port->link.rx_pause; in mlxsw_sp_port_is_pause_en()
476 static inline struct mlxsw_sp_port *
479 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_port_lagged_get() local
484 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_lagged_get()
485 return mlxsw_sp_port && mlxsw_sp_port->lagged ? mlxsw_sp_port : NULL; in mlxsw_sp_port_lagged_get()
489 mlxsw_sp_port_vlan_find_by_vid(const struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_vid() argument
494 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_vid()
511 int mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port,
514 mlxsw_sp_port_vlan_classification_set(struct mlxsw_sp_port *mlxsw_sp_port,
579 int mlxsw_sp_port_buffers_init(struct mlxsw_sp_port *mlxsw_sp_port);
580 void mlxsw_sp_port_buffers_fini(struct mlxsw_sp_port *mlxsw_sp_port);
618 void mlxsw_sp_hdroom_bufs_reset_sizes(struct mlxsw_sp_port *mlxsw_sp_port,
620 int mlxsw_sp_hdroom_configure(struct mlxsw_sp_port *mlxsw_sp_port,
653 int mlxsw_sp_port_bridge_join(struct mlxsw_sp_port *mlxsw_sp_port,
657 void mlxsw_sp_port_bridge_leave(struct mlxsw_sp_port *mlxsw_sp_port,
675 int mlxsw_sp_port_speed_get(struct mlxsw_sp_port *mlxsw_sp_port, u32 *speed);
676 int mlxsw_sp_port_ets_set(struct mlxsw_sp_port *mlxsw_sp_port,
679 int mlxsw_sp_port_prio_tc_set(struct mlxsw_sp_port *mlxsw_sp_port,
681 int mlxsw_sp_port_ets_maxrate_set(struct mlxsw_sp_port *mlxsw_sp_port,
685 int mlxsw_sp_port_vid_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid,
687 int mlxsw_sp_port_vp_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable);
688 int mlxsw_sp_port_vid_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid,
691 int mlxsw_sp_port_egress_ethtype_set(struct mlxsw_sp_port *mlxsw_sp_port,
693 int mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid,
696 mlxsw_sp_port_vlan_create(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid);
698 int mlxsw_sp_port_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid_begin,
710 struct mlxsw_sp_port *mlxsw_sp_port,
715 struct mlxsw_sp_port *mlxsw_sp_port_dev_lower_find(struct net_device *dev);
716 struct mlxsw_sp_port *mlxsw_sp_port_lower_dev_hold(struct net_device *dev);
717 void mlxsw_sp_port_dev_put(struct mlxsw_sp_port *mlxsw_sp_port);
718 struct mlxsw_sp_port *mlxsw_sp_port_dev_lower_find_rcu(struct net_device *dev);
726 int mlxsw_sp_port_dcb_init(struct mlxsw_sp_port *mlxsw_sp_port);
727 void mlxsw_sp_port_dcb_fini(struct mlxsw_sp_port *mlxsw_sp_port);
729 static inline int mlxsw_sp_port_dcb_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dcb_init() argument
733 static inline void mlxsw_sp_port_dcb_fini(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dcb_fini() argument
903 struct mlxsw_sp_port *mlxsw_sp_port; member
960 int mlxsw_sp_setup_tc_block_clsact(struct mlxsw_sp_port *mlxsw_sp_port,
1172 struct mlxsw_sp_port *mlxsw_sp_port,
1176 struct mlxsw_sp_port *mlxsw_sp_port,
1223 struct mlxsw_sp_port *mlxsw_sp_port,
1226 struct mlxsw_sp_port *mlxsw_sp_port);
1252 int mlxsw_sp_tc_qdisc_init(struct mlxsw_sp_port *mlxsw_sp_port);
1253 void mlxsw_sp_tc_qdisc_fini(struct mlxsw_sp_port *mlxsw_sp_port);
1254 int mlxsw_sp_setup_tc_red(struct mlxsw_sp_port *mlxsw_sp_port,
1256 int mlxsw_sp_setup_tc_prio(struct mlxsw_sp_port *mlxsw_sp_port,
1258 int mlxsw_sp_setup_tc_ets(struct mlxsw_sp_port *mlxsw_sp_port,
1260 int mlxsw_sp_setup_tc_tbf(struct mlxsw_sp_port *mlxsw_sp_port,
1262 int mlxsw_sp_setup_tc_fifo(struct mlxsw_sp_port *mlxsw_sp_port,
1264 int mlxsw_sp_setup_tc_block_qevent_early_drop(struct mlxsw_sp_port *mlxsw_sp_port,
1266 int mlxsw_sp_setup_tc_block_qevent_mark(struct mlxsw_sp_port *mlxsw_sp_port,
1293 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid);
1295 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid);
1316 int mlxsw_sp_port_fids_init(struct mlxsw_sp_port *mlxsw_sp_port);
1317 void mlxsw_sp_port_fids_fini(struct mlxsw_sp_port *mlxsw_sp_port);
1398 int mlxsw_sp_port_nve_init(struct mlxsw_sp_port *mlxsw_sp_port);
1399 void mlxsw_sp_port_nve_fini(struct mlxsw_sp_port *mlxsw_sp_port);