mlxsw_sx           47 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx;
mlxsw_sx          161 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          167 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(paos), paos_pl);
mlxsw_sx          173 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          179 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(paos), paos_pl);
mlxsw_sx          190 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          196 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(pmtu), pmtu_pl);
mlxsw_sx          205 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(pmtu), pmtu_pl);
mlxsw_sx          224 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          230 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(plib), plib_pl);
mlxsw_sx          236 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          240 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(pspa), pspa_pl);
mlxsw_sx          246 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          250 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sspr), sspr_pl);
mlxsw_sx          253 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static int mlxsw_sx_port_module_info_get(struct mlxsw_sx *mlxsw_sx,
mlxsw_sx          261 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(pmlp), pmlp_pl);
mlxsw_sx          293 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          310 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	if (mlxsw_core_skb_transmit_busy(mlxsw_sx->core, &tx_info))
mlxsw_sx          321 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_core_skb_transmit(mlxsw_sx->core, skb, &tx_info);
mlxsw_sx          383 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          385 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_core_port_devlink_port_get(mlxsw_sx->core,
mlxsw_sx          402 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          409 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		 mlxsw_sx->bus_info->fw_rev.major,
mlxsw_sx          410 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		 mlxsw_sx->bus_info->fw_rev.minor,
mlxsw_sx          411 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		 mlxsw_sx->bus_info->fw_rev.subminor);
mlxsw_sx          412 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	strlcpy(drvinfo->bus_info, mlxsw_sx->bus_info->device_name,
mlxsw_sx          523 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          530 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ppcnt), ppcnt_pl);
mlxsw_sx          738 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          747 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
mlxsw_sx          817 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          837 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
mlxsw_sx          855 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
mlxsw_sx          894 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static int mlxsw_sx_hw_id_get(struct mlxsw_sx *mlxsw_sx)
mlxsw_sx          899 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(spad), spad_pl);
mlxsw_sx          902 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_reg_spad_base_mac_memcpy_from(spad_pl, mlxsw_sx->hw_id);
mlxsw_sx          908 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          914 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_query(mlxsw_sx->core, MLXSW_REG(ppad), ppad_pl);
mlxsw_sx          929 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          938 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(spms), spms_pl);
mlxsw_sx          946 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          951 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
mlxsw_sx          957 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          965 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(ptys), ptys_pl);
mlxsw_sx          972 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_sx_port->mlxsw_sx;
mlxsw_sx          976 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(spmlr), spmlr_pl);
mlxsw_sx          979 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static int __mlxsw_sx_port_eth_create(struct mlxsw_sx *mlxsw_sx, u8 local_port,
mlxsw_sx          989 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	SET_NETDEV_DEV(dev, mlxsw_sx->bus_info->dev);
mlxsw_sx          992 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx_port->mlxsw_sx = mlxsw_sx;
mlxsw_sx         1008 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Unable to get port mac address\n",
mlxsw_sx         1028 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set system port mapping\n",
mlxsw_sx         1035 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set SWID\n",
mlxsw_sx         1042 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set speed\n",
mlxsw_sx         1049 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set MTU\n",
mlxsw_sx         1062 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set STP state\n",
mlxsw_sx         1070 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set MAC learning mode\n",
mlxsw_sx         1077 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to register netdev\n",
mlxsw_sx         1082 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_eth_set(mlxsw_sx->core, mlxsw_sx_port->local_port,
mlxsw_sx         1084 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->ports[local_port] = mlxsw_sx_port;
mlxsw_sx         1103 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static int mlxsw_sx_port_eth_create(struct mlxsw_sx *mlxsw_sx, u8 local_port,
mlxsw_sx         1108 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_core_port_init(mlxsw_sx->core, local_port,
mlxsw_sx         1110 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 				   mlxsw_sx->hw_id, sizeof(mlxsw_sx->hw_id));
mlxsw_sx         1112 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to init core port\n",
mlxsw_sx         1116 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = __mlxsw_sx_port_eth_create(mlxsw_sx, local_port, module, width);
mlxsw_sx         1123 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_fini(mlxsw_sx->core, local_port);
mlxsw_sx         1127 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static void __mlxsw_sx_port_eth_remove(struct mlxsw_sx *mlxsw_sx, u8 local_port)
mlxsw_sx         1129 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx_port *mlxsw_sx_port = mlxsw_sx->ports[local_port];
mlxsw_sx         1131 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_clear(mlxsw_sx->core, local_port, mlxsw_sx);
mlxsw_sx         1133 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->ports[local_port] = NULL;
mlxsw_sx         1139 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static bool mlxsw_sx_port_created(struct mlxsw_sx *mlxsw_sx, u8 local_port)
mlxsw_sx         1141 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_sx->ports[local_port] != NULL;
mlxsw_sx         1144 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static int __mlxsw_sx_port_ib_create(struct mlxsw_sx *mlxsw_sx, u8 local_port,
mlxsw_sx         1153 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx_port->mlxsw_sx = mlxsw_sx;
mlxsw_sx         1159 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set system port mapping\n",
mlxsw_sx         1167 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set SWID\n",
mlxsw_sx         1175 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set IB port\n",
mlxsw_sx         1187 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set speed\n",
mlxsw_sx         1197 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to set MTU\n",
mlxsw_sx         1204 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port %d: Failed to change admin state to UP\n",
mlxsw_sx         1209 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_ib_set(mlxsw_sx->core, mlxsw_sx_port->local_port,
mlxsw_sx         1211 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->ports[local_port] = mlxsw_sx_port;
mlxsw_sx         1225 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static void __mlxsw_sx_port_ib_remove(struct mlxsw_sx *mlxsw_sx, u8 local_port)
mlxsw_sx         1227 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx_port *mlxsw_sx_port = mlxsw_sx->ports[local_port];
mlxsw_sx         1229 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_clear(mlxsw_sx->core, local_port, mlxsw_sx);
mlxsw_sx         1230 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->ports[local_port] = NULL;
mlxsw_sx         1236 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static void __mlxsw_sx_port_remove(struct mlxsw_sx *mlxsw_sx, u8 local_port)
mlxsw_sx         1239 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		mlxsw_core_port_type_get(mlxsw_sx->core, local_port);
mlxsw_sx         1242 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		__mlxsw_sx_port_eth_remove(mlxsw_sx, local_port);
mlxsw_sx         1244 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		__mlxsw_sx_port_ib_remove(mlxsw_sx, local_port);
mlxsw_sx         1247 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static void mlxsw_sx_port_remove(struct mlxsw_sx *mlxsw_sx, u8 local_port)
mlxsw_sx         1249 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	__mlxsw_sx_port_remove(mlxsw_sx, local_port);
mlxsw_sx         1250 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_core_port_fini(mlxsw_sx->core, local_port);
mlxsw_sx         1253 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static void mlxsw_sx_ports_remove(struct mlxsw_sx *mlxsw_sx)
mlxsw_sx         1257 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	for (i = 1; i < mlxsw_core_max_ports(mlxsw_sx->core); i++)
mlxsw_sx         1258 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		if (mlxsw_sx_port_created(mlxsw_sx, i))
mlxsw_sx         1259 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 			mlxsw_sx_port_remove(mlxsw_sx, i);
mlxsw_sx         1260 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	kfree(mlxsw_sx->ports);
mlxsw_sx         1261 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->ports = NULL;
mlxsw_sx         1264 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static int mlxsw_sx_ports_create(struct mlxsw_sx *mlxsw_sx)
mlxsw_sx         1266 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sx->core);
mlxsw_sx         1273 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->ports = kzalloc(alloc_size, GFP_KERNEL);
mlxsw_sx         1274 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	if (!mlxsw_sx->ports)
mlxsw_sx         1278 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		err = mlxsw_sx_port_module_info_get(mlxsw_sx, i, &module,
mlxsw_sx         1284 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		err = mlxsw_sx_port_eth_create(mlxsw_sx, i, module, width);
mlxsw_sx         1293 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		if (mlxsw_sx_port_created(mlxsw_sx, i))
mlxsw_sx         1294 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 			mlxsw_sx_port_remove(mlxsw_sx, i);
mlxsw_sx         1295 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	kfree(mlxsw_sx->ports);
mlxsw_sx         1296 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->ports = NULL;
mlxsw_sx         1326 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = priv;
mlxsw_sx         1333 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx_port = mlxsw_sx->ports[local_port];
mlxsw_sx         1335 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_warn(mlxsw_sx->bus_info->dev, "Port %d: Link event received for non-existent port\n",
mlxsw_sx         1341 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	port_type = mlxsw_core_port_type_get(mlxsw_sx->core, local_port);
mlxsw_sx         1351 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = priv;
mlxsw_sx         1352 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx_port *mlxsw_sx_port = mlxsw_sx->ports[local_port];
mlxsw_sx         1356 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_warn_ratelimited(mlxsw_sx->bus_info->dev, "Port %d: skb received for non-existent port\n",
mlxsw_sx         1376 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_core_driver_priv(mlxsw_core);
mlxsw_sx         1380 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	if (!mlxsw_sx->ports || !mlxsw_sx->ports[local_port]) {
mlxsw_sx         1381 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Port number \"%d\" does not exist\n",
mlxsw_sx         1389 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	__mlxsw_sx_port_remove(mlxsw_sx, local_port);
mlxsw_sx         1390 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_sx_port_module_info_get(mlxsw_sx, local_port, &module,
mlxsw_sx         1396 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		err = __mlxsw_sx_port_eth_create(mlxsw_sx, local_port, module,
mlxsw_sx         1399 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		err = __mlxsw_sx_port_ib_create(mlxsw_sx, local_port, module,
mlxsw_sx         1428 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static int mlxsw_sx_traps_init(struct mlxsw_sx *mlxsw_sx)
mlxsw_sx         1441 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(htgt), htgt_pl);
mlxsw_sx         1452 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(htgt), htgt_pl);
mlxsw_sx         1457 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		err = mlxsw_core_trap_register(mlxsw_sx->core,
mlxsw_sx         1459 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 					       mlxsw_sx);
mlxsw_sx         1468 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		mlxsw_core_trap_unregister(mlxsw_sx->core,
mlxsw_sx         1470 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 					   mlxsw_sx);
mlxsw_sx         1475 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static void mlxsw_sx_traps_fini(struct mlxsw_sx *mlxsw_sx)
mlxsw_sx         1480 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		mlxsw_core_trap_unregister(mlxsw_sx->core,
mlxsw_sx         1482 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 					   mlxsw_sx);
mlxsw_sx         1486 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static int mlxsw_sx_flood_init(struct mlxsw_sx *mlxsw_sx)
mlxsw_sx         1499 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sftr), sftr_pl);
mlxsw_sx         1510 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
mlxsw_sx         1519 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
mlxsw_sx         1528 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
mlxsw_sx         1537 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
mlxsw_sx         1546 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sfgc), sfgc_pl);
mlxsw_sx         1551 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	return mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(sgcr), sgcr_pl);
mlxsw_sx         1571 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_core_driver_priv(mlxsw_core);
mlxsw_sx         1574 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->core = mlxsw_core;
mlxsw_sx         1575 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx->bus_info = mlxsw_bus_info;
mlxsw_sx         1577 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_sx_hw_id_get(mlxsw_sx);
mlxsw_sx         1579 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Failed to get switch HW ID\n");
mlxsw_sx         1583 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_sx_ports_create(mlxsw_sx);
mlxsw_sx         1585 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Failed to create ports\n");
mlxsw_sx         1589 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_sx_traps_init(mlxsw_sx);
mlxsw_sx         1591 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Failed to set traps\n");
mlxsw_sx         1595 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	err = mlxsw_sx_flood_init(mlxsw_sx);
mlxsw_sx         1597 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 		dev_err(mlxsw_sx->bus_info->dev, "Failed to initialize flood tables\n");
mlxsw_sx         1604 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx_traps_fini(mlxsw_sx);
mlxsw_sx         1606 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx_ports_remove(mlxsw_sx);
mlxsw_sx         1612 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	struct mlxsw_sx *mlxsw_sx = mlxsw_core_driver_priv(mlxsw_core);
mlxsw_sx         1614 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx_traps_fini(mlxsw_sx);
mlxsw_sx         1615 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	mlxsw_sx_ports_remove(mlxsw_sx);
mlxsw_sx         1654 drivers/net/ethernet/mellanox/mlxsw/switchx2.c 	.priv_size		= sizeof(struct mlxsw_sx),