/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/ |
D | UsbDesc.c | 112 IN USB_DEVICE_DESC *DevDesc in UsbFreeDevDesc() argument 117 if (DevDesc->Configs != NULL) { in UsbFreeDevDesc() 118 for (Index = 0; Index < DevDesc->Desc.NumConfigurations; Index++) { in UsbFreeDevDesc() 119 if (DevDesc->Configs[Index] != NULL) { in UsbFreeDevDesc() 120 UsbFreeConfigDesc (DevDesc->Configs[Index]); in UsbFreeDevDesc() 124 FreePool (DevDesc->Configs); in UsbFreeDevDesc() 127 FreePool (DevDesc); in UsbFreeDevDesc() 529 EFI_USB_DEVICE_DESCRIPTOR DevDesc; in UsbGetMaxPacketSize0() local 539 Status = UsbCtrlGetDesc (UsbDev, USB_DESC_TYPE_DEVICE, 0, 0, &DevDesc, 8); in UsbGetMaxPacketSize0() 542 if ((DevDesc.BcdUSB == 0x0300) && (DevDesc.MaxPacketSize0 == 9)) { in UsbGetMaxPacketSize0() [all …]
|
D | UsbUtility.c | 921 EFI_USB_DEVICE_DESCRIPTOR *DevDesc; in MatchUsbClass() local 933 DevDesc = &(UsbIf->Device->DevDesc->Desc); in MatchUsbClass() 949 …if ((UsbClassDevicePathPtr->VendorId == 0xffff || UsbClassDevicePathPtr->VendorId == DevDesc->IdVe… in MatchUsbClass() 950 …(UsbClassDevicePathPtr->ProductId == 0xffff || UsbClassDevicePathPtr->ProductId == DevDesc->IdProd… in MatchUsbClass() 955 if (DevDesc->DeviceClass == 0) { in MatchUsbClass() 965 } else if ((UsbClassDevicePathPtr->DeviceClass == DevDesc->DeviceClass || in MatchUsbClass() 967 (UsbClassDevicePathPtr->DeviceSubClass == DevDesc->DeviceSubClass || in MatchUsbClass() 969 (UsbClassDevicePathPtr->DeviceProtocol == DevDesc->DeviceProtocol || in MatchUsbClass() 998 EFI_USB_DEVICE_DESCRIPTOR *DevDesc; in MatchUsbWwid() local 1014 DevDesc = &(UsbIf->Device->DevDesc->Desc); in MatchUsbWwid() [all …]
|
D | UsbEnumer.c | 198 if (Device->DevDesc != NULL) { in UsbFreeDevice() 199 UsbFreeDevDesc (Device->DevDesc); in UsbFreeDevice() 376 USB_DEVICE_DESC *DevDesc; in UsbSelectConfig() local 386 DevDesc = Device->DevDesc; in UsbSelectConfig() 389 for (Index = 0; Index < DevDesc->Desc.NumConfigurations; Index++) { in UsbSelectConfig() 390 ConfigDesc = DevDesc->Configs[Index]; in UsbSelectConfig() 397 if (Index == DevDesc->Desc.NumConfigurations) { in UsbSelectConfig() 811 Config = Child->DevDesc->Configs[0]->Desc.ConfigurationValue; in UsbEnumerateNewDev()
|
D | UsbDesc.h | 140 IN USB_DEVICE_DESC *DevDesc
|
D | UsbBus.h | 183 USB_DEVICE_DESC *DevDesc; member
|
D | UsbBus.c | 537 CopyMem (Descriptor, &Dev->DevDesc->Desc, sizeof (EFI_USB_DEVICE_DESCRIPTOR)); in UsbIoGetDeviceDescriptor()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiBootManagerLib/ |
D | BmBoot.c | 372 EFI_USB_DEVICE_DESCRIPTOR DevDesc; in BmMatchUsbClass() local 386 Status = UsbIo->UsbGetDeviceDescriptor (UsbIo, &DevDesc); in BmMatchUsbClass() 392 (UsbClass->VendorId != DevDesc.IdVendor)) { in BmMatchUsbClass() 397 (UsbClass->ProductId != DevDesc.IdProduct)) { in BmMatchUsbClass() 401 DeviceClass = DevDesc.DeviceClass; in BmMatchUsbClass() 402 DeviceSubClass = DevDesc.DeviceSubClass; in BmMatchUsbClass() 403 DeviceProtocol = DevDesc.DeviceProtocol; in BmMatchUsbClass() 583 EFI_USB_DEVICE_DESCRIPTOR DevDesc; in BmGetUsbDescription() local 597 Status = UsbIo->UsbGetDeviceDescriptor (UsbIo, &DevDesc); in BmGetUsbDescription() 605 DevDesc.StrManufacturer, in BmGetUsbDescription() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/ |
D | XhcPeim.c | 689 CopyMem (&Xhc->UsbDevContext[SlotId].DevDesc, Data, *DataLength); in XhcPeiControlTransfer() 690 if (Xhc->UsbDevContext[SlotId].DevDesc.BcdUSB == 0x0300) { in XhcPeiControlTransfer() 694 MaxPacket0 = 1 << Xhc->UsbDevContext[SlotId].DevDesc.MaxPacketSize0; in XhcPeiControlTransfer() 696 MaxPacket0 = Xhc->UsbDevContext[SlotId].DevDesc.MaxPacketSize0; in XhcPeiControlTransfer() 698 …Xhc->UsbDevContext[SlotId].ConfDesc = AllocateZeroPool (Xhc->UsbDevContext[SlotId].DevDesc.NumConf… in XhcPeiControlTransfer() 715 ASSERT (Index < Xhc->UsbDevContext[SlotId].DevDesc.NumConfigurations); in XhcPeiControlTransfer() 732 if (Xhc->UsbDevContext[SlotId].DevDesc.DeviceProtocol == 2) { in XhcPeiControlTransfer() 753 for (Index = 0; Index < Xhc->UsbDevContext[SlotId].DevDesc.NumConfigurations; Index++) { in XhcPeiControlTransfer()
|
D | XhcPeim.h | 129 EFI_USB_DEVICE_DESCRIPTOR DevDesc; member
|
D | XhciSched.c | 1507 for (Index = 0; Index < Xhc->UsbDevContext[SlotId].DevDesc.NumConfigurations; Index++) { in XhcPeiDisableSlotCmd() 1610 for (Index = 0; Index < Xhc->UsbDevContext[SlotId].DevDesc.NumConfigurations; Index++) { in XhcPeiDisableSlotCmd64()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/ |
D | Xhci.c | 957 CopyMem (&Xhc->UsbDevContext[SlotId].DevDesc, Data, *DataLength); in XhcControlTransfer() 958 if (Xhc->UsbDevContext[SlotId].DevDesc.BcdUSB == 0x0300) { in XhcControlTransfer() 962 MaxPacket0 = 1 << Xhc->UsbDevContext[SlotId].DevDesc.MaxPacketSize0; in XhcControlTransfer() 964 MaxPacket0 = Xhc->UsbDevContext[SlotId].DevDesc.MaxPacketSize0; in XhcControlTransfer() 966 …Xhc->UsbDevContext[SlotId].ConfDesc = AllocateZeroPool (Xhc->UsbDevContext[SlotId].DevDesc.NumConf… in XhcControlTransfer() 979 ASSERT (Index < Xhc->UsbDevContext[SlotId].DevDesc.NumConfigurations); in XhcControlTransfer() 996 if (Xhc->UsbDevContext[SlotId].DevDesc.DeviceProtocol == 2) { in XhcControlTransfer() 1017 for (Index = 0; Index < Xhc->UsbDevContext[SlotId].DevDesc.NumConfigurations; Index++) { in XhcControlTransfer()
|
D | Xhci.h | 185 EFI_USB_DEVICE_DESCRIPTOR DevDesc; member
|
D | XhciSched.c | 2421 for (Index = 0; Index < Xhc->UsbDevContext[SlotId].DevDesc.NumConfigurations; Index++) { in XhcDisableSlotCmd() 2528 for (Index = 0; Index < Xhc->UsbDevContext[SlotId].DevDesc.NumConfigurations; Index++) { in XhcDisableSlotCmd64()
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/GenericBdsLib/ |
D | BdsBoot.c | 1776 EFI_USB_DEVICE_DESCRIPTOR DevDesc; in BdsMatchUsbClass() local 1790 Status = UsbIo->UsbGetDeviceDescriptor (UsbIo, &DevDesc); in BdsMatchUsbClass() 1796 (UsbClass->VendorId != DevDesc.IdVendor)) { in BdsMatchUsbClass() 1801 (UsbClass->ProductId != DevDesc.IdProduct)) { in BdsMatchUsbClass() 1805 DeviceClass = DevDesc.DeviceClass; in BdsMatchUsbClass() 1806 DeviceSubClass = DevDesc.DeviceSubClass; in BdsMatchUsbClass() 1807 DeviceProtocol = DevDesc.DeviceProtocol; in BdsMatchUsbClass() 1862 EFI_USB_DEVICE_DESCRIPTOR DevDesc; in BdsMatchUsbWwid() local 1880 Status = UsbIo->UsbGetDeviceDescriptor (UsbIo, &DevDesc); in BdsMatchUsbWwid() 1884 if ((DevDesc.IdVendor != UsbWwid->VendorId) || in BdsMatchUsbWwid() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Override/IntelFrameworkModulePkg/Library/GenericBdsLib/ |
D | BdsBoot.c | 1778 EFI_USB_DEVICE_DESCRIPTOR DevDesc; in BdsMatchUsbClass() local 1792 Status = UsbIo->UsbGetDeviceDescriptor (UsbIo, &DevDesc); in BdsMatchUsbClass() 1798 (UsbClass->VendorId != DevDesc.IdVendor)) { in BdsMatchUsbClass() 1803 (UsbClass->ProductId != DevDesc.IdProduct)) { in BdsMatchUsbClass() 1807 DeviceClass = DevDesc.DeviceClass; in BdsMatchUsbClass() 1808 DeviceSubClass = DevDesc.DeviceSubClass; in BdsMatchUsbClass() 1809 DeviceProtocol = DevDesc.DeviceProtocol; in BdsMatchUsbClass() 1864 EFI_USB_DEVICE_DESCRIPTOR DevDesc; in BdsMatchUsbWwid() local 1882 Status = UsbIo->UsbGetDeviceDescriptor (UsbIo, &DevDesc); in BdsMatchUsbWwid() 1886 if ((DevDesc.IdVendor != UsbWwid->VendorId) || in BdsMatchUsbWwid() [all …]
|