• Home
  • Raw
  • Download

Lines Matching refs:mlxsw_sp_port

60 struct mlxsw_sp_port;
143 struct mlxsw_sp_port **ports;
211 struct mlxsw_sp_port *mlxsw_sp_port; member
238 struct mlxsw_sp_port { struct
352 mlxsw_sp_port_is_pause_en(const struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_is_pause_en() argument
354 return mlxsw_sp_port->link.tx_pause || mlxsw_sp_port->link.rx_pause; in mlxsw_sp_port_is_pause_en()
357 static inline struct mlxsw_sp_port *
360 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_port_lagged_get() local
365 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_lagged_get()
366 return mlxsw_sp_port && mlxsw_sp_port->lagged ? mlxsw_sp_port : NULL; in mlxsw_sp_port_lagged_get()
370 mlxsw_sp_port_vlan_find_by_vid(const struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_vid() argument
375 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_vid()
393 int mlxsw_sp_port_buffers_init(struct mlxsw_sp_port *mlxsw_sp_port);
441 int mlxsw_sp_port_bridge_join(struct mlxsw_sp_port *mlxsw_sp_port,
445 void mlxsw_sp_port_bridge_leave(struct mlxsw_sp_port *mlxsw_sp_port,
465 int mlxsw_sp_port_ets_set(struct mlxsw_sp_port *mlxsw_sp_port,
468 int mlxsw_sp_port_prio_tc_set(struct mlxsw_sp_port *mlxsw_sp_port,
470 int __mlxsw_sp_port_headroom_set(struct mlxsw_sp_port *mlxsw_sp_port, int mtu,
473 int mlxsw_sp_port_ets_maxrate_set(struct mlxsw_sp_port *mlxsw_sp_port,
477 int mlxsw_sp_port_vid_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid,
479 int mlxsw_sp_port_vp_mode_set(struct mlxsw_sp_port *mlxsw_sp_port, bool enable);
480 int mlxsw_sp_port_vid_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid,
482 int mlxsw_sp_port_pvid_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid);
484 mlxsw_sp_port_vlan_create(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid);
486 int mlxsw_sp_port_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid_begin,
497 struct mlxsw_sp_port *mlxsw_sp_port_dev_lower_find(struct net_device *dev);
498 struct mlxsw_sp_port *mlxsw_sp_port_lower_dev_hold(struct net_device *dev);
499 void mlxsw_sp_port_dev_put(struct mlxsw_sp_port *mlxsw_sp_port);
500 struct mlxsw_sp_port *mlxsw_sp_port_dev_lower_find_rcu(struct net_device *dev);
504 int mlxsw_sp_port_dcb_init(struct mlxsw_sp_port *mlxsw_sp_port);
505 void mlxsw_sp_port_dcb_fini(struct mlxsw_sp_port *mlxsw_sp_port);
507 static inline int mlxsw_sp_port_dcb_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dcb_init() argument
511 static inline void mlxsw_sp_port_dcb_fini(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dcb_fini() argument
672 struct mlxsw_sp_port *mlxsw_sp_port,
677 struct mlxsw_sp_port *mlxsw_sp_port,
839 int mlxsw_sp_tc_qdisc_init(struct mlxsw_sp_port *mlxsw_sp_port);
840 void mlxsw_sp_tc_qdisc_fini(struct mlxsw_sp_port *mlxsw_sp_port);
841 int mlxsw_sp_setup_tc_red(struct mlxsw_sp_port *mlxsw_sp_port,
843 int mlxsw_sp_setup_tc_prio(struct mlxsw_sp_port *mlxsw_sp_port,
871 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid);
873 struct mlxsw_sp_port *mlxsw_sp_port, u16 vid);
893 int mlxsw_sp_port_fids_init(struct mlxsw_sp_port *mlxsw_sp_port);
894 void mlxsw_sp_port_fids_fini(struct mlxsw_sp_port *mlxsw_sp_port);
963 int mlxsw_sp_port_nve_init(struct mlxsw_sp_port *mlxsw_sp_port);
964 void mlxsw_sp_port_nve_fini(struct mlxsw_sp_port *mlxsw_sp_port);