Lines Matching defs:desc
151 net2280_enable (struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
159 if (!_ep || !desc || ep->desc || _ep->name == ep0name
160 || desc->bDescriptorType != USB_DT_ENDPOINT)
166 if ((desc->bEndpointAddress & 0x0f) == EP_DONTUSE)
170 max = le16_to_cpu (desc->wMaxPacketSize) & 0x1fff;
176 ep->desc = desc;
197 tmp = (desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK);
201 && !(desc->bEndpointAddress & USB_DIR_IN))
216 tmp |= desc->bEndpointAddress;
250 if ((desc->bEndpointAddress & USB_DIR_IN) == 0) {
259 tmp = desc->bEndpointAddress;
262 type_string (desc->bmAttributes),
293 ep->desc = NULL;
372 if (!_ep || !ep->desc || _ep->name == ep0name)
840 if (!_ep || (!ep->desc && ep->num != 0))
1107 if (!_ep || (!ep->desc && ep->num != 0) || !_req)
1206 if (!_ep || (!ep->desc && ep->num != 0))
1210 if (ep->desc /* not ep0 */ && (ep->desc->bmAttributes & 0x03)
1263 if (!_ep || (!ep->desc && ep->num != 0))
1282 if (!_ep || (!ep->desc && ep->num != 0))
1486 if (i && !ep->desc)
1531 "\taddr %08x desc %08x\n",
1592 d = ep->desc;
1651 " count %08x buf %08x desc %08x\n",
1746 if (dev->ep [i].desc) {
2253 if (!ep->desc)
2255 bEndpointAddress = ep->desc->bEndpointAddress;