Home
last modified time | relevance | path

Searched refs:mlxsw_sp_port (Results 1 – 4 of 4) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c58 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_attr_get() local
59 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_get()
69 (mlxsw_sp_port->learning ? BR_LEARNING : 0) | in mlxsw_sp_port_attr_get()
70 (mlxsw_sp_port->learning_sync ? BR_LEARNING_SYNC : 0) | in mlxsw_sp_port_attr_get()
71 (mlxsw_sp_port->uc_flood ? BR_FLOOD : 0); in mlxsw_sp_port_attr_get()
80 static int mlxsw_sp_port_stp_state_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_stp_state_set() argument
83 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_stp_state_set()
108 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_stp_state_set()
109 for_each_set_bit(vid, mlxsw_sp_port->active_vlans, VLAN_N_VID) in mlxsw_sp_port_stp_state_set()
117 static int mlxsw_sp_port_attr_stp_state_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_stp_state_set() argument
[all …]
Dspectrum.c160 static int mlxsw_sp_port_admin_status_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_admin_status_set() argument
163 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_admin_status_set()
166 mlxsw_reg_paos_pack(paos_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_admin_status_set()
172 static int mlxsw_sp_port_oper_status_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_oper_status_get() argument
175 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_oper_status_get()
180 mlxsw_reg_paos_pack(paos_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_oper_status_get()
216 static int mlxsw_sp_port_dev_addr_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_dev_addr_set() argument
219 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_dev_addr_set()
222 mlxsw_reg_ppad_pack(ppad_pl, true, mlxsw_sp_port->local_port); in mlxsw_sp_port_dev_addr_set()
227 static int mlxsw_sp_port_dev_addr_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_dev_addr_init() argument
[all …]
Dspectrum.h50 struct mlxsw_sp_port;
55 struct mlxsw_sp_port **ports;
83 struct mlxsw_sp_port { struct
107 int mlxsw_sp_port_buffers_init(struct mlxsw_sp_port *mlxsw_sp_port); argument
111 int mlxsw_sp_port_vlan_init(struct mlxsw_sp_port *mlxsw_sp_port);
112 void mlxsw_sp_port_switchdev_init(struct mlxsw_sp_port *mlxsw_sp_port);
113 void mlxsw_sp_port_switchdev_fini(struct mlxsw_sp_port *mlxsw_sp_port);
114 int mlxsw_sp_port_vid_to_fid_set(struct mlxsw_sp_port *mlxsw_sp_port,
117 int mlxsw_sp_port_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 vid_begin,
Dspectrum_buffers.c68 static int mlxsw_sp_port_pb_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_pb_init() argument
73 mlxsw_reg_pbmc_pack(pbmc_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_pb_init()
81 return mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, in mlxsw_sp_port_pb_init()
270 static int mlxsw_sp_port_sb_cms_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_sb_cms_init() argument
272 return mlxsw_sp_sb_cms_init(mlxsw_sp_port->mlxsw_sp, in mlxsw_sp_port_sb_cms_init()
273 mlxsw_sp_port->local_port, mlxsw_sp_sb_cms, in mlxsw_sp_port_sb_cms_init()
319 static int mlxsw_sp_port_sb_pms_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_sb_pms_init() argument
329 mlxsw_reg_sbpm_pack(sbpm_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_sb_pms_init()
332 err = mlxsw_reg_write(mlxsw_sp_port->mlxsw_sp->core, in mlxsw_sp_port_sb_pms_init()
409 int mlxsw_sp_port_buffers_init(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_port_buffers_init() argument
[all …]