Home
last modified time | relevance | path

Searched refs:EpDesc (Results 1 – 5 of 5) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/
DUsbBus.c76 USB_ENDPOINT_DESC *EpDesc; in UsbIoControlTransfer() local
138 EpDesc = UsbGetEndpointDesc (UsbIf, (UINT8) Request->Index); in UsbIoControlTransfer()
140 if (EpDesc != NULL) { in UsbIoControlTransfer()
141 EpDesc->Toggle = 0; in UsbIoControlTransfer()
233 USB_ENDPOINT_DESC *EpDesc; in UsbIoBulkTransfer() local
250 EpDesc = UsbGetEndpointDesc (UsbIf, Endpoint); in UsbIoBulkTransfer()
252 if ((EpDesc == NULL) || (USB_ENDPOINT_TYPE (&EpDesc->Desc) != USB_ENDPOINT_BULK)) { in UsbIoBulkTransfer()
258 Toggle = EpDesc->Toggle; in UsbIoBulkTransfer()
264 EpDesc->Desc.MaxPacketSize, in UsbIoBulkTransfer()
274 EpDesc->Toggle = Toggle; in UsbIoBulkTransfer()
[all …]
DUsbHub.c598 EFI_USB_ENDPOINT_DESCRIPTOR *EpDesc; in UsbOnHubInterrupt() local
603 EpDesc = &(HubIf->HubEp->Desc); in UsbOnHubInterrupt()
615 EpDesc->EndpointAddress in UsbOnHubInterrupt()
624 EpDesc->EndpointAddress, in UsbOnHubInterrupt()
639 EpDesc->EndpointAddress, in UsbOnHubInterrupt()
694 USB_ENDPOINT_DESC *EpDesc; in UsbHubInit() local
709 EpDesc = NULL; in UsbHubInit()
715 EpDesc = Setting->Endpoints[Index]; in UsbHubInit()
717 if (USB_BIT_IS_SET (EpDesc->Desc.EndpointAddress, USB_ENDPOINT_DIR_IN) && in UsbHubInit()
718 (USB_ENDPOINT_TYPE (&EpDesc->Desc) == USB_ENDPOINT_INTERRUPT)) { in UsbHubInit()
[all …]
DUsbEnumer.c33 USB_ENDPOINT_DESC *EpDesc; in UsbGetEndpointDesc() local
40 EpDesc = UsbIf->IfSetting->Endpoints[Index]; in UsbGetEndpointDesc()
42 if (EpDesc->Desc.EndpointAddress == EpAddr) { in UsbGetEndpointDesc()
43 return EpDesc; in UsbGetEndpointDesc()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
DXhciSched.c2578 USB_ENDPOINT_DESCRIPTOR *EpDesc; in XhcInitializeEndpointContext() local
2593 EpDesc = (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1); in XhcInitializeEndpointContext()
2595 while (EpDesc->DescriptorType != USB_DESC_TYPE_ENDPOINT) { in XhcInitializeEndpointContext()
2596 EpDesc = (USB_ENDPOINT_DESCRIPTOR *)((UINTN)EpDesc + EpDesc->Length); in XhcInitializeEndpointContext()
2599 EpAddr = (UINT8)(EpDesc->EndpointAddress & 0x0F); in XhcInitializeEndpointContext()
2600 Direction = (UINT8)((EpDesc->EndpointAddress & 0x80) ? EfiUsbDataIn : EfiUsbDataOut); in XhcInitializeEndpointContext()
2609 InputContext->EP[Dci-1].MaxPacketSize = EpDesc->MaxPacketSize; in XhcInitializeEndpointContext()
2620 switch (EpDesc->Attributes & USB_ENDPOINT_TYPE_MASK) { in XhcInitializeEndpointContext()
2650 EpDesc = (USB_ENDPOINT_DESCRIPTOR *)((UINTN)EpDesc + EpDesc->Length); in XhcInitializeEndpointContext()
2661 InputContext->EP[Dci-1].MaxESITPayload = EpDesc->MaxPacketSize; in XhcInitializeEndpointContext()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/
DXhciSched.c1656 USB_ENDPOINT_DESCRIPTOR *EpDesc; in XhcPeiSetConfigCmd() local
1692 EpDesc = (USB_ENDPOINT_DESCRIPTOR *) (IfDesc + 1); in XhcPeiSetConfigCmd()
1694 while (EpDesc->DescriptorType != USB_DESC_TYPE_ENDPOINT) { in XhcPeiSetConfigCmd()
1695 EpDesc = (USB_ENDPOINT_DESCRIPTOR *) ((UINTN) EpDesc + EpDesc->Length); in XhcPeiSetConfigCmd()
1698 EpAddr = (UINT8) (EpDesc->EndpointAddress & 0x0F); in XhcPeiSetConfigCmd()
1699 Direction = (UINT8) ((EpDesc->EndpointAddress & 0x80) ? EfiUsbDataIn : EfiUsbDataOut); in XhcPeiSetConfigCmd()
1707 InputContext->EP[Dci-1].MaxPacketSize = EpDesc->MaxPacketSize; in XhcPeiSetConfigCmd()
1718 switch (EpDesc->Attributes & USB_ENDPOINT_TYPE_MASK) { in XhcPeiSetConfigCmd()
1748 EpDesc = (USB_ENDPOINT_DESCRIPTOR *)((UINTN)EpDesc + EpDesc->Length); in XhcPeiSetConfigCmd()
1759 InputContext->EP[Dci-1].MaxESITPayload = EpDesc->MaxPacketSize; in XhcPeiSetConfigCmd()
[all …]