Home
last modified time | relevance | path

Searched refs:DeviceIndex (Results 1 – 25 of 28) sorted by relevance

12

/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/
DSdBlockIoPei.c170 IN UINTN DeviceIndex, in SdBlockIoPeimGetMediaInfo() argument
178 if ((DeviceIndex == 0) || (DeviceIndex > Private->TotalBlkIoDevices)) { in SdBlockIoPeimGetMediaInfo()
184 MediaInfo->LastBlock = (UINTN)Private->Slot[DeviceIndex - 1].Media.LastBlock; in SdBlockIoPeimGetMediaInfo()
185 MediaInfo->BlockSize = Private->Slot[DeviceIndex - 1].Media.BlockSize; in SdBlockIoPeimGetMediaInfo()
229 IN UINTN DeviceIndex, in SdBlockIoPeimReadBlocks() argument
256 if ((DeviceIndex == 0) || (DeviceIndex > Private->TotalBlkIoDevices)) { in SdBlockIoPeimReadBlocks()
260 BlockSize = Private->Slot[DeviceIndex - 1].Media.BlockSize; in SdBlockIoPeimReadBlocks()
265 if (StartLBA > Private->Slot[DeviceIndex - 1].Media.LastBlock) { in SdBlockIoPeimReadBlocks()
286 …Status = SdPeimRwMultiBlocks (&Private->Slot[DeviceIndex - 1], StartLBA, BlockSize, Buffer, Buffer… in SdBlockIoPeimReadBlocks()
288 …Status = SdPeimRwSingleBlock (&Private->Slot[DeviceIndex - 1], StartLBA, BlockSize, Buffer, Buffer… in SdBlockIoPeimReadBlocks()
[all …]
DSdBlockIoPei.h161 IN UINTN DeviceIndex,
204 IN UINTN DeviceIndex,
283 IN UINTN DeviceIndex,
326 IN UINTN DeviceIndex,
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/
DUfsBlockIoPei.c672 IN UINTN DeviceIndex, in UfsBlockIoPeimGetMediaInfo() argument
688 if (DeviceIndex >= UFS_PEIM_MAX_LUNS) { in UfsBlockIoPeimGetMediaInfo()
692 if ((Private->Luns.BitMask & (BIT0 << DeviceIndex)) == 0) { in UfsBlockIoPeimGetMediaInfo()
706 DeviceIndex, in UfsBlockIoPeimGetMediaInfo()
718 Status = UfsPeimParsingSenseKeys (&(Private->Media[DeviceIndex]), &SenseData, &NeedRetry); in UfsBlockIoPeimGetMediaInfo()
727 …Status = UfsPeimReadCapacity (Private, DeviceIndex, &Capacity, (UINT32 *)&DataLength, NULL, &Sense… in UfsBlockIoPeimGetMediaInfo()
736 …Status = UfsPeimReadCapacity16 (Private, DeviceIndex, &Capacity16, (UINT32 *)&DataLength, NULL, &S… in UfsBlockIoPeimGetMediaInfo()
740 …Private->Media[DeviceIndex].LastBlock = (Capacity16.LastLba3 << 24) | (Capacity16.LastLba2 << 16)… in UfsBlockIoPeimGetMediaInfo()
741 …Private->Media[DeviceIndex].LastBlock |= LShiftU64 ((UINT64)Capacity16.LastLba7, 56) | LShiftU64((… in UfsBlockIoPeimGetMediaInfo()
742 …Private->Media[DeviceIndex].BlockSize = (Capacity16.BlockSize3 << 24) | (Capacity16.BlockSize2 <<… in UfsBlockIoPeimGetMediaInfo()
[all …]
DUfsBlockIoPei.h344 IN UINTN DeviceIndex,
387 IN UINTN DeviceIndex,
466 IN UINTN DeviceIndex,
509 IN UINTN DeviceIndex,
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/
DBBSsupport.c180 UINTN DeviceIndex; in GroupMultipleLegacyBootOption4SameType() local
228 for (DeviceIndex = 0; DeviceIndex < ARRAY_SIZE (DeviceTypeIndex); DeviceIndex++) { in GroupMultipleLegacyBootOption4SameType()
229 … if (DeviceTypeIndex[DeviceIndex] != (UINTN) -1 && DeviceTypeIndex[DeviceIndex] >= *NextIndex) { in GroupMultipleLegacyBootOption4SameType()
230 DeviceTypeIndex[DeviceIndex]++; in GroupMultipleLegacyBootOption4SameType()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/EmmcBlockIoPei/
DEmmcBlockIoPei.c242 IN UINTN DeviceIndex, in EmmcBlockIoPeimGetMediaInfo() argument
255 if ((DeviceIndex == 0) || (DeviceIndex > Private->TotalBlkIoDevices)) { in EmmcBlockIoPeimGetMediaInfo()
264 if (Location == DeviceIndex) { in EmmcBlockIoPeimGetMediaInfo()
321 IN UINTN DeviceIndex, in EmmcBlockIoPeimReadBlocks() argument
354 if ((DeviceIndex == 0) || (DeviceIndex > Private->TotalBlkIoDevices)) { in EmmcBlockIoPeimReadBlocks()
363 if (Location == DeviceIndex) { in EmmcBlockIoPeimReadBlocks()
515 IN UINTN DeviceIndex, in EmmcBlockIoPeimGetMediaInfo2() argument
533 DeviceIndex, in EmmcBlockIoPeimGetMediaInfo2()
545 if (Location == DeviceIndex) { in EmmcBlockIoPeimGetMediaInfo2()
598 IN UINTN DeviceIndex, in EmmcBlockIoPeimReadBlocks2() argument
[all …]
DEmmcBlockIoPei.h165 IN UINTN DeviceIndex,
208 IN UINTN DeviceIndex,
287 IN UINTN DeviceIndex,
330 IN UINTN DeviceIndex,
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/SataControllerDxe/
DSataController.c751 UINTN DeviceIndex; in IdeInitSubmitData() local
760 DeviceIndex = FlatDeviceIndex (Private, Channel, Device); in IdeInitSubmitData()
767 &(Private->IdentifyData[DeviceIndex]), in IdeInitSubmitData()
772 Private->IdentifyValid[DeviceIndex] = TRUE; in IdeInitSubmitData()
774 Private->IdentifyValid[DeviceIndex] = FALSE; in IdeInitSubmitData()
830 UINTN DeviceIndex; in IdeInitDisqualifyMode() local
839 DeviceIndex = FlatDeviceIndex (Private, Channel, Device); in IdeInitDisqualifyMode()
846 &(Private->DisqualifiedModes[DeviceIndex]), in IdeInitDisqualifyMode()
923 UINTN DeviceIndex; in IdeInitCalculateMode() local
938 DeviceIndex = FlatDeviceIndex (Private, Channel, Device); in IdeInitCalculateMode()
[all …]
/device/linaro/bootloader/edk2/CorebootModulePkg/SataControllerDxe/
DSataController.c780 UINTN DeviceIndex; in IdeInitSubmitData() local
789 DeviceIndex = FlatDeviceIndex (SataPrivateData, Channel, Device); in IdeInitSubmitData()
796 &(SataPrivateData->IdentifyData[DeviceIndex]), in IdeInitSubmitData()
801 SataPrivateData->IdentifyValid[DeviceIndex] = TRUE; in IdeInitSubmitData()
803 SataPrivateData->IdentifyValid[DeviceIndex] = FALSE; in IdeInitSubmitData()
859 UINTN DeviceIndex; in IdeInitDisqualifyMode() local
868 DeviceIndex = FlatDeviceIndex (SataPrivateData, Channel, Device); in IdeInitDisqualifyMode()
875 &(SataPrivateData->DisqualifiedModes[DeviceIndex]), in IdeInitDisqualifyMode()
952 UINTN DeviceIndex; in IdeInitCalculateMode() local
967 DeviceIndex = FlatDeviceIndex (SataPrivateData, Channel, Device); in IdeInitCalculateMode()
[all …]
/device/linaro/bootloader/edk2/DuetPkg/SataControllerDxe/
DSataController.c780 UINTN DeviceIndex; in IdeInitSubmitData() local
789 DeviceIndex = FlatDeviceIndex (SataPrivateData, Channel, Device); in IdeInitSubmitData()
796 &(SataPrivateData->IdentifyData[DeviceIndex]), in IdeInitSubmitData()
801 SataPrivateData->IdentifyValid[DeviceIndex] = TRUE; in IdeInitSubmitData()
803 SataPrivateData->IdentifyValid[DeviceIndex] = FALSE; in IdeInitSubmitData()
859 UINTN DeviceIndex; in IdeInitDisqualifyMode() local
868 DeviceIndex = FlatDeviceIndex (SataPrivateData, Channel, Device); in IdeInitDisqualifyMode()
875 &(SataPrivateData->DisqualifiedModes[DeviceIndex]), in IdeInitDisqualifyMode()
952 UINTN DeviceIndex; in IdeInitCalculateMode() local
967 DeviceIndex = FlatDeviceIndex (SataPrivateData, Channel, Device); in IdeInitCalculateMode()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBotPei/
DUsbBotPeim.h93 IN UINTN DeviceIndex,
136 IN UINTN DeviceIndex,
201 IN UINTN DeviceIndex,
244 IN UINTN DeviceIndex,
DUsbBotPeim.c358 IN UINTN DeviceIndex, in BotGetMediaInfo() argument
432 IN UINTN DeviceIndex, in BotReadBlocks() argument
639 IN UINTN DeviceIndex, in BotGetMediaInfo2() argument
651 DeviceIndex, in BotGetMediaInfo2()
707 IN UINTN DeviceIndex, in BotReadBlocks2() argument
726 DeviceIndex, in BotReadBlocks2()
/device/linaro/bootloader/edk2/OvmfPkg/SataControllerDxe/
DSataController.c819 UINTN DeviceIndex; in IdeInitSubmitData() local
828 DeviceIndex = FlatDeviceIndex (SataPrivateData, Channel, Device); in IdeInitSubmitData()
835 &(SataPrivateData->IdentifyData[DeviceIndex]), in IdeInitSubmitData()
840 SataPrivateData->IdentifyValid[DeviceIndex] = TRUE; in IdeInitSubmitData()
842 SataPrivateData->IdentifyValid[DeviceIndex] = FALSE; in IdeInitSubmitData()
898 UINTN DeviceIndex; in IdeInitDisqualifyMode() local
907 DeviceIndex = FlatDeviceIndex (SataPrivateData, Channel, Device); in IdeInitDisqualifyMode()
914 &(SataPrivateData->DisqualifiedModes[DeviceIndex]), in IdeInitDisqualifyMode()
991 UINTN DeviceIndex; in IdeInitCalculateMode() local
1006 DeviceIndex = FlatDeviceIndex (SataPrivateData, Channel, Device); in IdeInitCalculateMode()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/
DFloppyPeim.c1510 IN UINTN DeviceIndex, in FdcGetBlockDeviceMediaInfo() argument
1532 if ((DeviceIndex < 1) || (DeviceIndex > DeviceCount) || (DeviceIndex > 2)) { in FdcGetBlockDeviceMediaInfo()
1536 Index = DeviceIndex - 1; in FdcGetBlockDeviceMediaInfo()
1598 IN UINTN DeviceIndex, in FdcReadBlocks() argument
1625 Status = FdcGetBlockDeviceMediaInfo (PeiServices, This, DeviceIndex, &MediaInfo); in FdcReadBlocks()
1646 …if ((StartLBA + NumberOfBlocks - 1) > FdcBlkIoDev->DeviceInfo[DeviceIndex - 1].MediaInfo.LastBlock… in FdcReadBlocks()
1657 Status = MotorOn (FdcBlkIoDev, &(FdcBlkIoDev->DeviceInfo[DeviceIndex - 1])); in FdcReadBlocks()
1662 Status = Setup (FdcBlkIoDev, FdcBlkIoDev->DeviceInfo[DeviceIndex - 1].DevPos); in FdcReadBlocks()
1664 MotorOff (FdcBlkIoDev, &(FdcBlkIoDev->DeviceInfo[DeviceIndex - 1])); in FdcReadBlocks()
1672 &(FdcBlkIoDev->DeviceInfo[DeviceIndex - 1]), in FdcReadBlocks()
[all …]
DFloppyPeim.h209 IN UINTN DeviceIndex,
240 IN UINTN DeviceIndex,
/device/linaro/bootloader/edk2/MdePkg/Include/Ppi/
DBlockIo2.h146 IN UINTN DeviceIndex,
189 IN UINTN DeviceIndex,
DBlockIo.h166 IN UINTN DeviceIndex,
209 IN UINTN DeviceIndex,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Ppi/BlockIo/
DBlockIo.h65 IN UINTN DeviceIndex,
74 IN UINTN DeviceIndex,
/device/linaro/bootloader/OpenPlatformPkg/Documentation/Marvell/Drivers/
DEepromDriver.txt17 DeviceIndex values.
41 /* I2C guid must fit and valid DeviceIndex must be provided */
43 TmpI2cIo->DeviceIndex == EepromAddresses[i]) {
92 with valid GUID and DeviceIndex (I2C slave address).
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/IdeBusPei/
DAtapiPeim.h200 IN UINTN DeviceIndex,
243 IN UINTN DeviceIndex,
309 IN UINTN DeviceIndex,
352 IN UINTN DeviceIndex,
DAtapiPeim.c168 IN UINTN DeviceIndex, in AtapiGetBlockDeviceMediaInfo() argument
190 if ((DeviceIndex < 1) || (DeviceIndex > DeviceCount) || (DeviceIndex > MAX_IDE_DEVICES)) { in AtapiGetBlockDeviceMediaInfo()
194 Index = DeviceIndex - 1; in AtapiGetBlockDeviceMediaInfo()
268 IN UINTN DeviceIndex, in AtapiReadBlocks() argument
300 DeviceIndex, in AtapiReadBlocks()
319 …if ((StartLBA + NumberOfBlocks - 1) > AtapiBlkIoDev->DeviceInfo[DeviceIndex - 1].MediaInfo2.LastBl… in AtapiReadBlocks()
325 AtapiBlkIoDev->DeviceInfo[DeviceIndex - 1].DevicePosition, in AtapiReadBlocks()
412 IN UINTN DeviceIndex, in AtapiGetBlockDeviceMediaInfo2() argument
431 DeviceIndex, in AtapiGetBlockDeviceMediaInfo2()
440 …CopyMem (MediaInfo, &AtapiBlkIoDev->DeviceInfo[DeviceIndex - 1].MediaInfo2, sizeof(EFI_PEI_BLOCK_I… in AtapiGetBlockDeviceMediaInfo2()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/BootManagerUiLib/
DBootManager.c319 UINTN DeviceIndex; in GroupMultipleLegacyBootOption4SameType() local
365 for (DeviceIndex = 0; DeviceIndex < ARRAY_SIZE (DeviceTypeIndex); DeviceIndex++) { in GroupMultipleLegacyBootOption4SameType()
366 … if (DeviceTypeIndex[DeviceIndex] != (UINTN) -1 && DeviceTypeIndex[DeviceIndex] >= *NextIndex) { in GroupMultipleLegacyBootOption4SameType()
367 DeviceTypeIndex[DeviceIndex]++; in GroupMultipleLegacyBootOption4SameType()
/device/linaro/bootloader/edk2/MdePkg/Include/Protocol/
DI2cIo.h151 UINT32 DeviceIndex; member
/device/linaro/bootloader/edk2/MdePkg/Include/Pi/
DPiI2c.h81 UINT32 DeviceIndex; member
/device/linaro/bootloader/OpenPlatformPkg/Drivers/I2c/Devices/MvEeprom/
DMvEeprom.c101 TmpI2cIo->DeviceIndex == I2C_DEVICE_INDEX(EepromBuses[i], in MvEepromSupported()
210 EepromContext->EepromProtocol.Identifier = EepromContext->I2cIo->DeviceIndex; in MvEepromStart()

12