Lines Matching refs:UsbDebugPortRegister

533   USB_DEBUG_PORT_REGISTER *UsbDebugPortRegister;  in NeedReinitializeHardware()  local
562UsbDebugPortRegister = (USB_DEBUG_PORT_REGISTER *)(UINTN)(Handle->UsbDebugPortMemoryBase + Handle-… in NeedReinitializeHardware()
563 …if ((MmioRead32((UINTN)&UsbDebugPortRegister->ControlStatus) & (USB_DEBUG_PORT_OWNER | USB_DEBUG_P… in NeedReinitializeHardware()
598 USB_DEBUG_PORT_REGISTER *UsbDebugPortRegister; in InitializeUsbDebugHardware() local
608UsbDebugPortRegister = (USB_DEBUG_PORT_REGISTER *)(UINTN)(Handle->UsbDebugPortMemoryBase + Handle-… in InitializeUsbDebugHardware()
617 …if (((MmioRead32((UINTN)&UsbDebugPortRegister->ControlStatus) & (USB_DEBUG_PORT_OWNER | USB_DEBUG_… in InitializeUsbDebugHardware()
622 MmioRead32((UINTN)&UsbDebugPortRegister->ControlStatus) in InitializeUsbDebugHardware()
646 …MmioOr32((UINTN)&UsbDebugPortRegister->ControlStatus, USB_DEBUG_PORT_OWNER | USB_DEBUG_PORT_IN_USE… in InitializeUsbDebugHardware()
664 (MmioRead32 ((UINTN) &UsbDebugPortRegister->ControlStatus) & USB_DEBUG_PORT_ENABLE) == 0) { in InitializeUsbDebugHardware()
685 MmioOr32((UINTN)&UsbDebugPortRegister->ControlStatus, USB_DEBUG_PORT_ENABLE); in InitializeUsbDebugHardware()
696 …Status = UsbDebugPortControlTransfer (UsbDebugPortRegister, &mDebugCommunicationLibUsbSetDebugAddr… in InitializeUsbDebugHardware()
713 …Status = UsbDebugPortControlTransfer (UsbDebugPortRegister, &mDebugCommunicationLibUsbGetDebugDesc… in InitializeUsbDebugHardware()
730 …Status = UsbDebugPortControlTransfer (UsbDebugPortRegister, &mDebugCommunicationLibUsbSetDebugFeat… in InitializeUsbDebugHardware()
777 USB_DEBUG_PORT_REGISTER *UsbDebugPortRegister; in DebugPortReadBuffer() local
802UsbDebugPortRegister = (USB_DEBUG_PORT_REGISTER *)(UINTN)(UsbDebugPortHandle->UsbDebugPortMemoryBa… in DebugPortReadBuffer()
848 USB_DEBUG_PORT_REGISTER *UsbDebugPortRegister; in DebugPortWriteBuffer() local
878UsbDebugPortRegister = (USB_DEBUG_PORT_REGISTER *)(UINTN)(UsbDebugPortHandle->UsbDebugPortMemoryBa… in DebugPortWriteBuffer()
887 …Status = UsbDebugPortOut(UsbDebugPortRegister, Buffer + Total, Sent, OUTPUT_PID, 0x7F, 0x01, UsbDe… in DebugPortWriteBuffer()
893 ReceivedPid = (MmioRead8((UINTN)&UsbDebugPortRegister->ReceivedPid)); in DebugPortWriteBuffer()
928 USB_DEBUG_PORT_REGISTER *UsbDebugPortRegister; in DebugPortPollBuffer() local
958UsbDebugPortRegister = (USB_DEBUG_PORT_REGISTER *)(UINTN)(UsbDebugPortHandle->UsbDebugPortMemoryBa… in DebugPortPollBuffer()
960 UsbDebugPortRegister->TokenPid = INPUT_PID; in DebugPortPollBuffer()
962 UsbDebugPortRegister->SendPid = DATA0_PID; in DebugPortPollBuffer()
964 UsbDebugPortRegister->SendPid = DATA1_PID; in DebugPortPollBuffer()
966 UsbDebugPortRegister->UsbAddress = 0x7F; in DebugPortPollBuffer()
967 UsbDebugPortRegister->UsbEndPoint = 0x82 & 0x0F; in DebugPortPollBuffer()
972 MmioAnd32((UINTN)&UsbDebugPortRegister->ControlStatus, (UINT32)~BIT4); in DebugPortPollBuffer()
976 MmioOr32((UINTN)&UsbDebugPortRegister->ControlStatus, (UINT32)BIT5); in DebugPortPollBuffer()
981 while ((MmioRead32((UINTN)&UsbDebugPortRegister->ControlStatus) & (UINT32)BIT16) == 0) { in DebugPortPollBuffer()
982 …if ((MmioRead32((UINTN)&UsbDebugPortRegister->ControlStatus) & (USB_DEBUG_PORT_OWNER | USB_DEBUG_P… in DebugPortPollBuffer()
988 if ((MmioRead32((UINTN)&UsbDebugPortRegister->ControlStatus)) & BIT6) { in DebugPortPollBuffer()
992 Length = (UINT8)(MmioRead32((UINTN)&UsbDebugPortRegister->ControlStatus) & 0xF); in DebugPortPollBuffer()
1005 UsbDebugPortHandle->Data[Index] = UsbDebugPortRegister->DataBuffer[Index]; in DebugPortPollBuffer()