Lines Matching refs:DebugPortRegister

262   IN      USB_DEBUG_PORT_REGISTER         *DebugPortRegister,  in UsbDebugPortIn()  argument
278 DebugPortRegister->TokenPid = Token; in UsbDebugPortIn()
280 DebugPortRegister->SendPid = DATA1_PID; in UsbDebugPortIn()
282 DebugPortRegister->SendPid = DATA0_PID; in UsbDebugPortIn()
285 DebugPortRegister->UsbAddress = (UINT8)(Addr & 0x7F); in UsbDebugPortIn()
286 DebugPortRegister->UsbEndPoint = (UINT8)(Ep & 0xF); in UsbDebugPortIn()
291 MmioAnd32((UINTN)&DebugPortRegister->ControlStatus, (UINT32)~BIT4); in UsbDebugPortIn()
296 MmioOr32((UINTN)&DebugPortRegister->ControlStatus, (UINT32)BIT5); in UsbDebugPortIn()
301 while ((MmioRead32((UINTN)&DebugPortRegister->ControlStatus) & (UINT32)BIT16) == 0) { in UsbDebugPortIn()
302 …if ((MmioRead32((UINTN)&DebugPortRegister->ControlStatus) & (USB_DEBUG_PORT_OWNER | USB_DEBUG_PORT… in UsbDebugPortIn()
311 MmioOr32((UINTN)&DebugPortRegister->ControlStatus, BIT16); in UsbDebugPortIn()
316 if ((MmioRead32((UINTN)&DebugPortRegister->ControlStatus)) & BIT6) { in UsbDebugPortIn()
323 …if (((MmioRead32((UINTN)&DebugPortRegister->ControlStatus)) & 0xF) > USB_DEBUG_PORT_MAX_PACKET_SIZ… in UsbDebugPortIn()
327 *Length = (UINT8)(MmioRead32((UINTN)&DebugPortRegister->ControlStatus) & 0xF); in UsbDebugPortIn()
333 Buffer[Index] = DebugPortRegister->DataBuffer[Index]; in UsbDebugPortIn()
357 IN USB_DEBUG_PORT_REGISTER *DebugPortRegister, in UsbDebugPortOut() argument
372 DebugPortRegister->TokenPid = Token; in UsbDebugPortOut()
374 DebugPortRegister->SendPid = DATA1_PID; in UsbDebugPortOut()
376 DebugPortRegister->SendPid = DATA0_PID; in UsbDebugPortOut()
378 DebugPortRegister->UsbAddress = (UINT8)(Addr & 0x7F); in UsbDebugPortOut()
379 DebugPortRegister->UsbEndPoint = (UINT8)(Ep & 0xF); in UsbDebugPortOut()
384 MmioAnd32((UINTN)&DebugPortRegister->ControlStatus, (UINT32)~0xF); in UsbDebugPortOut()
385 MmioOr32((UINTN)&DebugPortRegister->ControlStatus, Length & 0xF); in UsbDebugPortOut()
387 DebugPortRegister->DataBuffer[Index] = Buffer[Index]; in UsbDebugPortOut()
393 MmioOr32((UINTN)&DebugPortRegister->ControlStatus, BIT4); in UsbDebugPortOut()
397 MmioOr32((UINTN)&DebugPortRegister->ControlStatus, BIT5); in UsbDebugPortOut()
402 while ((MmioRead32((UINTN)&DebugPortRegister->ControlStatus) & BIT16) == 0) { in UsbDebugPortOut()
403 …if ((MmioRead32((UINTN)&DebugPortRegister->ControlStatus) & (USB_DEBUG_PORT_OWNER | USB_DEBUG_PORT… in UsbDebugPortOut()
412 MmioOr32((UINTN)&DebugPortRegister->ControlStatus, BIT16); in UsbDebugPortOut()
417 if ((MmioRead32((UINTN)&DebugPortRegister->ControlStatus)) & BIT6) { in UsbDebugPortOut()
424 …if (((MmioRead32((UINTN)&DebugPortRegister->ControlStatus)) & 0xF) > USB_DEBUG_PORT_MAX_PACKET_SIZ… in UsbDebugPortOut()
449 IN USB_DEBUG_PORT_REGISTER *DebugPortRegister, in UsbDebugPortControlTransfer() argument
464 …Status = UsbDebugPortOut(DebugPortRegister, (UINT8 *)SetupPacket, (UINT8)sizeof(USB_DEVICE_REQUEST… in UsbDebugPortControlTransfer()
477 Status = UsbDebugPortIn(DebugPortRegister, Data, DataLength, INPUT_PID, Addr, Ep, 1); in UsbDebugPortControlTransfer()
485 Status = UsbDebugPortOut(DebugPortRegister, Data, *DataLength, OUTPUT_PID, Addr, Ep, 1); in UsbDebugPortControlTransfer()
499 Status = UsbDebugPortOut(DebugPortRegister, NULL, 0, OUTPUT_PID, Addr, Ep, 1); in UsbDebugPortControlTransfer()
504 Status = UsbDebugPortIn(DebugPortRegister, ReturnStatus, &Temp, INPUT_PID, Addr, Ep, 1); in UsbDebugPortControlTransfer()