Lines Matching refs:max_ports
35 u8 max_ports; member
294 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_port_module_map() local
311 if (WARN_ON_ONCE(module >= max_ports)) in mlxsw_m_port_module_map()
314 mlxsw_m->module_to_port[module] = ++mlxsw_m->max_ports; in mlxsw_m_port_module_map()
327 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_ports_create() local
328 u8 last_module = max_ports; in mlxsw_m_ports_create()
332 mlxsw_m->ports = kcalloc(max_ports, sizeof(*mlxsw_m->ports), in mlxsw_m_ports_create()
337 mlxsw_m->module_to_port = kmalloc_array(max_ports, sizeof(int), in mlxsw_m_ports_create()
345 for (i = 0; i < max_ports; i++) in mlxsw_m_ports_create()
349 for (i = 1; i < max_ports; i++) { in mlxsw_m_ports_create()
356 for (i = 0; i < mlxsw_m->max_ports; i++) { in mlxsw_m_ports_create()
375 i = max_ports; in mlxsw_m_ports_create()
389 for (i = 0; i < mlxsw_m->max_ports; i++) { in mlxsw_m_ports_remove()