Lines Matching defs:desc
243 const struct usb_endpoint_descriptor *desc)
249 if (!_ep || !desc || ep->desc || _ep->name == ep0name
250 || desc->bDescriptorType != USB_DT_ENDPOINT
251 || ep->bEndpointAddress != desc->bEndpointAddress
253 (desc->wMaxPacketSize)) {
259 if (ep->bmAttributes != desc->bmAttributes
261 && desc->bmAttributes != USB_ENDPOINT_XFER_INT) {
267 if ((desc->bmAttributes == USB_ENDPOINT_XFER_BULK
268 && le16_to_cpu (desc->wMaxPacketSize)
270 || !desc->wMaxPacketSize) {
281 ep->desc = desc;
284 ep->ep.maxpacket = le16_to_cpu (desc->wMaxPacketSize);
301 if (!_ep || !ep->desc) {
313 ep->desc = NULL;
421 max = le16_to_cpu(ep->desc->wMaxPacketSize);
667 if (unlikely (!_ep || (!ep->desc && ep->ep.name != ep0name))) {
684 (ep->desc->wMaxPacketSize)))
697 if (ep->desc == NULL/* ep0 */) {
746 if (likely (req && ep->desc))
773 if (ep->desc)
816 || (!ep->desc && ep->ep.name != ep0name))
844 if (!ep->desc) {
1103 const struct usb_endpoint_descriptor *desc;
1105 desc = ep->desc;
1106 if (!desc)
1111 ep->ep.name, le16_to_cpu(desc->wMaxPacketSize),
1209 ep->desc = NULL;