Home
last modified time | relevance | path

Searched refs:DeviceCount (Results 1 – 13 of 13) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/SataControllerDxe/
DSataController.c421 Private->DeviceCount = IDE_MAX_DEVICES; in SataControllerStart()
430 Private->DeviceCount = AHCI_MAX_DEVICES; in SataControllerStart()
432 Private->DeviceCount = AHCI_MULTI_MAX_DEVICES; in SataControllerStart()
436 TotalCount = (UINTN) (Private->IdeInit.ChannelCount) * (UINTN) (Private->DeviceCount); in SataControllerStart()
599 ASSERT (Device < Private->DeviceCount); in FlatDeviceIndex()
601 return Channel * Private->DeviceCount + Device; in FlatDeviceIndex()
658 *MaxDevices = Private->DeviceCount; in IdeInitGetChannelInfo()
756 if ((Channel >= This->ChannelCount) || (Device >= Private->DeviceCount)) { in IdeInitSubmitData()
835 if ((Channel >= This->ChannelCount) || (BadModes == NULL) || (Device >= Private->DeviceCount)) { in IdeInitDisqualifyMode()
928 …((Channel >= This->ChannelCount) || (SupportedModes == NULL) || (Device >= Private->DeviceCount)) { in IdeInitCalculateMode()
DSataController.h93 UINT8 DeviceCount; member
/device/linaro/bootloader/edk2/CorebootModulePkg/SataControllerDxe/
DSataController.c451 SataPrivateData->DeviceCount = IDE_MAX_DEVICES; in SataControllerStart()
460 SataPrivateData->DeviceCount = AHCI_MAX_DEVICES; in SataControllerStart()
462 SataPrivateData->DeviceCount = AHCI_MULTI_MAX_DEVICES; in SataControllerStart()
466 …ceCount = (UINTN) (SataPrivateData->IdeInit.ChannelCount) * (UINTN) (SataPrivateData->DeviceCount); in SataControllerStart()
629 ASSERT (Device < SataPrivateData->DeviceCount); in FlatDeviceIndex()
631 return Channel * SataPrivateData->DeviceCount + Device; in FlatDeviceIndex()
688 *MaxDevices = SataPrivateData->DeviceCount; in IdeInitGetChannelInfo()
785 if ((Channel >= This->ChannelCount) || (Device >= SataPrivateData->DeviceCount)) { in IdeInitSubmitData()
864 …Channel >= This->ChannelCount) || (BadModes == NULL) || (Device >= SataPrivateData->DeviceCount)) { in IdeInitDisqualifyMode()
957 …l >= This->ChannelCount) || (SupportedModes == NULL) || (Device >= SataPrivateData->DeviceCount)) { in IdeInitCalculateMode()
DSataController.h91 UINT8 DeviceCount; member
/device/linaro/bootloader/edk2/DuetPkg/SataControllerDxe/
DSataController.c451 SataPrivateData->DeviceCount = IDE_MAX_DEVICES; in SataControllerStart()
460 SataPrivateData->DeviceCount = AHCI_MAX_DEVICES; in SataControllerStart()
462 SataPrivateData->DeviceCount = AHCI_MULTI_MAX_DEVICES; in SataControllerStart()
466 …ceCount = (UINTN) (SataPrivateData->IdeInit.ChannelCount) * (UINTN) (SataPrivateData->DeviceCount); in SataControllerStart()
629 ASSERT (Device < SataPrivateData->DeviceCount); in FlatDeviceIndex()
631 return Channel * SataPrivateData->DeviceCount + Device; in FlatDeviceIndex()
688 *MaxDevices = SataPrivateData->DeviceCount; in IdeInitGetChannelInfo()
785 if ((Channel >= This->ChannelCount) || (Device >= SataPrivateData->DeviceCount)) { in IdeInitSubmitData()
864 …Channel >= This->ChannelCount) || (BadModes == NULL) || (Device >= SataPrivateData->DeviceCount)) { in IdeInitDisqualifyMode()
957 …l >= This->ChannelCount) || (SupportedModes == NULL) || (Device >= SataPrivateData->DeviceCount)) { in IdeInitCalculateMode()
DSataController.h91 UINT8 DeviceCount; member
/device/linaro/bootloader/edk2/OvmfPkg/SataControllerDxe/
DSataController.c469 SataPrivateData->DeviceCount = IDE_MAX_DEVICES; in SataControllerStart()
478 SataPrivateData->DeviceCount = AHCI_MAX_DEVICES; in SataControllerStart()
480 SataPrivateData->DeviceCount = AHCI_MULTI_MAX_DEVICES; in SataControllerStart()
484 …ceCount = (UINTN) (SataPrivateData->IdeInit.ChannelCount) * (UINTN) (SataPrivateData->DeviceCount); in SataControllerStart()
668 ASSERT (Device < SataPrivateData->DeviceCount); in FlatDeviceIndex()
670 return Channel * SataPrivateData->DeviceCount + Device; in FlatDeviceIndex()
727 *MaxDevices = SataPrivateData->DeviceCount; in IdeInitGetChannelInfo()
824 if ((Channel >= This->ChannelCount) || (Device >= SataPrivateData->DeviceCount)) { in IdeInitSubmitData()
903 …Channel >= This->ChannelCount) || (BadModes == NULL) || (Device >= SataPrivateData->DeviceCount)) { in IdeInitDisqualifyMode()
996 …l >= This->ChannelCount) || (SupportedModes == NULL) || (Device >= SataPrivateData->DeviceCount)) { in IdeInitCalculateMode()
DSataController.h96 UINT8 DeviceCount; member
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/
DDrivers.c185 UINTN DeviceCount; in ShellCommandRunDrivers() local
269 DeviceCount = 0; in ShellCommandRunDrivers()
271 Status = PARSE_HANDLE_DATABASE_DEVICES (*HandleWalker, &DeviceCount, NULL); in ShellCommandRunDrivers()
290 ChildCount > 0?L'B':(DeviceCount > 0?L'D':L'?'), in ShellCommandRunDrivers()
293 DeviceCount, in ShellCommandRunDrivers()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/IdeBusPei/
DAtapiPeim.c86 DEBUG ((EFI_D_INFO, "Atatpi Device Count is %d\n", AtapiBlkIoDev->DeviceCount)); in AtapiPeimEntry()
87 if (AtapiBlkIoDev->DeviceCount != 0) { in AtapiPeimEntry()
130 *NumberBlockDevices = AtapiBlkIoDev->DeviceCount; in AtapiGetNumberOfBlockDevices()
172 UINTN DeviceCount; in AtapiGetBlockDeviceMediaInfo() local
185 DeviceCount = AtapiBlkIoDev->DeviceCount; in AtapiGetBlockDeviceMediaInfo()
190 if ((DeviceIndex < 1) || (DeviceIndex > DeviceCount) || (DeviceIndex > MAX_IDE_DEVICES)) { in AtapiGetBlockDeviceMediaInfo()
533 UINTN DeviceCount; in AtapiEnumerateDevices() local
539 DeviceCount = 0; in AtapiEnumerateDevices()
602 AtapiBlkIoDev->DeviceInfo[DeviceCount].DevicePosition = DevicePosition; in AtapiEnumerateDevices()
607 … CopyMem (&(AtapiBlkIoDev->DeviceInfo[DeviceCount].MediaInfo), &MediaInfo, sizeof (MediaInfo)); in AtapiEnumerateDevices()
[all …]
DAtapiPeim.h108 UINTN DeviceCount; member
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/
DFloppyPeim.c1120 FdcBlkIoDev->DeviceCount = DevNo; in FdcEnumeration()
1472 *NumberBlockDevices = FdcBlkIoDev->DeviceCount; in FdcGetNumberOfBlockDevices()
1514 UINTN DeviceCount; in FdcGetBlockDeviceMediaInfo() local
1527 DeviceCount = FdcBlkIoDev->DeviceCount; in FdcGetBlockDeviceMediaInfo()
1532 if ((DeviceIndex < 1) || (DeviceIndex > DeviceCount) || (DeviceIndex > 2)) { in FdcGetBlockDeviceMediaInfo()
1722 UINTN DeviceCount; in FdcPeimEntry() local
1751 DeviceCount = FdcEnumeration (FdcBlkIoDev); in FdcPeimEntry()
1752 if (DeviceCount == 0) { in FdcPeimEntry()
DFloppyPeim.h154 UINTN DeviceCount; member