Lines Matching refs:mlxsw_sp_port
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()
200 struct mlxsw_sp_port *dest_port = span_entry->parms.dest_port; in mlxsw_sp_span_entry_deconfigure_common()
304 struct mlxsw_sp_port *port; in mlxsw_sp_span_entry_bridge()
481 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_gretap4_configure()
585 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_gretap6_configure()
651 struct mlxsw_sp_port *dest_port = sparms.dest_port; in mlxsw_sp_span_entry_vlan_configure()
977 static int mlxsw_sp_span_port_buffer_update(struct mlxsw_sp_port *mlxsw_sp_port, bool enable) in mlxsw_sp_span_port_buffer_update() argument
981 hdroom = *mlxsw_sp_port->hdroom; in mlxsw_sp_span_port_buffer_update()
983 mlxsw_sp_hdroom_bufs_reset_sizes(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update()
985 return mlxsw_sp_hdroom_configure(mlxsw_sp_port, &hdroom); in mlxsw_sp_span_port_buffer_update()
989 mlxsw_sp_span_port_buffer_enable(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_port_buffer_enable() argument
991 return mlxsw_sp_span_port_buffer_update(mlxsw_sp_port, true); in mlxsw_sp_span_port_buffer_enable()
994 static void mlxsw_sp_span_port_buffer_disable(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_port_buffer_disable() argument
996 mlxsw_sp_span_port_buffer_update(mlxsw_sp_port, false); in mlxsw_sp_span_port_buffer_disable()
1116 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_create() argument
1127 analyzed_port->local_port = mlxsw_sp_port->local_port; in mlxsw_sp_span_analyzed_port_create()
1135 err = mlxsw_sp_span_port_buffer_enable(mlxsw_sp_port); in mlxsw_sp_span_analyzed_port_create()
1149 mlxsw_sp_span_analyzed_port_destroy(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_destroy() argument
1157 mlxsw_sp_span_port_buffer_disable(mlxsw_sp_port); in mlxsw_sp_span_analyzed_port_destroy()
1163 int mlxsw_sp_span_analyzed_port_get(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_get() argument
1166 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_span_analyzed_port_get()
1168 u16 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_span_analyzed_port_get()
1181 mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_get()
1191 void mlxsw_sp_span_analyzed_port_put(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_analyzed_port_put() argument
1194 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_span_analyzed_port_put()
1196 u16 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_span_analyzed_port_put()
1208 mlxsw_sp_span_analyzed_port_destroy(mlxsw_sp_port, analyzed_port); in mlxsw_sp_span_analyzed_port_put()
1263 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_trigger_port_matches() argument
1266 trigger_entry->local_port == mlxsw_sp_port->local_port; in mlxsw_sp_span_trigger_port_matches()
1272 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) in mlxsw_sp_span_trigger_port_enable() argument
1281 struct mlxsw_sp_port *mlxsw_sp_port, u8 tc) in mlxsw_sp_span_trigger_port_disable() argument
1311 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp1_span_trigger_global_matches() argument
1320 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_span_trigger_global_enable() argument
1329 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp1_span_trigger_global_disable() argument
1394 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp2_span_trigger_global_matches() argument
1402 struct mlxsw_sp_port *mlxsw_sp_port, in __mlxsw_sp2_span_trigger_global_enable() argument
1428 mlxsw_reg_momte_pack(momte_pl, mlxsw_sp_port->local_port, type); in __mlxsw_sp2_span_trigger_global_enable()
1440 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp2_span_trigger_global_enable() argument
1444 mlxsw_sp_port, tc, true); in mlxsw_sp2_span_trigger_global_enable()
1450 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp2_span_trigger_global_disable() argument
1453 __mlxsw_sp2_span_trigger_global_enable(trigger_entry, mlxsw_sp_port, tc, in mlxsw_sp2_span_trigger_global_disable()
1500 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_trigger_entry_create() argument
1512 trigger_entry->local_port = mlxsw_sp_port ? mlxsw_sp_port->local_port : in mlxsw_sp_span_trigger_entry_create()
1545 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_span_trigger_entry_find() argument
1551 mlxsw_sp_port)) in mlxsw_sp_span_trigger_entry_find()
1560 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_agent_bind() argument
1573 mlxsw_sp_port); in mlxsw_sp_span_agent_bind()
1585 mlxsw_sp_port, in mlxsw_sp_span_agent_bind()
1596 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_agent_unbind() argument
1609 mlxsw_sp_port); in mlxsw_sp_span_agent_unbind()
1619 int mlxsw_sp_span_trigger_enable(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_trigger_enable() argument
1622 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_span_trigger_enable()
1629 mlxsw_sp_port); in mlxsw_sp_span_trigger_enable()
1633 return trigger_entry->ops->enable(trigger_entry, mlxsw_sp_port, tc); in mlxsw_sp_span_trigger_enable()
1636 void mlxsw_sp_span_trigger_disable(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_span_trigger_disable() argument
1639 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_span_trigger_disable()
1646 mlxsw_sp_port); in mlxsw_sp_span_trigger_disable()
1650 return trigger_entry->ops->disable(trigger_entry, mlxsw_sp_port, tc); in mlxsw_sp_span_trigger_disable()