Lines Matching refs:ShellParameters
702 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, in UpdateStdInStdOutStdErr() argument
746 …if (ShellParameters == NULL || SystemTableInfo == NULL || OldStdIn == NULL || OldStdOut == NULL ||… in UpdateStdInStdOutStdErr()
756 *OldStdIn = ShellParameters->StdIn; in UpdateStdInStdOutStdErr()
757 *OldStdOut = ShellParameters->StdOut; in UpdateStdInStdOutStdErr()
758 *OldStdErr = ShellParameters->StdErr; in UpdateStdInStdOutStdErr()
777 ShellParameters->StdIn = Split->SplitStdIn; in UpdateStdInStdOutStdErr()
780 ShellParameters->StdOut = Split->SplitStdOut; in UpdateStdInStdOutStdErr()
1121 ShellParameters->StdIn = *OldStdIn; in UpdateStdInStdOutStdErr()
1122 ShellParameters->StdOut = *OldStdOut; in UpdateStdInStdOutStdErr()
1123 ShellParameters->StdErr = *OldStdErr; in UpdateStdInStdOutStdErr()
1148 ShellParameters->StdErr = TempHandle; in UpdateStdInStdOutStdErr()
1191 ShellParameters->StdOut = TempHandle; in UpdateStdInStdOutStdErr()
1209 ShellParameters->StdOut = TempHandle; in UpdateStdInStdOutStdErr()
1225 ShellParameters->StdErr = TempHandle; in UpdateStdInStdOutStdErr()
1244 ShellParameters->StdIn = TempHandle; in UpdateStdInStdOutStdErr()
1266 ShellParameters->StdIn = TempHandle; in UpdateStdInStdOutStdErr()
1301 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, in RestoreStdInStdOutStdErr() argument
1310 if (ShellParameters == NULL in RestoreStdInStdOutStdErr()
1322 if (ShellParameters->StdIn != *OldStdIn) { in RestoreStdInStdOutStdErr()
1323 if ((Split != NULL && Split->SplitStdIn != ShellParameters->StdIn) || Split == NULL) { in RestoreStdInStdOutStdErr()
1324 gEfiShellProtocol->CloseFile(ShellParameters->StdIn); in RestoreStdInStdOutStdErr()
1326 ShellParameters->StdIn = *OldStdIn; in RestoreStdInStdOutStdErr()
1328 if (ShellParameters->StdOut != *OldStdOut) { in RestoreStdInStdOutStdErr()
1329 if ((Split != NULL && Split->SplitStdOut != ShellParameters->StdOut) || Split == NULL) { in RestoreStdInStdOutStdErr()
1330 gEfiShellProtocol->CloseFile(ShellParameters->StdOut); in RestoreStdInStdOutStdErr()
1332 ShellParameters->StdOut = *OldStdOut; in RestoreStdInStdOutStdErr()
1334 if (ShellParameters->StdErr != *OldStdErr) { in RestoreStdInStdOutStdErr()
1335 gEfiShellProtocol->CloseFile(ShellParameters->StdErr); in RestoreStdInStdOutStdErr()
1336 ShellParameters->StdErr = *OldStdErr; in RestoreStdInStdOutStdErr()
1377 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, in UpdateArgcArgv() argument
1386 ASSERT(ShellParameters != NULL); in UpdateArgcArgv()
1390 *OldArgc = ShellParameters->Argc; in UpdateArgcArgv()
1393 *OldArgv = ShellParameters->Argv; in UpdateArgcArgv()
1402 &(ShellParameters->Argv), in UpdateArgcArgv()
1403 &(ShellParameters->Argc) in UpdateArgcArgv()
1418 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, in RestoreArgcArgv() argument
1424 ASSERT(ShellParameters != NULL); in RestoreArgcArgv()
1428 if (ShellParameters->Argv != NULL) { in RestoreArgcArgv()
1430 ; LoopCounter < ShellParameters->Argc in RestoreArgcArgv()
1433 FreePool(ShellParameters->Argv[LoopCounter]); in RestoreArgcArgv()
1435 FreePool(ShellParameters->Argv); in RestoreArgcArgv()
1437 ShellParameters->Argv = *OldArgv; in RestoreArgcArgv()
1439 ShellParameters->Argc = *OldArgc; in RestoreArgcArgv()