Lines Matching refs:mlxsw_core
110 struct mlxsw_core *core;
1507 static int mlxsw_pci_init(void *bus_priv, struct mlxsw_core *mlxsw_core, in mlxsw_pci_init() argument
1517 mlxsw_pci->core = mlxsw_core; in mlxsw_pci_init()
1533 err = mlxsw_cmd_query_fw(mlxsw_core, mbox); in mlxsw_pci_init()
1594 err = mlxsw_core_resources_query(mlxsw_core, mbox, res); in mlxsw_pci_init()
1598 if (MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V2) && in mlxsw_pci_init()
1599 MLXSW_CORE_RES_GET(mlxsw_core, CQE_V2)) in mlxsw_pci_init()
1601 else if (MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V1) && in mlxsw_pci_init()
1602 MLXSW_CORE_RES_GET(mlxsw_core, CQE_V1)) in mlxsw_pci_init()
1604 else if ((MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V0) && in mlxsw_pci_init()
1605 MLXSW_CORE_RES_GET(mlxsw_core, CQE_V0)) || in mlxsw_pci_init()
1606 !MLXSW_CORE_RES_VALID(mlxsw_core, CQE_V0)) { in mlxsw_pci_init()
1621 err = mlxsw_core_resources_query(mlxsw_core, mbox, res); in mlxsw_pci_init()