Lines Matching refs:max_ports
91 unsigned int max_ports; member
126 u32 max_ports; in mlxsw_core_resources_ports_register() local
128 max_ports = mlxsw_core->max_ports - 1; in mlxsw_core_resources_ports_register()
129 devlink_resource_size_params_init(&ports_num_params, max_ports, in mlxsw_core_resources_ports_register()
130 max_ports, 1, in mlxsw_core_resources_ports_register()
135 max_ports, MLXSW_CORE_RESOURCE_PORTS, in mlxsw_core_resources_ports_register()
147 mlxsw_core->max_ports = MLXSW_CORE_RES_GET(mlxsw_core, in mlxsw_ports_init()
150 mlxsw_core->max_ports = MLXSW_PORT_MAX_PORTS_DEFAULT + 1; in mlxsw_ports_init()
152 mlxsw_core->ports = kcalloc(mlxsw_core->max_ports, in mlxsw_ports_init()
186 return mlxsw_core->max_ports; in mlxsw_core_max_ports()
3032 (local_port >= mlxsw_core->max_ports)) in mlxsw_core_skb_receive()