Lines Matching refs:ConsoleInfo
34 OUT CONSOLE_LOGGER_PRIVATE_DATA **ConsoleInfo in ConsoleLoggerInstall() argument
38 ASSERT(ConsoleInfo != NULL); in ConsoleLoggerInstall()
40 (*ConsoleInfo) = AllocateZeroPool(sizeof(CONSOLE_LOGGER_PRIVATE_DATA)); in ConsoleLoggerInstall()
41 if ((*ConsoleInfo) == NULL) { in ConsoleLoggerInstall()
45 (*ConsoleInfo)->Signature = CONSOLE_LOGGER_PRIVATE_DATA_SIGNATURE; in ConsoleLoggerInstall()
46 (*ConsoleInfo)->OldConOut = gST->ConOut; in ConsoleLoggerInstall()
47 (*ConsoleInfo)->OldConHandle = gST->ConsoleOutHandle; in ConsoleLoggerInstall()
48 (*ConsoleInfo)->Buffer = NULL; in ConsoleLoggerInstall()
49 (*ConsoleInfo)->BufferSize = 0; in ConsoleLoggerInstall()
50 (*ConsoleInfo)->OriginalStartRow = 0; in ConsoleLoggerInstall()
51 (*ConsoleInfo)->CurrentStartRow = 0; in ConsoleLoggerInstall()
52 (*ConsoleInfo)->RowsPerScreen = 0; in ConsoleLoggerInstall()
53 (*ConsoleInfo)->ColsPerScreen = 0; in ConsoleLoggerInstall()
54 (*ConsoleInfo)->Attributes = NULL; in ConsoleLoggerInstall()
55 (*ConsoleInfo)->AttribSize = 0; in ConsoleLoggerInstall()
56 (*ConsoleInfo)->ScreenCount = ScreensToSave; in ConsoleLoggerInstall()
57 (*ConsoleInfo)->HistoryMode.MaxMode = 1; in ConsoleLoggerInstall()
58 (*ConsoleInfo)->HistoryMode.Mode = 0; in ConsoleLoggerInstall()
59 (*ConsoleInfo)->HistoryMode.Attribute = 0; in ConsoleLoggerInstall()
60 (*ConsoleInfo)->HistoryMode.CursorColumn = 0; in ConsoleLoggerInstall()
61 (*ConsoleInfo)->HistoryMode.CursorRow = 0; in ConsoleLoggerInstall()
62 (*ConsoleInfo)->HistoryMode.CursorVisible = FALSE; in ConsoleLoggerInstall()
63 (*ConsoleInfo)->OurConOut.Reset = ConsoleLoggerReset; in ConsoleLoggerInstall()
64 (*ConsoleInfo)->OurConOut.OutputString = ConsoleLoggerOutputString; in ConsoleLoggerInstall()
65 (*ConsoleInfo)->OurConOut.TestString = ConsoleLoggerTestString; in ConsoleLoggerInstall()
66 (*ConsoleInfo)->OurConOut.QueryMode = ConsoleLoggerQueryMode; in ConsoleLoggerInstall()
67 (*ConsoleInfo)->OurConOut.SetMode = ConsoleLoggerSetMode; in ConsoleLoggerInstall()
68 (*ConsoleInfo)->OurConOut.SetAttribute = ConsoleLoggerSetAttribute; in ConsoleLoggerInstall()
69 (*ConsoleInfo)->OurConOut.ClearScreen = ConsoleLoggerClearScreen; in ConsoleLoggerInstall()
70 (*ConsoleInfo)->OurConOut.SetCursorPosition = ConsoleLoggerSetCursorPosition; in ConsoleLoggerInstall()
71 (*ConsoleInfo)->OurConOut.EnableCursor = ConsoleLoggerEnableCursor; in ConsoleLoggerInstall()
72 (*ConsoleInfo)->OurConOut.Mode = gST->ConOut->Mode; in ConsoleLoggerInstall()
73 (*ConsoleInfo)->Enabled = TRUE; in ConsoleLoggerInstall()
75 Status = ConsoleLoggerResetBuffers(*ConsoleInfo); in ConsoleLoggerInstall()
77 SHELL_FREE_NON_NULL((*ConsoleInfo)); in ConsoleLoggerInstall()
78 *ConsoleInfo = NULL; in ConsoleLoggerInstall()
82 …Handle, &gEfiSimpleTextOutProtocolGuid, EFI_NATIVE_INTERFACE, (VOID*)&((*ConsoleInfo)->OurConOut)); in ConsoleLoggerInstall()
84 SHELL_FREE_NON_NULL((*ConsoleInfo)->Buffer); in ConsoleLoggerInstall()
85 SHELL_FREE_NON_NULL((*ConsoleInfo)->Attributes); in ConsoleLoggerInstall()
86 SHELL_FREE_NON_NULL((*ConsoleInfo)); in ConsoleLoggerInstall()
87 *ConsoleInfo = NULL; in ConsoleLoggerInstall()
92 gST->ConOut = &(*ConsoleInfo)->OurConOut; in ConsoleLoggerInstall()
109 IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo in ConsoleLoggerUninstall() argument
112 ASSERT(ConsoleInfo != NULL); in ConsoleLoggerUninstall()
113 ASSERT(ConsoleInfo->OldConOut != NULL); in ConsoleLoggerUninstall()
115 if (ConsoleInfo->Buffer != NULL) { in ConsoleLoggerUninstall()
116 FreePool(ConsoleInfo->Buffer); in ConsoleLoggerUninstall()
117 DEBUG_CODE(ConsoleInfo->Buffer = NULL;); in ConsoleLoggerUninstall()
118 DEBUG_CODE(ConsoleInfo->BufferSize = 0;); in ConsoleLoggerUninstall()
120 if (ConsoleInfo->Attributes != NULL) { in ConsoleLoggerUninstall()
121 FreePool(ConsoleInfo->Attributes); in ConsoleLoggerUninstall()
122 DEBUG_CODE(ConsoleInfo->Attributes = NULL;); in ConsoleLoggerUninstall()
123 DEBUG_CODE(ConsoleInfo->AttribSize = 0;); in ConsoleLoggerUninstall()
126 gST->ConsoleOutHandle = ConsoleInfo->OldConHandle; in ConsoleLoggerUninstall()
127 gST->ConOut = ConsoleInfo->OldConOut; in ConsoleLoggerUninstall()
129 …llProtocolInterface(gImageHandle, &gEfiSimpleTextOutProtocolGuid, (VOID*)&ConsoleInfo->OurConOut)); in ConsoleLoggerUninstall()
149 IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo in ConsoleLoggerDisplayHistory() argument
154 ASSERT(ConsoleInfo != NULL); in ConsoleLoggerDisplayHistory()
161 RowChange = ConsoleInfo->RowsPerScreen; in ConsoleLoggerDisplayHistory()
164 RowChange = ConsoleInfo->RowsPerScreen / 2; in ConsoleLoggerDisplayHistory()
175 if ((ConsoleInfo->OriginalStartRow - ConsoleInfo->CurrentStartRow) < RowChange) { in ConsoleLoggerDisplayHistory()
176 RowChange = ConsoleInfo->OriginalStartRow - ConsoleInfo->CurrentStartRow; in ConsoleLoggerDisplayHistory()
179 if (ConsoleInfo->CurrentStartRow < RowChange) { in ConsoleLoggerDisplayHistory()
180 RowChange = ConsoleInfo->CurrentStartRow; in ConsoleLoggerDisplayHistory()
194 ConsoleInfo->OldConOut->ClearScreen(ConsoleInfo->OldConOut); in ConsoleLoggerDisplayHistory()
200 ConsoleInfo->CurrentStartRow += RowChange; in ConsoleLoggerDisplayHistory()
202 ConsoleInfo->CurrentStartRow -= RowChange; in ConsoleLoggerDisplayHistory()
208 return (UpdateDisplayFromHistory(ConsoleInfo)); in ConsoleLoggerDisplayHistory()
223 IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo in ConsoleLoggerStopHistory() argument
226 ASSERT(ConsoleInfo != NULL); in ConsoleLoggerStopHistory()
227 if (ConsoleInfo->CurrentStartRow == ConsoleInfo->OriginalStartRow) { in ConsoleLoggerStopHistory()
234 ConsoleInfo->OldConOut->ClearScreen(ConsoleInfo->OldConOut); in ConsoleLoggerStopHistory()
236 ConsoleInfo->CurrentStartRow = ConsoleInfo->OriginalStartRow; in ConsoleLoggerStopHistory()
237 return (UpdateDisplayFromHistory(ConsoleInfo)); in ConsoleLoggerStopHistory()
250 IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo in UpdateDisplayFromHistory() argument
267 ASSERT(ConsoleInfo != NULL); in UpdateDisplayFromHistory()
270 OrigAttribute = ConsoleInfo->OldConOut->Mode->Attribute; in UpdateDisplayFromHistory()
275 ConsoleInfo->OldConOut->EnableCursor (ConsoleInfo->OldConOut, FALSE); in UpdateDisplayFromHistory()
276 ConsoleInfo->OldConOut->SetCursorPosition (ConsoleInfo->OldConOut, 0, 0); in UpdateDisplayFromHistory()
278 Screen = &ConsoleInfo->Buffer[(ConsoleInfo->ColsPerScreen + 2) * ConsoleInfo->CurrentStartRow]; in UpdateDisplayFromHistory()
279 Attributes = &ConsoleInfo->Attributes[ConsoleInfo->ColsPerScreen * ConsoleInfo->CurrentStartRow]; in UpdateDisplayFromHistory()
281 ; CurrentRow < ConsoleInfo->RowsPerScreen in UpdateDisplayFromHistory()
283 , Screen += (ConsoleInfo->ColsPerScreen + 2) in UpdateDisplayFromHistory()
284 , Attributes += ConsoleInfo->ColsPerScreen in UpdateDisplayFromHistory()
289 if (CurrentRow == (ConsoleInfo->RowsPerScreen-1)){ in UpdateDisplayFromHistory()
290 TempCharHolder = Screen[ConsoleInfo->ColsPerScreen - 1]; in UpdateDisplayFromHistory()
291 Screen[ConsoleInfo->ColsPerScreen - 1] = CHAR_NULL; in UpdateDisplayFromHistory()
295 ; Column < ConsoleInfo->ColsPerScreen in UpdateDisplayFromHistory()
325 ConsoleInfo->OldConOut->SetAttribute(ConsoleInfo->OldConOut, CurrentAttrib); in UpdateDisplayFromHistory()
326 … ConsoleInfo->OldConOut->SetCursorPosition(ConsoleInfo->OldConOut, CurrentColumn, CurrentRow); in UpdateDisplayFromHistory()
327 Status = ConsoleInfo->OldConOut->OutputString(ConsoleInfo->OldConOut, StringSegment); in UpdateDisplayFromHistory()
351 Screen[ConsoleInfo->ColsPerScreen - 1] = TempCharHolder; in UpdateDisplayFromHistory()
360 if (ConsoleInfo->CurrentStartRow == ConsoleInfo->OriginalStartRow) { in UpdateDisplayFromHistory()
361 ConsoleInfo->OldConOut->SetAttribute ( in UpdateDisplayFromHistory()
362 ConsoleInfo->OldConOut, in UpdateDisplayFromHistory()
363 ConsoleInfo->HistoryMode.Attribute in UpdateDisplayFromHistory()
365 ConsoleInfo->OldConOut->SetCursorPosition ( in UpdateDisplayFromHistory()
366 ConsoleInfo->OldConOut, in UpdateDisplayFromHistory()
367 ConsoleInfo->HistoryMode.CursorColumn, in UpdateDisplayFromHistory()
368 ConsoleInfo->HistoryMode.CursorRow - ConsoleInfo->OriginalStartRow in UpdateDisplayFromHistory()
371 Status = ConsoleInfo->OldConOut->EnableCursor ( in UpdateDisplayFromHistory()
372 ConsoleInfo->OldConOut, in UpdateDisplayFromHistory()
373 ConsoleInfo->HistoryMode.CursorVisible in UpdateDisplayFromHistory()
379 ConsoleInfo->OldConOut->SetAttribute ( in UpdateDisplayFromHistory()
380 ConsoleInfo->OldConOut, in UpdateDisplayFromHistory()
406 CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo; in ConsoleLoggerReset() local
407 ConsoleInfo = CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(This); in ConsoleLoggerReset()
412 Status = ConsoleInfo->OldConOut->Reset (ConsoleInfo->OldConOut, ExtendedVerification); in ConsoleLoggerReset()
418 ConsoleLoggerResetBuffers(ConsoleInfo); in ConsoleLoggerReset()
420 ConsoleInfo->OriginalStartRow = 0; in ConsoleLoggerReset()
421 ConsoleInfo->CurrentStartRow = 0; in ConsoleLoggerReset()
440 IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo in AppendStringToHistory() argument
448 ASSERT(ConsoleInfo != NULL); in AppendStringToHistory()
456 if (ConsoleInfo->HistoryMode.CursorColumn > 0) { in AppendStringToHistory()
457 ConsoleInfo->HistoryMode.CursorColumn--; in AppendStringToHistory()
461 …if (ConsoleInfo->HistoryMode.CursorRow >= (INT32)((ConsoleInfo->RowsPerScreen * ConsoleInfo->Scree… in AppendStringToHistory()
465 …ASSERT(ConsoleInfo->HistoryMode.CursorRow == (INT32)((ConsoleInfo->RowsPerScreen * ConsoleInfo->Sc… in AppendStringToHistory()
470 CopySize = ConsoleInfo->ColsPerScreen in AppendStringToHistory()
471 * ((ConsoleInfo->RowsPerScreen * ConsoleInfo->ScreenCount) - 1) in AppendStringToHistory()
472 * sizeof(ConsoleInfo->Attributes[0]); in AppendStringToHistory()
473 ASSERT(CopySize < ConsoleInfo->AttribSize); in AppendStringToHistory()
475 ConsoleInfo->Attributes, in AppendStringToHistory()
476 ConsoleInfo->Attributes + ConsoleInfo->ColsPerScreen, in AppendStringToHistory()
481 ; Index < ConsoleInfo->ColsPerScreen in AppendStringToHistory()
484 …*(ConsoleInfo->Attributes + (CopySize/sizeof(ConsoleInfo->Attributes[0])) + Index) = ConsoleInfo->… in AppendStringToHistory()
490 CopySize = (ConsoleInfo->ColsPerScreen + 2) in AppendStringToHistory()
491 * ((ConsoleInfo->RowsPerScreen * ConsoleInfo->ScreenCount) - 1) in AppendStringToHistory()
492 * sizeof(ConsoleInfo->Buffer[0]); in AppendStringToHistory()
493 ASSERT(CopySize < ConsoleInfo->BufferSize); in AppendStringToHistory()
495 ConsoleInfo->Buffer, in AppendStringToHistory()
496 ConsoleInfo->Buffer + (ConsoleInfo->ColsPerScreen + 2), in AppendStringToHistory()
503 … SetMem16(((UINT8*)ConsoleInfo->Buffer)+CopySize, ConsoleInfo->ColsPerScreen*sizeof(CHAR16), L' '); in AppendStringToHistory()
512 ASSERT (ConsoleInfo->OriginalStartRow == ConsoleInfo->CurrentStartRow); in AppendStringToHistory()
516 …if (ConsoleInfo->HistoryMode.CursorRow == (INT32) (ConsoleInfo->OriginalStartRow + ConsoleInfo->Ro… in AppendStringToHistory()
517 ConsoleInfo->OriginalStartRow++; in AppendStringToHistory()
518 ConsoleInfo->CurrentStartRow++; in AppendStringToHistory()
520 ConsoleInfo->HistoryMode.CursorRow++; in AppendStringToHistory()
527 ConsoleInfo->HistoryMode.CursorColumn = 0; in AppendStringToHistory()
534 …PrintIndex = ConsoleInfo->HistoryMode.CursorRow * ConsoleInfo->ColsPerScreen + ConsoleInfo->Histor… in AppendStringToHistory()
537 ; ConsoleInfo->HistoryMode.CursorColumn < (INT32) ConsoleInfo->ColsPerScreen in AppendStringToHistory()
538 ; ConsoleInfo->HistoryMode.CursorColumn++ in AppendStringToHistory()
554 ASSERT(PrintIndex + ConsoleInfo->HistoryMode.CursorRow < ConsoleInfo->BufferSize); in AppendStringToHistory()
555 ConsoleInfo->Buffer[PrintIndex + (2*ConsoleInfo->HistoryMode.CursorRow)] = *Walker; in AppendStringToHistory()
556 ASSERT(PrintIndex < ConsoleInfo->AttribSize); in AppendStringToHistory()
557 ConsoleInfo->Attributes[PrintIndex] = ConsoleInfo->HistoryMode.Attribute; in AppendStringToHistory()
563 if (ConsoleInfo->HistoryMode.CursorColumn >= (INT32)ConsoleInfo->ColsPerScreen) { in AppendStringToHistory()
564 AppendStringToHistory(L"\r\n", ConsoleInfo); in AppendStringToHistory()
595 IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo in ConsoleLoggerOutputStringSplit() argument
603 Status = ConsoleInfo->OldConOut->OutputString (ConsoleInfo->OldConOut, (CHAR16*)String); in ConsoleLoggerOutputStringSplit()
609 return (AppendStringToHistory(String, ConsoleInfo)); in ConsoleLoggerOutputStringSplit()
646 ShellInfoObject.ConsoleInfo->RowCounter = 0; in ConsoleLoggerDoPageBreak()
653 ShellInfoObject.ConsoleInfo->Enabled = FALSE; in ConsoleLoggerDoPageBreak()
683 IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo in ConsoleLoggerPrintWithPageBreak() argument
704 if (ConsoleInfo->OurConOut.Mode->CursorColumn > 0) { in ConsoleLoggerPrintWithPageBreak()
705 ConsoleInfo->OurConOut.Mode->CursorColumn--; in ConsoleLoggerPrintWithPageBreak()
718 ConsoleLoggerOutputStringSplit (LineStart, ConsoleInfo); in ConsoleLoggerPrintWithPageBreak()
733 ShellInfoObject.ConsoleInfo->RowCounter++; in ConsoleLoggerPrintWithPageBreak()
734 ConsoleInfo->OurConOut.Mode->CursorRow++; in ConsoleLoggerPrintWithPageBreak()
741 ConsoleInfo->OurConOut.Mode->CursorColumn = 0; in ConsoleLoggerPrintWithPageBreak()
747 ConsoleInfo->OurConOut.Mode->CursorColumn++; in ConsoleLoggerPrintWithPageBreak()
751 if ((INTN)ConsoleInfo->ColsPerScreen == ConsoleInfo->OurConOut.Mode->CursorColumn + 1) { in ConsoleLoggerPrintWithPageBreak()
765 ConsoleLoggerOutputStringSplit (LineStart, ConsoleInfo); in ConsoleLoggerPrintWithPageBreak()
780 ShellInfoObject.ConsoleInfo->RowCounter++; in ConsoleLoggerPrintWithPageBreak()
781 ConsoleInfo->OurConOut.Mode->CursorRow++; in ConsoleLoggerPrintWithPageBreak()
782 ConsoleInfo->OurConOut.Mode->CursorColumn = 0; in ConsoleLoggerPrintWithPageBreak()
790 if ((ConsoleInfo->RowsPerScreen) -1 == ShellInfoObject.ConsoleInfo->RowCounter) { in ConsoleLoggerPrintWithPageBreak()
802 ConsoleLoggerOutputStringSplit (LineStart, ConsoleInfo); in ConsoleLoggerPrintWithPageBreak()
836 CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo; in ConsoleLoggerOutputString() local
838 ConsoleInfo = CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(This); in ConsoleLoggerOutputString()
842 ASSERT(ShellInfoObject.ConsoleInfo == ConsoleInfo); in ConsoleLoggerOutputString()
869 if (!ShellInfoObject.ConsoleInfo->Enabled) { in ConsoleLoggerOutputString()
872 return (ConsoleLoggerPrintWithPageBreak(WString, ConsoleInfo)); in ConsoleLoggerOutputString()
874 return (ConsoleLoggerOutputStringSplit(WString, ConsoleInfo)); in ConsoleLoggerOutputString()
899 CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo; in ConsoleLoggerTestString() local
900 ConsoleInfo = CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(This); in ConsoleLoggerTestString()
904 return (ConsoleInfo->OldConOut->TestString (ConsoleInfo->OldConOut, WString)); in ConsoleLoggerTestString()
930 CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo; in ConsoleLoggerQueryMode() local
931 ConsoleInfo = CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(This); in ConsoleLoggerQueryMode()
935 return (ConsoleInfo->OldConOut->QueryMode ( in ConsoleLoggerQueryMode()
936 ConsoleInfo->OldConOut, in ConsoleLoggerQueryMode()
964 CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo; in ConsoleLoggerSetMode() local
965 ConsoleInfo = CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(This); in ConsoleLoggerSetMode()
970 Status = ConsoleInfo->OldConOut->SetMode (ConsoleInfo->OldConOut, ModeNumber); in ConsoleLoggerSetMode()
976 ConsoleInfo->OurConOut.Mode = ConsoleInfo->OldConOut->Mode; in ConsoleLoggerSetMode()
977 ConsoleLoggerResetBuffers(ConsoleInfo); in ConsoleLoggerSetMode()
978 ConsoleInfo->OriginalStartRow = 0; in ConsoleLoggerSetMode()
979 ConsoleInfo->CurrentStartRow = 0; in ConsoleLoggerSetMode()
980 ConsoleInfo->OurConOut.ClearScreen (&ConsoleInfo->OurConOut); in ConsoleLoggerSetMode()
1010 CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo; in ConsoleLoggerSetAttribute() local
1011 ConsoleInfo = CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(This); in ConsoleLoggerSetAttribute()
1016 Status = ConsoleInfo->OldConOut->SetAttribute (ConsoleInfo->OldConOut, Attribute); in ConsoleLoggerSetAttribute()
1022 ConsoleInfo->HistoryMode.Attribute = (INT32) Attribute; in ConsoleLoggerSetAttribute()
1050 CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo; in ConsoleLoggerClearScreen() local
1056 ConsoleInfo = CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(This); in ConsoleLoggerClearScreen()
1061 Status = ConsoleInfo->OldConOut->ClearScreen (ConsoleInfo->OldConOut); in ConsoleLoggerClearScreen()
1067 Screen = &ConsoleInfo->Buffer[(ConsoleInfo->ColsPerScreen + 2) * ConsoleInfo->CurrentStartRow]; in ConsoleLoggerClearScreen()
1068 … Attributes = &ConsoleInfo->Attributes[ConsoleInfo->ColsPerScreen * ConsoleInfo->CurrentStartRow]; in ConsoleLoggerClearScreen()
1069 for ( Row = ConsoleInfo->OriginalStartRow in ConsoleLoggerClearScreen()
1070 ; Row < (ConsoleInfo->RowsPerScreen * ConsoleInfo->ScreenCount) in ConsoleLoggerClearScreen()
1074 ; Column < ConsoleInfo->ColsPerScreen in ConsoleLoggerClearScreen()
1080 *Attributes = ConsoleInfo->OldConOut->Mode->Attribute; in ConsoleLoggerClearScreen()
1087 ConsoleInfo->HistoryMode.CursorColumn = 0; in ConsoleLoggerClearScreen()
1088 ConsoleInfo->HistoryMode.CursorRow = 0; in ConsoleLoggerClearScreen()
1116 CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo; in ConsoleLoggerSetCursorPosition() local
1122 ConsoleInfo = CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(This); in ConsoleLoggerSetCursorPosition()
1126 Status = ConsoleInfo->OldConOut->SetCursorPosition ( in ConsoleLoggerSetCursorPosition()
1127 ConsoleInfo->OldConOut, in ConsoleLoggerSetCursorPosition()
1136 ConsoleInfo->HistoryMode.CursorColumn = (INT32)Column; in ConsoleLoggerSetCursorPosition()
1137 ConsoleInfo->HistoryMode.CursorRow = (INT32)(ConsoleInfo->OriginalStartRow + Row); in ConsoleLoggerSetCursorPosition()
1165 CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo; in ConsoleLoggerEnableCursor() local
1166 ConsoleInfo = CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(This); in ConsoleLoggerEnableCursor()
1170 Status = ConsoleInfo->OldConOut->EnableCursor (ConsoleInfo->OldConOut, Visible); in ConsoleLoggerEnableCursor()
1176 ConsoleInfo->HistoryMode.CursorVisible = Visible; in ConsoleLoggerEnableCursor()
1193 IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo in ConsoleLoggerResetBuffers() argument
1198 if (ConsoleInfo->Buffer != NULL) { in ConsoleLoggerResetBuffers()
1199 FreePool(ConsoleInfo->Buffer); in ConsoleLoggerResetBuffers()
1200 ConsoleInfo->Buffer = NULL; in ConsoleLoggerResetBuffers()
1201 ConsoleInfo->BufferSize = 0; in ConsoleLoggerResetBuffers()
1203 if (ConsoleInfo->Attributes != NULL) { in ConsoleLoggerResetBuffers()
1204 FreePool(ConsoleInfo->Attributes); in ConsoleLoggerResetBuffers()
1205 ConsoleInfo->Attributes = NULL; in ConsoleLoggerResetBuffers()
1206 ConsoleInfo->AttribSize = 0; in ConsoleLoggerResetBuffers()
1209 …nOut->QueryMode (gST->ConOut, gST->ConOut->Mode->Mode, &ConsoleInfo->ColsPerScreen, &ConsoleInfo->… in ConsoleLoggerResetBuffers()
1214 …ConsoleInfo->BufferSize = (ConsoleInfo->ColsPerScreen + 2) * ConsoleInfo->RowsPerScreen * ConsoleI… in ConsoleLoggerResetBuffers()
1215 …ConsoleInfo->AttribSize = ConsoleInfo->ColsPerScreen * ConsoleInfo->RowsPerScreen * ConsoleInfo->S… in ConsoleLoggerResetBuffers()
1217 ConsoleInfo->Buffer = (CHAR16*)AllocateZeroPool(ConsoleInfo->BufferSize); in ConsoleLoggerResetBuffers()
1219 if (ConsoleInfo->Buffer == NULL) { in ConsoleLoggerResetBuffers()
1223 ConsoleInfo->Attributes = (INT32*)AllocateZeroPool(ConsoleInfo->AttribSize); in ConsoleLoggerResetBuffers()
1224 if (ConsoleInfo->Attributes == NULL) { in ConsoleLoggerResetBuffers()
1225 FreePool(ConsoleInfo->Buffer); in ConsoleLoggerResetBuffers()
1226 ConsoleInfo->Buffer = NULL; in ConsoleLoggerResetBuffers()
1230 …CopyMem (&ConsoleInfo->HistoryMode, ConsoleInfo->OldConOut->Mode, sizeof (EFI_SIMPLE_TEXT_OUTPUT_M… in ConsoleLoggerResetBuffers()