Lines Matching defs:desc
65 usb_endpoint_num(&urb->ep->desc),
237 if ((ep->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) ==
242 ep->desc.bInterval);
288 usb_endpoint_num(&urb->ep->desc),
903 struct usb_device_descriptor *desc;
906 if (size > sizeof(*desc))
908 desc = kmalloc(sizeof(*desc), GFP_NOIO);
909 if (!desc)
912 ret = usb_get_descriptor(dev, USB_DT_DEVICE, 0, desc, size);
914 memcpy(&dev->descriptor, desc, size);
915 kfree(desc);
1026 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1040 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1122 for (i = 0; i < alt->desc.bNumEndpoints; ++i) {
1124 alt->endpoint[i].desc.bEndpointAddress,
1147 for (i = 0; i < dev->actconfig->desc.bNumInterfaces; i++) {
1164 for (i = 0; i < dev->actconfig->desc.bNumInterfaces; i++) {
1193 int epnum = usb_endpoint_num(&ep->desc);
1194 int is_out = usb_endpoint_dir_out(&ep->desc);
1195 int is_control = usb_endpoint_xfer_control(&ep->desc);
1220 for (i = 0; i < alt->desc.bNumEndpoints; ++i)
1337 for (i = 0; i < alt->desc.bNumEndpoints; i++) {
1338 epaddr = alt->endpoint[i].desc.bEndpointAddress;
1413 for (i = 0; i < config->desc.bNumInterfaces; i++) {
1445 config->desc.bConfigurationValue, 0,
1452 for (i = 0; i < config->desc.bNumInterfaces; i++) {
1503 alt->desc.bInterfaceClass,
1504 alt->desc.bInterfaceSubClass,
1505 alt->desc.bInterfaceProtocol))
1517 alt->desc.bInterfaceClass,
1518 alt->desc.bInterfaceSubClass,
1519 alt->desc.bInterfaceProtocol))
1665 if (dev->config[i].desc.bConfigurationValue ==
1687 nintf = cp->desc.bNumInterfaces;
1710 i = dev->bus_mA - cp->desc.bMaxPower * 2;
1804 configuration, alt->desc.bInterfaceNumber);
1810 cp->string = usb_cache_string(dev, cp->desc.iConfiguration);
1824 intf->cur_altsetting->desc.bInterfaceNumber);