Lines Matching refs:module_to_port
31 int module_to_port[]; member
316 return &mlxsw_m->line_cards[slot_index]->module_to_port[module]; in mlxsw_m_port_mapping_get()
324 int *module_to_port; in mlxsw_m_port_module_map() local
346 module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, module); in mlxsw_m_port_module_map()
347 *module_to_port = local_port; in mlxsw_m_port_module_map()
355 int *module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, in mlxsw_m_port_module_unmap() local
357 *module_to_port = -1; in mlxsw_m_port_module_unmap()
402 module_to_port, in mlxsw_m_linecards_init()
412 mlxsw_m->line_cards[i]->module_to_port[j] = -1; in mlxsw_m_linecards_init()
442 int *module_to_port; in mlxsw_m_linecard_port_module_unmap() local
444 module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, i); in mlxsw_m_linecard_port_module_unmap()
445 if (*module_to_port > 0) in mlxsw_m_linecard_port_module_unmap()
453 int *module_to_port; in mlxsw_m_linecard_ports_create() local
457 module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, i); in mlxsw_m_linecard_ports_create()
458 if (*module_to_port > 0) { in mlxsw_m_linecard_ports_create()
459 err = mlxsw_m_port_create(mlxsw_m, *module_to_port, in mlxsw_m_linecard_ports_create()
472 module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, slot_index, i); in mlxsw_m_linecard_ports_create()
473 if (*module_to_port > 0 && in mlxsw_m_linecard_ports_create()
474 mlxsw_m_port_created(mlxsw_m, *module_to_port)) { in mlxsw_m_linecard_ports_create()
475 mlxsw_m_port_remove(mlxsw_m, *module_to_port); in mlxsw_m_linecard_ports_create()
490 int *module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, in mlxsw_m_linecard_ports_remove() local
493 if (*module_to_port > 0 && in mlxsw_m_linecard_ports_remove()
494 mlxsw_m_port_created(mlxsw_m, *module_to_port)) { in mlxsw_m_linecard_ports_remove()
495 mlxsw_m_port_remove(mlxsw_m, *module_to_port); in mlxsw_m_linecard_ports_remove()