Home
last modified time | relevance | path

Searched refs:UsbDebugPortHandle (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb/
DDebugCommunicationLibUsb.c776 USB_DEBUG_PORT_HANDLE *UsbDebugPortHandle; in DebugPortReadBuffer() local
790 UsbDebugPortHandle = &mDebugCommunicationLibUsbDebugPortHandle; in DebugPortReadBuffer()
792 UsbDebugPortHandle = (USB_DEBUG_PORT_HANDLE *)Handle; in DebugPortReadBuffer()
795 if (NeedReinitializeHardware(UsbDebugPortHandle)) { in DebugPortReadBuffer()
796 Status = InitializeUsbDebugHardware (UsbDebugPortHandle); in DebugPortReadBuffer()
802 …egister = (USB_DEBUG_PORT_REGISTER *)(UINTN)(UsbDebugPortHandle->UsbDebugPortMemoryBase + UsbDebug… in DebugPortReadBuffer()
807 if (UsbDebugPortHandle->DataCount < 1) { in DebugPortReadBuffer()
810 *Buffer = UsbDebugPortHandle->Data[0]; in DebugPortReadBuffer()
811 for (Index = 0; Index < UsbDebugPortHandle->DataCount - 1; Index++) { in DebugPortReadBuffer()
815 UsbDebugPortHandle->Data[Index] = UsbDebugPortHandle->Data[Index + 1]; in DebugPortReadBuffer()
[all …]
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/
DDebugCommunicationLibUsb3Common.c774 USB3_DEBUG_PORT_HANDLE *UsbDebugPortHandle; in DebugPortReadBuffer() local
788 UsbDebugPortHandle = &mDebugCommunicationLibUsb3DebugPortHandle; in DebugPortReadBuffer()
790 UsbDebugPortHandle = (USB3_DEBUG_PORT_HANDLE *)Handle; in DebugPortReadBuffer()
793 if (UsbDebugPortHandle->Initialized == USB3DBG_NO_DBG_CAB) { in DebugPortReadBuffer()
797 if (NeedReinitializeHardware(UsbDebugPortHandle)) { in DebugPortReadBuffer()
798 Status = InitializeUsbDebugHardware (UsbDebugPortHandle); in DebugPortReadBuffer()
804 Data = (UINT8 *)(UINTN)UsbDebugPortHandle->Data; in DebugPortReadBuffer()
809 if (UsbDebugPortHandle->DataCount < 1) { in DebugPortReadBuffer()
814 for (Index = 0; Index < UsbDebugPortHandle->DataCount - 1; Index++) { in DebugPortReadBuffer()
820 UsbDebugPortHandle->DataCount = (UINT8)(UsbDebugPortHandle->DataCount - 1); in DebugPortReadBuffer()
[all …]