Lines Matching defs:desc
521 usba_ep_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
528 DBG(DBG_GADGET, "%s: ep_enable: desc=%p\n", ep->ep.name, desc);
530 maxpacket = le16_to_cpu(desc->wMaxPacketSize) & 0x7ff;
532 if (((desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK) != ep->index)
534 || desc->bDescriptorType != USB_DT_ENDPOINT
553 if (usb_endpoint_dir_in(desc)) {
558 switch (usb_endpoint_type(desc)) {
574 nr_trans = ((le16_to_cpu(desc->wMaxPacketSize) >> 11) & 3) + 1;
602 if (ep->desc) {
608 ep->desc = desc;
650 if (!ep->desc) {
661 ep->desc = NULL;
754 if (ep->desc) {
778 if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN || !ep->desc)
794 if (ep->desc) {
907 if (!ep->desc) {
1060 if (ep->desc) {
1078 if (!ep->desc)
1080 bEndpointAddress = ep->desc->bEndpointAddress;
1717 ep0->desc = &usba_ep0_desc;