Lines Matching refs:base_port

3138 static int mlxsw_sp_port_split_create(struct mlxsw_sp *mlxsw_sp, u8 base_port,  in mlxsw_sp_port_split_create()  argument
3145 err = mlxsw_sp_port_create(mlxsw_sp, base_port + i, true, in mlxsw_sp_port_split_create()
3155 if (mlxsw_sp_port_created(mlxsw_sp, base_port + i)) in mlxsw_sp_port_split_create()
3156 mlxsw_sp_port_remove(mlxsw_sp, base_port + i); in mlxsw_sp_port_split_create()
3161 u8 base_port, unsigned int count) in mlxsw_sp_port_unsplit_create() argument
3172 local_port = base_port + i * 2; in mlxsw_sp_port_unsplit_create()
3188 u8 module, cur_width, base_port; in mlxsw_sp_port_split() local
3217 base_port = local_port; in mlxsw_sp_port_split()
3218 if (mlxsw_sp->ports[base_port + 1]) { in mlxsw_sp_port_split()
3224 base_port = mlxsw_sp_cluster_base_port_get(local_port); in mlxsw_sp_port_split()
3225 if (mlxsw_sp->ports[base_port + 1] || in mlxsw_sp_port_split()
3226 mlxsw_sp->ports[base_port + 3]) { in mlxsw_sp_port_split()
3234 if (mlxsw_sp_port_created(mlxsw_sp, base_port + i)) in mlxsw_sp_port_split()
3235 mlxsw_sp_port_remove(mlxsw_sp, base_port + i); in mlxsw_sp_port_split()
3237 err = mlxsw_sp_port_split_create(mlxsw_sp, base_port, module, count); in mlxsw_sp_port_split()
3246 mlxsw_sp_port_unsplit_create(mlxsw_sp, base_port, count); in mlxsw_sp_port_split()
3255 u8 cur_width, base_port; in mlxsw_sp_port_unsplit() local
3276 base_port = mlxsw_sp_cluster_base_port_get(local_port); in mlxsw_sp_port_unsplit()
3279 if (count == 2 && local_port >= base_port + 2) in mlxsw_sp_port_unsplit()
3280 base_port = base_port + 2; in mlxsw_sp_port_unsplit()
3283 if (mlxsw_sp_port_created(mlxsw_sp, base_port + i)) in mlxsw_sp_port_unsplit()
3284 mlxsw_sp_port_remove(mlxsw_sp, base_port + i); in mlxsw_sp_port_unsplit()
3286 mlxsw_sp_port_unsplit_create(mlxsw_sp, base_port, count); in mlxsw_sp_port_unsplit()