Lines Matching refs:slot_index

49 	u8 slot_index;  member
113 mlxsw_m_port->slot_index, in mlxsw_m_get_module_info()
125 mlxsw_m_port->slot_index, in mlxsw_m_get_module_eeprom()
138 mlxsw_m_port->slot_index, in mlxsw_m_get_module_eeprom_by_page()
148 return mlxsw_env_reset_module(netdev, core, mlxsw_m_port->slot_index, in mlxsw_m_reset()
161 return mlxsw_env_get_module_power_mode(core, mlxsw_m_port->slot_index, in mlxsw_m_get_module_power_mode()
174 return mlxsw_env_set_module_power_mode(core, mlxsw_m_port->slot_index, in mlxsw_m_set_module_power_mode()
231 mlxsw_m_port_create(struct mlxsw_m *mlxsw_m, u16 local_port, u8 slot_index, in mlxsw_m_port_create() argument
238 err = mlxsw_core_port_init(mlxsw_m->core, local_port, slot_index, in mlxsw_m_port_create()
263 mlxsw_m_port->slot_index = slot_index; in mlxsw_m_port_create()
269 mlxsw_m_port->module_offset = mlxsw_m_port->slot_index ? in mlxsw_m_port_create()
270 (mlxsw_m_port->slot_index - 1) * in mlxsw_m_port_create()
314 mlxsw_m_port_mapping_get(struct mlxsw_m *mlxsw_m, u8 slot_index, u8 module) in mlxsw_m_port_mapping_get() argument
316 return &mlxsw_m->line_cards[slot_index]->module_to_port[module]; in mlxsw_m_port_mapping_get()
323 u8 module, width, slot_index; in mlxsw_m_port_module_map() local
329 &width, &slot_index); in mlxsw_m_port_module_map()
334 if (mlxsw_m->line_cards[slot_index]->active) in mlxsw_m_port_module_map()
345 mlxsw_env_module_port_map(mlxsw_m->core, slot_index, module); in mlxsw_m_port_module_map()
346 module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, module); in mlxsw_m_port_module_map()
353 mlxsw_m_port_module_unmap(struct mlxsw_m *mlxsw_m, u8 slot_index, u8 module) in mlxsw_m_port_module_unmap() argument
355 int *module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, in mlxsw_m_port_module_unmap()
358 mlxsw_env_module_port_unmap(mlxsw_m->core, slot_index, module); in mlxsw_m_port_module_unmap()
436 mlxsw_m_linecard_port_module_unmap(struct mlxsw_m *mlxsw_m, u8 slot_index) in mlxsw_m_linecard_port_module_unmap() argument
443 module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, i); in mlxsw_m_linecard_port_module_unmap()
445 mlxsw_m_port_module_unmap(mlxsw_m, slot_index, i); in mlxsw_m_linecard_port_module_unmap()
450 mlxsw_m_linecard_ports_create(struct mlxsw_m *mlxsw_m, u8 slot_index) in mlxsw_m_linecard_ports_create() argument
456 module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, i); in mlxsw_m_linecard_ports_create()
459 slot_index, i); in mlxsw_m_linecard_ports_create()
463 if (!mlxsw_m->line_cards[slot_index]->active) in mlxsw_m_linecard_ports_create()
464 mlxsw_m->line_cards[slot_index]->active = true; in mlxsw_m_linecard_ports_create()
471 module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, i); in mlxsw_m_linecard_ports_create()
476 if (mlxsw_m->line_cards[slot_index]->active) in mlxsw_m_linecard_ports_create()
477 mlxsw_m->line_cards[slot_index]->active = false; in mlxsw_m_linecard_ports_create()
484 mlxsw_m_linecard_ports_remove(struct mlxsw_m *mlxsw_m, u8 slot_index) in mlxsw_m_linecard_ports_remove() argument
490 slot_index, i); in mlxsw_m_linecard_ports_remove()
495 mlxsw_m_port_module_unmap(mlxsw_m, slot_index, i); in mlxsw_m_linecard_ports_remove()
552 linecard = mlxsw_m->line_cards[linecard_priv->slot_index]; in mlxsw_m_ports_remove_selected()
557 mlxsw_m_linecard_ports_remove(mlxsw_m, linecard_priv->slot_index); in mlxsw_m_ports_remove_selected()
580 mlxsw_m_got_active(struct mlxsw_core *mlxsw_core, u8 slot_index, void *priv) in mlxsw_m_got_active() argument
586 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_active()
597 err = mlxsw_m_linecard_ports_create(mlxsw_m, slot_index); in mlxsw_m_got_active()
600 slot_index); in mlxsw_m_got_active()
610 mlxsw_m_linecard_port_module_unmap(mlxsw_m, slot_index); in mlxsw_m_got_active()
614 mlxsw_m_got_inactive(struct mlxsw_core *mlxsw_core, u8 slot_index, void *priv) in mlxsw_m_got_inactive() argument
619 linecard = mlxsw_m->line_cards[slot_index]; in mlxsw_m_got_inactive()
624 mlxsw_m_linecard_ports_remove(mlxsw_m, slot_index); in mlxsw_m_got_inactive()