Lines Matching refs:UsbDebugPortHandle

774   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()
850 USB3_DEBUG_PORT_HANDLE *UsbDebugPortHandle; in DebugPortWriteBuffer() local
869 UsbDebugPortHandle = &mDebugCommunicationLibUsb3DebugPortHandle; in DebugPortWriteBuffer()
871 UsbDebugPortHandle = (USB3_DEBUG_PORT_HANDLE *)Handle; in DebugPortWriteBuffer()
874 if (UsbDebugPortHandle->Initialized == USB3DBG_NO_DBG_CAB) { in DebugPortWriteBuffer()
883 UpdateXhcResource (UsbDebugPortHandle, XhciMmioBase); in DebugPortWriteBuffer()
885 if (NeedReinitializeHardware(UsbDebugPortHandle)) { in DebugPortWriteBuffer()
886 Status = InitializeUsbDebugHardware (UsbDebugPortHandle); in DebugPortWriteBuffer()
905 …Status = XhcDataTransfer (UsbDebugPortHandle, EfiUsbDataOut, Buffer + Total, &Sent, DATA_TRANSFER_… in DebugPortWriteBuffer()
931 USB3_DEBUG_PORT_HANDLE *UsbDebugPortHandle; in DebugPortPollBuffer() local
941 UsbDebugPortHandle = &mDebugCommunicationLibUsb3DebugPortHandle; in DebugPortPollBuffer()
943 UsbDebugPortHandle = (USB3_DEBUG_PORT_HANDLE *)Handle; in DebugPortPollBuffer()
946 if (UsbDebugPortHandle->Initialized == USB3DBG_NO_DBG_CAB) { in DebugPortPollBuffer()
951 UpdateXhcResource (UsbDebugPortHandle, XhciMmioBase); in DebugPortPollBuffer()
953 if (NeedReinitializeHardware(UsbDebugPortHandle)) { in DebugPortPollBuffer()
954 Status = InitializeUsbDebugHardware(UsbDebugPortHandle); in DebugPortPollBuffer()
964 if (UsbDebugPortHandle->DataCount != 0) { in DebugPortPollBuffer()
972 …XhcDataTransfer (Handle, EfiUsbDataIn, (VOID *)(UINTN)UsbDebugPortHandle->Data, &Length, DATA_TRAN… in DebugPortPollBuffer()
985 UsbDebugPortHandle->DataCount = (UINT8) Length; in DebugPortPollBuffer()
1022 USB3_DEBUG_PORT_HANDLE *UsbDebugPortHandle; in DebugPortInitialize() local
1030 UsbDebugPortHandle = (USB3_DEBUG_PORT_HANDLE *)Context; in DebugPortInitialize()
1033 UsbDebugPortHandle = &Handle; in DebugPortInitialize()
1043 UsbDebugPortHandle->XhciMmioBase = ProgramXhciBaseAddress (); in DebugPortInitialize()
1045 Status = CalculateUsbDebugPortMmioBase (UsbDebugPortHandle); in DebugPortInitialize()