Lines Matching refs:base_port
4002 static int mlxsw_sp_port_split_create(struct mlxsw_sp *mlxsw_sp, u8 base_port, in mlxsw_sp_port_split_create() argument
4009 err = mlxsw_sp_port_create(mlxsw_sp, base_port + i * offset, in mlxsw_sp_port_split_create()
4019 if (mlxsw_sp_port_created(mlxsw_sp, base_port + i * offset)) in mlxsw_sp_port_split_create()
4020 mlxsw_sp_port_remove(mlxsw_sp, base_port + i * offset); in mlxsw_sp_port_split_create()
4025 u8 base_port, unsigned int count) in mlxsw_sp_port_unsplit_create() argument
4036 local_port = base_port + i * 2; in mlxsw_sp_port_unsplit_create()
4053 u8 module, cur_width, base_port; in mlxsw_sp_port_split() local
4090 base_port = local_port; in mlxsw_sp_port_split()
4091 if (mlxsw_sp->ports[base_port + local_ports_in_2x]) { in mlxsw_sp_port_split()
4098 base_port = mlxsw_sp_cluster_base_port_get(local_port); in mlxsw_sp_port_split()
4099 if (mlxsw_sp->ports[base_port + 1] || in mlxsw_sp_port_split()
4100 mlxsw_sp->ports[base_port + 3]) { in mlxsw_sp_port_split()
4108 if (mlxsw_sp_port_created(mlxsw_sp, base_port + i * offset)) in mlxsw_sp_port_split()
4109 mlxsw_sp_port_remove(mlxsw_sp, base_port + i * offset); in mlxsw_sp_port_split()
4111 err = mlxsw_sp_port_split_create(mlxsw_sp, base_port, module, count, in mlxsw_sp_port_split()
4121 mlxsw_sp_port_unsplit_create(mlxsw_sp, base_port, count); in mlxsw_sp_port_split()
4131 u8 cur_width, base_port; in mlxsw_sp_port_unsplit() local
4164 base_port = mlxsw_sp_cluster_base_port_get(local_port); in mlxsw_sp_port_unsplit()
4167 if (count == 2 && local_port >= base_port + 2) in mlxsw_sp_port_unsplit()
4168 base_port = base_port + 2; in mlxsw_sp_port_unsplit()
4171 if (mlxsw_sp_port_created(mlxsw_sp, base_port + i * offset)) in mlxsw_sp_port_unsplit()
4172 mlxsw_sp_port_remove(mlxsw_sp, base_port + i * offset); in mlxsw_sp_port_unsplit()
4174 mlxsw_sp_port_unsplit_create(mlxsw_sp, base_port, count); in mlxsw_sp_port_unsplit()