Lines Matching defs:desc
80 const struct usb_endpoint_descriptor *desc;
332 dummy_enable (struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
340 if (!_ep || !desc || ep->desc || _ep->name == ep0name
341 || desc->bDescriptorType != USB_DT_ENDPOINT)
346 max = le16_to_cpu(desc->wMaxPacketSize) & 0x3ff;
357 switch (desc->bmAttributes & 0x03) {
420 ep->desc = desc;
424 desc->bEndpointAddress & 0x0f,
425 (desc->bEndpointAddress & USB_DIR_IN) ? "in" : "out",
427 switch (desc->bmAttributes & 0x03) {
452 if (!_ep || !ep->desc || _ep->name == ep0name)
457 ep->desc = NULL;
490 if (!ep || !_req || (!ep->desc && _ep->name != ep0name))
517 if (!_ep || (!ep->desc && _ep->name != ep0name))
530 if (ep->desc && (ep->desc->bEndpointAddress & USB_DIR_IN) &&
609 else if (ep->desc && (ep->desc->bEndpointAddress & USB_DIR_IN) &&
779 ep->desc = NULL;
1150 tmp = le16_to_cpu(ep->desc->wMaxPacketSize);
1174 if (!ep->desc)
1176 if (ep->desc->bEndpointAddress == address)
1547 hub_descriptor (struct usb_hub_descriptor *desc)
1549 memset (desc, 0, sizeof *desc);
1550 desc->bDescriptorType = 0x29;
1551 desc->bDescLength = 9;
1552 desc->wHubCharacteristics = cpu_to_le16(0x0001);
1553 desc->bNbrPorts = 1;
1554 desc->bitmap [0] = 0xff;
1555 desc->bitmap [1] = 0xff;