Lines Matching refs:ports
29 struct mlxsw_sx_port **ports;
1063 mlxsw_sx->ports[local_port] = mlxsw_sx_port;
1108 struct mlxsw_sx_port *mlxsw_sx_port = mlxsw_sx->ports[local_port];
1112 mlxsw_sx->ports[local_port] = NULL;
1120 return mlxsw_sx->ports[local_port] != NULL;
1190 mlxsw_sx->ports[local_port] = mlxsw_sx_port;
1206 struct mlxsw_sx_port *mlxsw_sx_port = mlxsw_sx->ports[local_port];
1209 mlxsw_sx->ports[local_port] = NULL;
1239 kfree(mlxsw_sx->ports);
1240 mlxsw_sx->ports = NULL;
1252 mlxsw_sx->ports = kzalloc(alloc_size, GFP_KERNEL);
1253 if (!mlxsw_sx->ports)
1274 kfree(mlxsw_sx->ports);
1275 mlxsw_sx->ports = NULL;
1312 mlxsw_sx_port = mlxsw_sx->ports[local_port];
1331 struct mlxsw_sx_port *mlxsw_sx_port = mlxsw_sx->ports[local_port];
1359 if (!mlxsw_sx->ports || !mlxsw_sx->ports[local_port]) {
1570 dev_err(mlxsw_sx->bus_info->dev, "Failed to create ports\n");