Lines Matching refs:iDev

176 static int ich9pciRegisterInternal(PICH9PCIBUS pBus, int iDev, PPCIDEVICE pPciDev, const char *pszName);
939 static DECLCALLBACK(int) ich9pciRegister(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, const char *pszName, int iDev)
948 || iDev >= (int)RT_ELEMENTS(pBus->apDevices)
951 AssertMsgFailed(("Invalid argument! pszName=%s pPciDev=%p iDev=%d\n", pszName, pPciDev, iDev));
958 return ich9pciRegisterInternal(pBus, iDev, pPciDev, pszName);
979 static DECLCALLBACK(int) ich9pcibridgeRegister(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, const char *pszName, int iDev)
989 || iDev >= (int)RT_ELEMENTS(pBus->apDevices))
991 AssertMsgFailed(("Invalid argument! pszName=%s pPciDev=%p iDev=%d\n", pszName, pPciDev, iDev));
998 return ich9pciRegisterInternal(pBus, iDev, pPciDev, pszName);
1669 for (int iDev = 0; iDev <= 255; iDev++)
1670 ich9pciBiosInitDevice(pGlobals, uBridgeBus, iDev);
2252 static int ich9pciRegisterInternal(PICH9PCIBUS pBus, int iDev, PPCIDEVICE pPciDev, const char *pszName)
2262 if (!assignPosition(pBus, pPciDev, pszName, iDev, &aPosition))
2273 iDev = aPosition.iDeviceFunc;
2279 pBus->apDevices[iDev] &&
2280 pciDevIsRequestedDevfunc(pBus->apDevices[iDev]))
2283 pszName, pBus->apDevices[iDev]->name, iDev));
2287 if (pBus->apDevices[iDev])
2290 bool assigned = assignPosition(pBus, pBus->apDevices[iDev], pBus->apDevices[iDev]->name, -1, &aPosition);
2295 if (!assigned || iRelDev == iDev)
2303 if (!pBus->apDevices[iDev + i])
2305 Log(("PCI: relocating '%s' from slot %#x to %#x\n", pBus->apDevices[iDev + i]->name, iDev + i, iRelDev + i));
2306 pBus->apDevices[iRelDev + i] = pBus->apDevices[iDev + i];
2308 pBus->apDevices[iDev + i] = NULL;
2315 pPciDev->devfn = iDev;
2322 pBus->apDevices[iDev] = pPciDev;
2334 iDev >> 3, iDev & 7, pBus->iBus, 0x80000000 | (iDev << 8), pszName));
2349 for (uint32_t iDev = 0; iDev < RT_ELEMENTS(pBus->apDevices); iDev++)
2351 PPCIDEVICE pPciDev = pBus->apDevices[iDev];
2361 pBus->iBus, (iDev >> 3) & 0xff, iDev & 0x7,