Home
last modified time | relevance | path

Searched refs:Index1 (Results 1 – 25 of 49) sorted by relevance

12

/device/linaro/bootloader/edk2/SecurityPkg/RandomNumberGenerator/RngDxe/
DAesCore.c138 UINTN Index1; in AesExpandKey() local
161 for (Index1 = Index2 = 0; Index1 < Nk; Index1++, Index2 += 4) { in AesExpandKey()
162 LOAD32H (Ek[Index1], Key + Index2); in AesExpandKey()
179 for (Index1 = 1; Index1 < Nk && (Index1 + Index2) < Nw; Index1++) { in AesExpandKey()
180 Ek [Index1 + Index2] = Ek [Index1 + Index2 - Nk] ^ Ek[Index1 + Index2 - 1]; in AesExpandKey()
186 for (Index1 = 1; Index1 < 4 && (Index1 + Index2) < Nw; Index1++) { in AesExpandKey()
187 Ek [Index1 + Index2] = Ek[Index1 + Index2 - Nk] ^ Ek[Index1 + Index2 - 1]; in AesExpandKey()
197 for (Index1 = 5; Index1 < Nk && (Index1 + Index2) < Nw; Index1++) { in AesExpandKey()
198 Ek[Index1 + Index2] = Ek[Index1 + Index2 - Nk] ^ Ek[Index1 + Index2 - 1]; in AesExpandKey()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/EsrtDxe/
DEsrtDxe.c234 UINTN Index1; in EsrtDxeSyncFmp() local
323 for (Index1 = 0; Index1 < NumberOfHandles; Index1++){ in EsrtDxeSyncFmp()
325 HandleBuffer[Index1], in EsrtDxeSyncFmp()
327 (VOID **)&FmpBuf[Index1] in EsrtDxeSyncFmp()
335 Status = FmpBuf[Index1]->GetImageInfo ( in EsrtDxeSyncFmp()
336 FmpBuf[Index1], in EsrtDxeSyncFmp()
347 FmpImageInfoBuf[Index1] = AllocateZeroPool(ImageInfoSize); in EsrtDxeSyncFmp()
348 if (FmpImageInfoBuf[Index1] == NULL) { in EsrtDxeSyncFmp()
357 Status = FmpBuf[Index1]->GetImageInfo ( in EsrtDxeSyncFmp()
358 FmpBuf[Index1], in EsrtDxeSyncFmp()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/
DMd5.c185 UINT32 Index1; in MD5Transform() local
200 for (Index1 = 0; Index1 < 4; Index1++) { in MD5Transform()
201 IndexD = Md5_Data[Index1][0]; in MD5Transform()
203 SA += (*Md5_F[Index1]) (SB, SC, SD) + Data[IndexD] + Md5_T[IndexT]; in MD5Transform()
204 SA = ROTATE_LEFT (SA, Md5_S[Index1][Index2 & 3]); in MD5Transform()
207 IndexD += Md5_Data[Index1][1]; in MD5Transform()
214 for (Index1 = 0; Index1 < 4; Index1++) { in MD5Transform()
215 Md5Ctx->States[Index1] += MedStates[Index1]; in MD5Transform()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/
DFwPadFile.c1016 UINTN Index1; in FvCreateMultipleFiles() local
1059 for (Index1 = 0; Index1 < NumOfFiles; Index1++) { in FvCreateMultipleFiles()
1061 ActualFileSize[Index1] = FileData[Index1].BufferSize + HeaderSize; in FvCreateMultipleFiles()
1062 if (ActualFileSize[Index1] > 0x00FFFFFF) { in FvCreateMultipleFiles()
1064 ActualFileSize[Index1] = FileData[Index1].BufferSize + HeaderSize; in FvCreateMultipleFiles()
1066 BufferSize[Index1] = ActualFileSize[Index1]; in FvCreateMultipleFiles()
1068 if (BufferSize[Index1] == HeaderSize) { in FvCreateMultipleFiles()
1072 FileData[Index1].FileAttributes = 0; in FvCreateMultipleFiles()
1075 while ((BufferSize[Index1] & 0x07) != 0) { in FvCreateMultipleFiles()
1076 BufferSize[Index1]++; in FvCreateMultipleFiles()
[all …]
DFwVolWrite.c1350 UINTN Index1; in FvWriteFile() local
1399 for (Index1 = 0; Index1 < NumberOfFiles; Index1++) { in FvWriteFile()
1401 …if ((FileData[Index1].BufferSize + sizeof (EFI_FFS_FILE_HEADER) > 0x00FFFFFF) && !FvDevice->IsFfs3… in FvWriteFile()
1409 if (FileData[Index1].BufferSize == 0) { in FvWriteFile()
1415 FileData[Index1].NameGuid, in FvWriteFile()
1429 if (FileData[Index1].Type == EFI_FV_FILETYPE_FFS_PAD) { in FvWriteFile()
1447 for (Index1 = 0; Index1 < NumberOfFiles; Index1++) { in FvWriteFile()
1451 Status = FvDeleteFile (FvDevice, FileData[Index1].NameGuid); in FvWriteFile()
1460 for (Index1 = 0; Index1 < NumberOfFiles; Index1++) { in FvWriteFile()
1463 FileData[Index1].NameGuid, in FvWriteFile()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/PartitionDxe/
DMbr.c47 INTN Index1; in PartitionValidMbr() local
58 for (Index1 = 0; Index1 < MAX_MBR_PARTITIONS; Index1++) { in PartitionValidMbr()
59 …if (Mbr->Partition[Index1].OSIndicator == 0x00 || UNPACK_UINT32 (Mbr->Partition[Index1].SizeInLBA)… in PartitionValidMbr()
64 StartingLBA = UNPACK_UINT32 (Mbr->Partition[Index1].StartingLBA); in PartitionValidMbr()
65 EndingLBA = StartingLBA + UNPACK_UINT32 (Mbr->Partition[Index1].SizeInLBA) - 1; in PartitionValidMbr()
84 for (Index2 = Index1 + 1; Index2 < MAX_MBR_PARTITIONS; Index2++) { in PartitionValidMbr()
DGpt.c704 UINTN Index1; in PartitionCheckGptEntry() local
708 for (Index1 = 0; Index1 < PartHeader->NumberOfPartitionEntries; Index1++) { in PartitionCheckGptEntry()
709 … Entry = (EFI_PARTITION_ENTRY *) ((UINT8 *) PartEntry + Index1 * PartHeader->SizeOfPartitionEntry); in PartitionCheckGptEntry()
722 PEntryStatus[Index1].OutOfRange = TRUE; in PartitionCheckGptEntry()
730 PEntryStatus[Index1].OsSpecific = TRUE; in PartitionCheckGptEntry()
733 for (Index2 = Index1 + 1; Index2 < PartHeader->NumberOfPartitionEntries; Index2++) { in PartitionCheckGptEntry()
743 PEntryStatus[Index1].Overlap = TRUE; in PartitionCheckGptEntry()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/
DDimm.c211 UINTN Index1; in ReadSpd()
247 for (Index1 = 0; Index1 < Index; Index1++) { in ReadSpd()
249 Command = Offset + Index1; in ReadSpd()
258 &Buffer[Index1] in ReadSpd()
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DBasePeCoff.c1234 UINT32 Index, Index1; in PeCoffLoaderGetPdbPointer() local
1245 Index1 = 0; in PeCoffLoaderGetPdbPointer()
1271 for (Index1 = 0; Index1 < Index; Index1 ++) { in PeCoffLoaderGetPdbPointer()
1272 if ((DirectoryEntry->VirtualAddress >= SectionHeader[Index1].VirtualAddress) && in PeCoffLoaderGetPdbPointer()
1273 …(DirectoryEntry->VirtualAddress < (SectionHeader[Index1].VirtualAddress + SectionHeader[Index1].Mi… in PeCoffLoaderGetPdbPointer()
1276 SectionHeader [Index1].VirtualAddress + in PeCoffLoaderGetPdbPointer()
1277 SectionHeader [Index1].PointerToRawData + in PeCoffLoaderGetPdbPointer()
1340 for (Index1 = 0; Index1 < Index; Index1 ++) { in PeCoffLoaderGetPdbPointer()
1341 if ((DirectoryEntry->VirtualAddress >= SectionHeader[Index1].VirtualAddress) && in PeCoffLoaderGetPdbPointer()
1342 …(DirectoryEntry->VirtualAddress < (SectionHeader[Index1].VirtualAddress + SectionHeader[Index1].Mi… in PeCoffLoaderGetPdbPointer()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiBootManagerLib/
DBmMisc.c142 UINTN Index1; in BmSetMemoryTypeInformationVariable() local
218 for (Index1 = 0; CurrentMemoryTypeInformation[Index1].Type != EfiMaxMemoryType; Index1++) { in BmSetMemoryTypeInformationVariable()
219 if (PreviousMemoryTypeInformation[Index].Type == CurrentMemoryTypeInformation[Index1].Type) { in BmSetMemoryTypeInformationVariable()
223 if (CurrentMemoryTypeInformation[Index1].Type == EfiMaxMemoryType) { in BmSetMemoryTypeInformationVariable()
232 Current = CurrentMemoryTypeInformation[Index1].NumberOfPages; in BmSetMemoryTypeInformationVariable()
DBmPerformance.c40 UINTN Index1; in BmGetShortPdbFileName() local
61 Index1 = 0; in BmGetShortPdbFileName()
63 GaugeString[Index1] = PdbFileName[Index]; in BmGetShortPdbFileName()
64 Index1++; in BmGetShortPdbFileName()
65 if (Index1 == StringSize - 1) { in BmGetShortPdbFileName()
70 GaugeString[Index1] = 0; in BmGetShortPdbFileName()
/device/linaro/bootloader/edk2/UefiCpuPkg/CpuMpPei/
DCpuMpPei.c60 UINTN Index1; in SortApicId() local
70 for (Index1 = 0; Index1 < ApCount; Index1++) { in SortApicId()
71 Index3 = Index1; in SortApicId()
75 ApicId = PeiCpuMpData->CpuData[Index1].ApicId; in SortApicId()
76 for (Index2 = Index1 + 1; Index2 <= ApCount; Index2++) { in SortApicId()
82 if (Index3 != Index1) { in SortApicId()
86 &PeiCpuMpData->CpuData[Index1], in SortApicId()
89 CopyMem (&PeiCpuMpData->CpuData[Index1], &CpuData, sizeof (PEI_CPU_DATA)); in SortApicId()
97 for (Index1 = 0; Index1 < PeiCpuMpData->CpuCount; Index1++) { in SortApicId()
98 if (PeiCpuMpData->CpuData[Index1].ApicId == ApicId) { in SortApicId()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/GenericBdsLib/
DPerformance.c38 UINTN Index1; in GetShortPdbFileName() local
59 Index1 = 0; in GetShortPdbFileName()
61 GaugeString[Index1] = PdbFileName[Index]; in GetShortPdbFileName()
62 Index1++; in GetShortPdbFileName()
63 if (Index1 == PERF_TOKEN_LENGTH) { in GetShortPdbFileName()
68 GaugeString[Index1] = 0; in GetShortPdbFileName()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/HiiDatabaseDxe/
DFont.c1596 UINTN Index1; in HiiStringToImage() local
1966 … for (Index1 = RowInfo[RowIndex].EndIndex; Index1 >= RowInfo[RowIndex].StartIndex; Index1--) { in HiiStringToImage()
1967 if (Index1 == RowInfo[RowIndex].EndIndex) { in HiiStringToImage()
1968 LineWidth -= (Cell[Index1].Width + Cell[Index1].OffsetX); in HiiStringToImage()
1970 LineWidth -= Cell[Index1].AdvanceX; in HiiStringToImage()
1972 if (IsLineBreak (StringPtr[Index1]) > 0) { in HiiStringToImage()
1974 if (Index1 > RowInfo[RowIndex].StartIndex) { in HiiStringToImage()
1975 RowInfo[RowIndex].EndIndex = Index1 - 1; in HiiStringToImage()
1980 NextIndex = Index1 + 1; in HiiStringToImage()
1987 if (Index1 == RowInfo[RowIndex].StartIndex) in HiiStringToImage()
[all …]
/device/linaro/bootloader/edk2/Nt32Pkg/Sec/
DSecMain.c177 UINTN Index1; in main() local
283 for (Index1 = 0; (FileNamePtr[Index1] != '!') && (FileNamePtr[Index1] != 0); Index1++) in main()
285 if (FileNamePtr[Index1] == 0) { in main()
288 FileNamePtr[Index1] = '\0'; in main()
289 FileNamePtr = FileNamePtr + Index1 + 1; in main()
343 for (Index1 = 0; MemorySizeStr[Index1] != '!' && MemorySizeStr[Index1] != 0; Index1++) in main()
345 if (MemorySizeStr[Index1] == 0) { in main()
349 MemorySizeStr = MemorySizeStr + Index1 + 1; in main()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Override/IntelFrameworkModulePkg/Library/GenericBdsLib/
DPerformance.c38 UINTN Index1; in GetShortPdbFileName() local
59 Index1 = 0; in GetShortPdbFileName()
61 GaugeString[Index1] = PdbFileName[Index]; in GetShortPdbFileName()
62 Index1++; in GetShortPdbFileName()
63 if (Index1 == PERF_TOKEN_LENGTH - 1) { in GetShortPdbFileName()
68 GaugeString[Index1] = 0; in GetShortPdbFileName()
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
DIp6ConfigImpl.c906 UINTN Index1; in Ip6ConfigSetMaunualAddress() local
933 for (Index1 = 0; Index1 < NewAddressCount; Index1++, NewAddress++) { in Ip6ConfigSetMaunualAddress()
947 for (Index2 = Index1 + 1; Index2 < NewAddressCount; Index2++, TmpAddress++) { in Ip6ConfigSetMaunualAddress()
1009 for (Index1 = 0; Index1 < NewAddressCount; Index1++, NewAddress++) { in Ip6ConfigSetMaunualAddress()
1197 UINTN Index1; in Ip6ConfigSetGateway() local
1220 for (Index1 = 0; Index1 < NewGatewayCount; Index1++) { in Ip6ConfigSetGateway()
1222 if (!NetIp6IsValidUnicast (NewGateway + Index1)) { in Ip6ConfigSetGateway()
1227 for (Index2 = Index1 + 1; Index2 < NewGatewayCount; Index2++) { in Ip6ConfigSetGateway()
1228 if (EFI_IP6_EQUAL (NewGateway + Index1, NewGateway + Index2)) { in Ip6ConfigSetGateway()
1250 for (Index1 = 0; Index1 < OldGatewayCount; Index1++) { in Ip6ConfigSetGateway()
[all …]
/device/linaro/bootloader/edk2/EmulatorPkg/Unix/Host/
DHost.c108 UINTN Index1; in main() local
235 …for (Index1 = 0; (FirmwareVolumesStr[Index2] != '!') && (FirmwareVolumesStr[Index2] != 0); Index2+… in main()
236 FileName[Index1++] = FirmwareVolumesStr[Index2]; in main()
241 FileName[Index1] = '\0'; in main()
301 Index1 = 0; in main()
308 while (MemorySizeStr[Index1] >= '0' && MemorySizeStr[Index1] <= '9') { in main()
309 val = val * 10 + MemorySizeStr[Index1] - '0'; in main()
310 Index1++; in main()
313 if (MemorySizeStr[Index1] == 0) { in main()
316 Index1++; in main()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Ip4Dxe/
DIp4Config2Impl.c709 UINTN Index1; in Ip4Config2SetDnsServerWorker() local
750 for (Index1 = NewIndex + 1; Index1 < NewDnsCount; Index1++) { in Ip4Config2SetDnsServerWorker()
751 if (EFI_IP4_EQUAL (NewDns + NewIndex, NewDns + Index1)) { in Ip4Config2SetDnsServerWorker()
1330 UINTN Index1; in Ip4Config2SetGateway() local
1351 for (Index1 = 0; Index1 < NewGatewayCount; Index1++) { in Ip4Config2SetGateway()
1352 CopyMem (&Gateway, NewGateway + Index1, sizeof (IP4_ADDR)); in Ip4Config2SetGateway()
1359 for (Index2 = Index1 + 1; Index2 < NewGatewayCount; Index2++) { in Ip4Config2SetGateway()
1360 if (EFI_IP4_EQUAL (NewGateway + Index1, NewGateway + Index2)) { in Ip4Config2SetGateway()
1382 for (Index1 = 0; Index1 < OldGatewayCount; Index1++) { in Ip4Config2SetGateway()
1386 CopyMem (&Gateway, OldGateway + Index1, sizeof (IP4_ADDR)); in Ip4Config2SetGateway()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/
DLegacyPci.c463 UINTN Index1; in CreateBridgeTable() local
518 for (Index1 = 0; Index1 < RoutingTableEntries; Index1++){ in CreateBridgeTable()
523 …if ((RoutingTable[Index1].Slot != 0) && (Bridges[BridgeIndex].PrimaryBus == RoutingTable[Index1].B… in CreateBridgeTable()
524 && ((Bridges[BridgeIndex].PciDevice << 3) == RoutingTable[Index1].Device)) { in CreateBridgeTable()
540 for (Index1 = 0; Index1 < SlotBridgeIndex; Index1++) { in CreateBridgeTable()
541 … (((Bridges[Index].PciBus == SlotBridges[Index1].PrimaryBus) && (Bridges[Index].PciDevice == SlotB… in CreateBridgeTable()
542 …((Bridges[Index].PciBus >= SlotBridges[Index1].SecondaryBus) && (Bridges[Index].PciBus <= SlotBrid… in CreateBridgeTable()
554 if (Index1 >= SlotBridgeIndex) { in CreateBridgeTable()
555 for (Index1 = Index; BridgeIndex > 1 && Index1 < BridgeIndex - 1 ; Index1++) { in CreateBridgeTable()
556 CopyMem (&Bridges[Index1], &Bridges[Index1 + 1], sizeof (BRIDGE_TABLE)); in CreateBridgeTable()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/Dhcp6Dxe/
DDhcp6Utility.c437 UINTN Index1; in Dhcp6CheckAddress() local
445 for (Index1 = 0; Index1 < AddressCount; Index1++) { in Dhcp6CheckAddress()
452 &Addresses[Index1], in Dhcp6CheckAddress()
491 UINTN Index1; in Dhcp6DepriveAddress() local
529 for (Index1 = 0; Index1 < AddressCount; Index1++) { in Dhcp6DepriveAddress()
536 &Addresses[Index1], in Dhcp6DepriveAddress()
544 &IaCopy->IaAddress[Index1], in Dhcp6DepriveAddress()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/DxeCapsuleLib/
DDxeCapsuleLib.c162 UINTN Index1; in ProcessFmpCapsuleImage() local
264 for(Index1 = 0; Index1 < NumberOfHandles; Index1++) { in ProcessFmpCapsuleImage()
266 HandleBuffer[Index1], in ProcessFmpCapsuleImage()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/IdeBusPei/
DAtapiPeim.c527 UINT8 Index1; in AtapiEnumerateDevices() local
574 for (Index1 = 0; Index1 < IdeEnabledNumber; Index1 ++) { in AtapiEnumerateDevices()
575 CommandBlockBaseAddr = IdeRegsBaseAddr[Index1].CommandBlockBaseAddr; in AtapiEnumerateDevices()
576 AtapiBlkIoDev->IdeIoPortReg[Index1].Data = CommandBlockBaseAddr; in AtapiEnumerateDevices()
577 AtapiBlkIoDev->IdeIoPortReg[Index1].Reg1.Feature = (UINT16) (CommandBlockBaseAddr + 0x1); in AtapiEnumerateDevices()
578 AtapiBlkIoDev->IdeIoPortReg[Index1].SectorCount = (UINT16) (CommandBlockBaseAddr + 0x2); in AtapiEnumerateDevices()
579 AtapiBlkIoDev->IdeIoPortReg[Index1].SectorNumber = (UINT16) (CommandBlockBaseAddr + 0x3); in AtapiEnumerateDevices()
580 AtapiBlkIoDev->IdeIoPortReg[Index1].CylinderLsb = (UINT16) (CommandBlockBaseAddr + 0x4); in AtapiEnumerateDevices()
581 AtapiBlkIoDev->IdeIoPortReg[Index1].CylinderMsb = (UINT16) (CommandBlockBaseAddr + 0x5); in AtapiEnumerateDevices()
582 AtapiBlkIoDev->IdeIoPortReg[Index1].Head = (UINT16) (CommandBlockBaseAddr + 0x6); in AtapiEnumerateDevices()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/
DConsoleOption.c349 UINTN Index1; in SortedUartHandle() local
357 for (Index1 = 0; Index1 < NoHandles-1; Index1++) { in SortedUartHandle()
358 if (!RetrieveUartUid (Handles[Index1], &AcpiUid1)) { in SortedUartHandle()
361 TempHandle = Handles[Index1]; in SortedUartHandle()
362 Position = Index1; in SortedUartHandle()
365 for (Index2 = Index1+1; Index2 < NoHandles; Index2++) { in SortedUartHandle()
375 Handles[Position] = Handles[Index1]; in SortedUartHandle()
376 Handles[Index1] = TempHandle; in SortedUartHandle()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/BootMaintenanceManagerLib/
DConsoleOption.c346 UINTN Index1; in SortedUartHandle() local
354 for (Index1 = 0; Index1 < NoHandles-1; Index1++) { in SortedUartHandle()
355 if (!RetrieveUartUid (Handles[Index1], &AcpiUid1)) { in SortedUartHandle()
358 TempHandle = Handles[Index1]; in SortedUartHandle()
359 Position = Index1; in SortedUartHandle()
362 for (Index2 = Index1+1; Index2 < NoHandles; Index2++) { in SortedUartHandle()
372 Handles[Position] = Handles[Index1]; in SortedUartHandle()
373 Handles[Index1] = TempHandle; in SortedUartHandle()

12