Lines Matching defs:config
138 struct usb_config_descriptor *config, *hs_config;
742 DBG(data->dev, "config %s, bad tag %d\n", data->name, tag);
765 DBG(data->dev, "config %s, bad hs length or type\n",
961 power = dev->config->bMaxPower;
1323 dev->req->buf = dev->config;
1324 len = le16_to_cpu(dev->config->wTotalLength);
1359 ERROR (dev, "no high speed config??\n");
1415 /* currently one config, two speeds */
1425 u8 config, power;
1429 config = dev->hs_config->bConfigurationValue;
1432 config = dev->config->bConfigurationValue;
1433 power = dev->config->bMaxPower;
1436 if (config == (u8) w_value) {
1438 dev->current_config = config;
1768 * would change to support features like multi-config devices
1769 * . full/low speed config ... all wTotalLength bytes (with interface,
1771 * . high speed config ... all descriptors, for high speed operation;
1784 static int is_valid_config(struct usb_config_descriptor *config,
1787 return config->bDescriptorType == USB_DT_CONFIG
1788 && config->bLength == USB_DT_CONFIG_SIZE
1790 && config->bConfigurationValue != 0
1791 && (config->bmAttributes & USB_CONFIG_ATT_ONE) != 0
1792 && (config->bmAttributes & USB_CONFIG_ATT_WAKEUP) == 0;
1839 /* full or low speed config */
1840 dev->config = (void *) kbuf;
1841 total = le16_to_cpu(dev->config->wTotalLength);
1842 if (!is_valid_config(dev->config, total) ||
1848 /* optional high speed config */
1900 dev->config = NULL;