Lines Matching refs:desc

49 	struct usb_endpoint_descriptor	*desc  in ep_matches()  argument
61 type = desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; in ep_matches()
104 if (desc->bEndpointAddress & USB_DIR_IN) { in ep_matches()
118 max = 0x7ff & le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in ep_matches()
134 if ((get_unaligned(&desc->wMaxPacketSize) & in ep_matches()
148 desc->bEndpointAddress |= num; in ep_matches()
150 } else if (desc->bEndpointAddress & USB_DIR_IN) { in ep_matches()
153 desc->bEndpointAddress = USB_DIR_IN | in_epnum; in ep_matches()
158 desc->bEndpointAddress |= epnum; in ep_matches()
168 put_unaligned(cpu_to_le16(size), &desc->wMaxPacketSize); in ep_matches()
217 struct usb_endpoint_descriptor *desc in usb_ep_autoconfig() argument
223 type = desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; in usb_ep_autoconfig()
231 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
234 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
241 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
244 && (USB_DIR_IN & desc->bEndpointAddress)) { in usb_ep_autoconfig()
247 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
254 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
259 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
269 if ((desc->bEndpointAddress & USB_DIR_IN) && in usb_ep_autoconfig()
272 else if ((desc->bEndpointAddress & USB_DIR_IN) == 0 && in usb_ep_autoconfig()
275 else if ((desc->bEndpointAddress & USB_DIR_IN) && in usb_ep_autoconfig()
281 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
287 if (ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()