Home
last modified time | relevance | path

Searched refs:module_to_port (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dminimal.c31 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
453 int *module_to_port; mlxsw_m_linecard_ports_create() local
490 int *module_to_port = mlxsw_m_port_mapping_get(mlxsw_m, mlxsw_m_linecard_ports_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dminimal.c31 int *module_to_port; member
256 mlxsw_m->module_to_port[module] = ++mlxsw_m->max_ports; in mlxsw_m_port_module_map()
263 mlxsw_m->module_to_port[module] = -1; in mlxsw_m_port_module_unmap()
278 mlxsw_m->module_to_port = kmalloc_array(max_ports, sizeof(int), in mlxsw_m_ports_create()
280 if (!mlxsw_m->module_to_port) { in mlxsw_m_ports_create()
287 mlxsw_m->module_to_port[i] = -1; in mlxsw_m_ports_create()
298 if (mlxsw_m->module_to_port[i] > 0) { in mlxsw_m_ports_create()
300 mlxsw_m->module_to_port[i], in mlxsw_m_ports_create()
311 if (mlxsw_m->module_to_port[i] > 0) in mlxsw_m_ports_create()
313 mlxsw_m->module_to_port[ in mlxsw_m_ports_create()
[all...]

Completed in 2 milliseconds