Home
last modified time | relevance | path

Searched refs:LoopVar (Results 1 – 14 of 14) sorted by relevance

/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/
DShift.c33 UINTN LoopVar; in ShellCommandRunShift() local
51 for (LoopVar = 0 ; LoopVar < CurrentScriptFile->Argc ; LoopVar++) { in ShellCommandRunShift()
52 if (LoopVar == 0) { in ShellCommandRunShift()
53 SHELL_FREE_NON_NULL(CurrentScriptFile->Argv[LoopVar]); in ShellCommandRunShift()
55 if (LoopVar < CurrentScriptFile->Argc -1) { in ShellCommandRunShift()
56 CurrentScriptFile->Argv[LoopVar] = CurrentScriptFile->Argv[LoopVar+1]; in ShellCommandRunShift()
58 CurrentScriptFile->Argv[LoopVar] = NULL; in ShellCommandRunShift()
DFor.c295 UINTN LoopVar; in ShellCommandRunFor() local
368 for (LoopVar = 0x3 ; LoopVar < gEfiShellParametersProtocol->Argc ; LoopVar++) { in ShellCommandRunFor()
370 if (StrStr(gEfiShellParametersProtocol->Argv[LoopVar], L"*") != NULL in ShellCommandRunFor()
371 ||StrStr(gEfiShellParametersProtocol->Argv[LoopVar], L"?") != NULL in ShellCommandRunFor()
372 ||StrStr(gEfiShellParametersProtocol->Argv[LoopVar], L"[") != NULL in ShellCommandRunFor()
373 ||StrStr(gEfiShellParametersProtocol->Argv[LoopVar], L"]") != NULL) { in ShellCommandRunFor()
375 …Status = ShellOpenFileMetaArg ((CHAR16*)gEfiShellParametersProtocol->Argv[LoopVar], EFI_FILE_MODE_… in ShellCommandRunFor()
378 ArgSet = StrnCatGrow(&ArgSet, &ArgSize, gEfiShellParametersProtocol->Argv[LoopVar], 0); in ShellCommandRunFor()
392 Parameter = gEfiShellParametersProtocol->Argv[LoopVar]; in ShellCommandRunFor()
437 for (LoopVar = 0x3 ; LoopVar < gEfiShellParametersProtocol->Argc ; LoopVar++) { in ShellCommandRunFor()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/
DSetSize.c37 UINTN LoopVar; in ShellCommandRunSetSize() local
79 …for (LoopVar = 2 ; LoopVar < ShellCommandLineGetCount(Package) && ShellStatus == SHELL_SUCCESS ; L… in ShellCommandRunSetSize()
80 …Status = ShellOpenFileByName(ShellCommandLineGetRawValue(Package, LoopVar), &FileHandle, EFI_FILE_… in ShellCommandRunSetSize()
82 …Status = ShellOpenFileByName(ShellCommandLineGetRawValue(Package, LoopVar), &FileHandle, EFI_FILE_… in ShellCommandRunSetSize()
84 if (EFI_ERROR(Status) && LoopVar == 2) { in ShellCommandRunSetSize()
88 …LE_OPEN_FAIL), gShellDebug1HiiHandle, L"setsize", ShellCommandLineGetRawValue(Package, LoopVar)); in ShellCommandRunSetSize()
97 …ET_SIZE_FAIL), gShellDebug1HiiHandle, L"setsize", ShellCommandLineGetRawValue(Package, LoopVar)); in ShellCommandRunSetSize()
100 …G_TOKEN (STR_SET_SIZE_DONE), gShellDebug1HiiHandle, ShellCommandLineGetRawValue(Package, LoopVar)); in ShellCommandRunSetSize()
DMode.c41 INT32 LoopVar; in ShellCommandRunMode() local
88 …for (LoopVar = 0, Done = FALSE; LoopVar < gST->ConOut->Mode->MaxMode && ShellStatus == SHELL_SUCCE… in ShellCommandRunMode()
89 Status = gST->ConOut->QueryMode(gST->ConOut, LoopVar, &Col, &Row); in ShellCommandRunMode()
94 Status = gST->ConOut->SetMode(gST->ConOut, LoopVar); in ShellCommandRunMode()
116 …for (LoopVar = 0, Done = FALSE; LoopVar < gST->ConOut->Mode->MaxMode && ShellStatus == SHELL_SUCCE… in ShellCommandRunMode()
117 Status = gST->ConOut->QueryMode(gST->ConOut, LoopVar, &Col, &Row); in ShellCommandRunMode()
121 …ULL, STRING_TOKEN (STR_MODE_LIST_ITEM), gShellDebug1HiiHandle, Col, Row, LoopVar == gST->ConOut->M… in ShellCommandRunMode()
DSetVar.c78 UINTN LoopVar; in ShellCommandRunSetVar() local
140 for (LoopVar = 0 ; LoopVar < Size ; LoopVar++) { in ShellCommandRunSetVar()
141 ShellPrintEx(-1, -1, L"%02x ", ((UINT8*)Buffer)[LoopVar]); in ShellCommandRunSetVar()
210 for (LoopVar = 0 ; LoopVar < (StrLen(Data) / 2) ; LoopVar++) { in ShellCommandRunSetVar()
211 ((UINT8*)Buffer)[LoopVar] = (UINT8)(HexCharToUintn(Data[LoopVar*2]) * 16); in ShellCommandRunSetVar()
212 …((UINT8*)Buffer)[LoopVar] = (UINT8)(((UINT8*)Buffer)[LoopVar] + HexCharToUintn(Data[LoopVar*2+1])); in ShellCommandRunSetVar()
DComp.c35 UINTN LoopVar; in ShellCommandRunComp() local
133 for (LoopVar = 0 ; LoopVar < Size1 && ErrorCount <= 10 ; LoopVar++) { in ShellCommandRunComp()
141 ErrorAddress = LoopVar; in ShellCommandRunComp()
153 if (LoopVar + 1 < Size1) { in ShellCommandRunComp()
154 LoopVar++; in ShellCommandRunComp()
161 if (LoopVar + 1 < Size1) { in ShellCommandRunComp()
162 LoopVar++; in ShellCommandRunComp()
169 if (LoopVar + 1 < Size1) { in ShellCommandRunComp()
170 LoopVar++; in ShellCommandRunComp()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel3CommandsLib/
DType.c43 UINTN LoopVar; in TypeFileByHandle() local
75 for (LoopVar = 0 ; LoopVar < LoopSize ; LoopVar++) { in TypeFileByHandle()
81 AsciiChar = ((CHAR8*)Buffer)[LoopVar]; in TypeFileByHandle()
87 if (AsciiChar == '\n' && ((CHAR8*)Buffer)[LoopVar-1] != '\r') { in TypeFileByHandle()
118 for (LoopVar = 0 ; LoopVar < LoopSize ; LoopVar++) { in TypeFileByHandle()
124 Ucs2Char = ((CHAR16*)Buffer)[LoopVar]; in TypeFileByHandle()
130 if (Ucs2Char == '\n' && ((CHAR16*)Buffer)[LoopVar-1] != '\r') { in TypeFileByHandle()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/
DDevTree.c51 UINTN LoopVar; in DoDevTreeForHandle() local
127 for (LoopVar = 0 ; LoopVar < ChildCount && ShellStatus == SHELL_SUCCESS; LoopVar++){ in DoDevTreeForHandle()
128 …ShellStatus = DoDevTreeForHandle(ChildHandleBuffer[LoopVar], Lang, UseDevPaths, IndentCharCount+2,… in DoDevTreeForHandle()
161 UINTN LoopVar; in ShellCommandRunDevTree() local
219 for (LoopVar = 1 ; ; LoopVar++){ in ShellCommandRunDevTree()
220 TheHandle = ConvertHandleIndexToHandle(LoopVar); in ShellCommandRunDevTree()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/
DTimeDate.c710 UINTN LoopVar; in CheckAndSetTimeZone() local
768 for ( LoopVar = 0 in CheckAndSetTimeZone()
769 ; LoopVar < sizeof(TimeZoneList) / sizeof(TimeZoneList[0]) in CheckAndSetTimeZone()
770 ; LoopVar++ in CheckAndSetTimeZone()
772 if (TheTime.TimeZone == TimeZoneList[LoopVar].TimeZone) { in CheckAndSetTimeZone()
807 UINT8 LoopVar; in ShellCommandRunTimeZone() local
871 for ( LoopVar = 0 in ShellCommandRunTimeZone()
872 ; LoopVar < sizeof(TimeZoneList) / sizeof(TimeZoneList[0]) in ShellCommandRunTimeZone()
873 ; LoopVar++ in ShellCommandRunTimeZone()
875 ShellPrintHiiEx (-1, -1, NULL, TimeZoneList[LoopVar].StringId, gShellLevel2HiiHandle); in ShellCommandRunTimeZone()
[all …]
DMap.c521 UINTN LoopVar; in PerformMappingDisplay() local
587 for ( LoopVar = 0, Found = FALSE in PerformMappingDisplay()
588 ; LoopVar < (BufferSize / sizeof(EFI_HANDLE)) && HandleBuffer != NULL in PerformMappingDisplay()
589 ; LoopVar ++ in PerformMappingDisplay()
598 HandleBuffer[LoopVar]); in PerformMappingDisplay()
630 for ( LoopVar = 0 in PerformMappingDisplay()
631 ; LoopVar < BufferSize / sizeof(EFI_HANDLE) in PerformMappingDisplay()
632 ; LoopVar ++ in PerformMappingDisplay()
638 HandleBuffer[LoopVar], in PerformMappingDisplay()
653 HandleBuffer[LoopVar]); in PerformMappingDisplay()
[all …]
/device/linaro/bootloader/edk2/ShellPkg/Application/Shell/
DShell.c896 UINTN LoopVar; in ProcessCommandLine() local
943 for (LoopVar = 0 ; LoopVar < gEfiShellParametersProtocol->Argc ; LoopVar++) { in ProcessCommandLine()
944 CurrentArg = gEfiShellParametersProtocol->Argv[LoopVar]; in ProcessCommandLine()
1008 DelayValueStr = gEfiShellParametersProtocol->Argv[LoopVar + 1]; in ProcessCommandLine()
1020 LoopVar++; in ProcessCommandLine()
1041 if (LoopVar == 0) { in ProcessCommandLine()
1053 LoopVar++; in ProcessCommandLine()
1056 for (Size = 0 ; LoopVar < gEfiShellParametersProtocol->Argc ; LoopVar++) { in ProcessCommandLine()
1068 gEfiShellParametersProtocol->Argv[LoopVar], in ProcessCommandLine()
2726 UINTN LoopVar; in RunScriptFileHandle() local
[all …]
DShellProtocol.c665 UINTN LoopVar; in EfiShellGetDeviceName() local
700 for (LoopVar = 0; LoopVar < HandleCount ; LoopVar++){ in EfiShellGetDeviceName()
705 HandleList[LoopVar], in EfiShellGetDeviceName()
713 HandleList[LoopVar], in EfiShellGetDeviceName()
741 for (LoopVar = 0 ; LoopVar < ParentControllerCount ; LoopVar++) { in EfiShellGetDeviceName()
742 …PARSE_HANDLE_DATABASE_UEFI_DRIVERS(ParentControllerBuffer[LoopVar], &ParentDriverCount, &ParentDri… in EfiShellGetDeviceName()
768 …Status = CompName2->GetControllerName(CompName2, ParentControllerBuffer[LoopVar], DeviceHandle, La… in EfiShellGetDeviceName()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellBcfgCommandLib/
DUefiShellBcfgCommandLib.c1034 UINTN LoopVar; in BcfgDisplayDump() local
1050 for (LoopVar = 0 ; LoopVar < OrderCount ; LoopVar++) { in BcfgDisplayDump()
1055 UnicodeSPrint(VariableName, sizeof(VariableName), L"%s%04x", Op, CurrentOrder[LoopVar]); in BcfgDisplayDump()
1115 LoopVar, in BcfgDisplayDump()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellCommandLib/
DUefiShellCommandLib.c1037 UINT8 LoopVar; in DeleteScriptFileStruct() local
1043 for (LoopVar = 0 ; LoopVar < Script->Argc ; LoopVar++) { in DeleteScriptFileStruct()
1044 SHELL_FREE_NON_NULL(Script->Argv[LoopVar]); in DeleteScriptFileStruct()