Lines Matching defs:config
138 struct usb_config_descriptor *config, *hs_config;
740 DBG(data->dev, "config %s, bad tag %d\n", data->name, tag);
763 DBG(data->dev, "config %s, bad hs length or type\n",
959 power = dev->config->bMaxPower;
1321 dev->req->buf = dev->config;
1322 len = le16_to_cpu(dev->config->wTotalLength);
1357 ERROR (dev, "no high speed config??\n");
1413 /* currently one config, two speeds */
1423 u8 config, power;
1427 config = dev->hs_config->bConfigurationValue;
1430 config = dev->config->bConfigurationValue;
1431 power = dev->config->bMaxPower;
1434 if (config == (u8) w_value) {
1436 dev->current_config = config;
1766 * would change to support features like multi-config devices
1767 * . full/low speed config ... all wTotalLength bytes (with interface,
1769 * . high speed config ... all descriptors, for high speed operation;
1782 static int is_valid_config(struct usb_config_descriptor *config,
1785 return config->bDescriptorType == USB_DT_CONFIG
1786 && config->bLength == USB_DT_CONFIG_SIZE
1788 && config->bConfigurationValue != 0
1789 && (config->bmAttributes & USB_CONFIG_ATT_ONE) != 0
1790 && (config->bmAttributes & USB_CONFIG_ATT_WAKEUP) == 0;
1837 /* full or low speed config */
1838 dev->config = (void *) kbuf;
1839 total = le16_to_cpu(dev->config->wTotalLength);
1840 if (!is_valid_config(dev->config, total) ||
1846 /* optional high speed config */
1898 dev->config = NULL;