Lines Matching refs:iDev

1006                 for (int iDev = 0; iDev <= 255; iDev++)
1007 pci_bios_init_device(pGlobals, uBus + 1, iDev, cBridgeDepth + 1, paBridgePositions);
1611 * @param iDev The PCI device ordinal.
1615 static int pciR3RegisterDeviceInternal(PPCIBUS pBus, int iDev, PPCIDEVICE pPciDev, const char *pszName)
1620 if (iDev < 0)
1628 iDev = 9;
1633 iDev = 0xf8;
1637 for (iDev = pBus->iDevSearch; iDev < (int)RT_ELEMENTS(pBus->devices); iDev += 8)
1638 if ( !pBus->devices[iDev]
1639 && !pBus->devices[iDev + 1]
1640 && !pBus->devices[iDev + 2]
1641 && !pBus->devices[iDev + 3]
1642 && !pBus->devices[iDev + 4]
1643 && !pBus->devices[iDev + 5]
1644 && !pBus->devices[iDev + 6]
1645 && !pBus->devices[iDev + 7])
1647 if (iDev >= (int)RT_ELEMENTS(pBus->devices))
1668 //AssertReleaseMsg(iDev > 8 || pBus->iBus != 0, ("iDev=%d pszName=%s\n", iDev, pszName));
1669 if (pBus->devices[iDev])
1672 AssertReleaseMsg(!(iDev % 8), ("PCI Configuration Conflict! iDev=%d pszName=%s clashes with %s\n",
1673 iDev, pszName, pBus->devices[iDev]->name));
1674 if ( pciDevIsRequestedDevfunc(pBus->devices[iDev])
1675 || (pBus->devices[iDev + 1] && pciDevIsRequestedDevfunc(pBus->devices[iDev + 1]))
1676 || (pBus->devices[iDev + 2] && pciDevIsRequestedDevfunc(pBus->devices[iDev + 2]))
1677 || (pBus->devices[iDev + 3] && pciDevIsRequestedDevfunc(pBus->devices[iDev + 3]))
1678 || (pBus->devices[iDev + 4] && pciDevIsRequestedDevfunc(pBus->devices[iDev + 4]))
1679 || (pBus->devices[iDev + 5] && pciDevIsRequestedDevfunc(pBus->devices[iDev + 5]))
1680 || (pBus->devices[iDev + 6] && pciDevIsRequestedDevfunc(pBus->devices[iDev + 6]))
1681 || (pBus->devices[iDev + 7] && pciDevIsRequestedDevfunc(pBus->devices[iDev + 7])))
1684 pszName, pBus->devices[iDev]->name, iDev));
1703 if (!pBus->devices[iDev + i])
1705 Log(("PCI: relocating '%s' from slot %#x to %#x\n", pBus->devices[iDev + i]->name, iDev + i, iDevRel + i));
1706 pBus->devices[iDevRel + i] = pBus->devices[iDev + i];
1708 pBus->devices[iDev + i] = NULL;
1712 if (pBus->devices[iDev])
1721 Assert(!pBus->devices[iDev]);
1722 pPciDev->devfn = iDev;
1729 pBus->devices[iDev] = pPciDev;
1740 iDev >> 3, iDev & 7, 0x80000000 | (iDev << 8), pszName));
1749 static DECLCALLBACK(int) pciR3Register(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, const char *pszName, int iDev)
1758 || iDev >= (int)RT_ELEMENTS(pBus->devices)
1759 || (iDev >= 0 && iDev <= 8))
1761 AssertMsgFailed(("Invalid argument! pszName=%s pPciDev=%p iDev=%d\n", pszName, pPciDev, iDev));
1768 return pciR3RegisterDeviceInternal(pBus, iDev, pPciDev, pszName);
1939 for (uint32_t iDev = 0; iDev < RT_ELEMENTS(pBus->devices); iDev++)
1941 PPCIDEVICE pPciDev = pBus->devices[iDev];
1951 pBus->iBus, (iDev >> 3) & 0xff, iDev & 0x7,
2433 static DECLCALLBACK(int) pcibridgeR3RegisterDevice(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, const char *pszName, int iDev)
2442 || iDev >= (int)RT_ELEMENTS(pBus->devices))
2444 AssertMsgFailed(("Invalid argument! pszName=%s pPciDev=%p iDev=%d\n", pszName, pPciDev, iDev));
2451 return pciR3RegisterDeviceInternal(pBus, iDev, pPciDev, pszName);