Lines Matching defs:Config
61 @param Config The configuration descriptor to free.
66 IN USB_CONFIG_DESC *Config
73 if (Config->Interfaces != NULL) {
77 for (Index = 0; Index < Config->Desc.NumInterfaces; Index++) {
78 Interface = Config->Interfaces[Index];
96 FreePool (Config->Interfaces);
99 FreePool (Config);
306 USB_CONFIG_DESC *Config;
315 Config = UsbCreateDesc (DescBuf, Len, USB_DESC_TYPE_CONFIG, &Consumed);
317 if (Config == NULL) {
324 NumIf = Config->Desc.NumInterfaces;
325 Config->Interfaces = AllocateZeroPool (sizeof (USB_INTERFACE_DESC *) * NumIf);
327 if (Config->Interfaces == NULL) {
332 Config->Desc.ConfigurationValue, (UINT32)NumIf));
341 Config->Interfaces[Index] = Interface;
376 Interface = Config->Interfaces[Setting->Desc.InterfaceNumber];
389 return Config;
392 UsbFreeConfigDesc (Config);
771 EFI_USB_CONFIG_DESCRIPTOR *Config;
803 Config = UsbGetOneConfig (UsbDev, Index);
805 if (Config == NULL) {
819 ConfigDesc = UsbParseConfigDesc ((UINT8 *) Config, Config->TotalLength);
821 FreePool (Config);