Lines Matching refs:ep

204 int usb_desc_endpoint(const USBDescEndpoint *ep, int flags,  in usb_desc_endpoint()  argument
207 uint8_t bLength = ep->is_audio ? 0x09 : 0x07; in usb_desc_endpoint()
208 uint8_t extralen = ep->extra ? ep->extra[0] : 0; in usb_desc_endpoint()
219 d->u.endpoint.bEndpointAddress = ep->bEndpointAddress; in usb_desc_endpoint()
220 d->u.endpoint.bmAttributes = ep->bmAttributes; in usb_desc_endpoint()
221 d->u.endpoint.wMaxPacketSize_lo = usb_lo(ep->wMaxPacketSize); in usb_desc_endpoint()
222 d->u.endpoint.wMaxPacketSize_hi = usb_hi(ep->wMaxPacketSize); in usb_desc_endpoint()
223 d->u.endpoint.bInterval = ep->bInterval; in usb_desc_endpoint()
224 if (ep->is_audio) { in usb_desc_endpoint()
225 d->u.endpoint.bRefresh = ep->bRefresh; in usb_desc_endpoint()
226 d->u.endpoint.bSynchAddress = ep->bSynchAddress; in usb_desc_endpoint()
235 d->u.super_endpoint.bMaxBurst = ep->bMaxBurst; in usb_desc_endpoint()
236 d->u.super_endpoint.bmAttributes = ep->bmAttributes_super; in usb_desc_endpoint()
238 usb_lo(ep->wBytesPerInterval); in usb_desc_endpoint()
240 usb_hi(ep->wBytesPerInterval); in usb_desc_endpoint()
243 if (ep->extra) { in usb_desc_endpoint()
244 memcpy(dest + bLength + superlen, ep->extra, extralen); in usb_desc_endpoint()
372 int i, e, pid, ep; in usb_desc_ep_init() local
383 ep = iface->eps[e].bEndpointAddress & 0x0f; in usb_desc_ep_init()
384 usb_ep_set_type(dev, pid, ep, iface->eps[e].bmAttributes & 0x03); in usb_desc_ep_init()
385 usb_ep_set_ifnum(dev, pid, ep, iface->bInterfaceNumber); in usb_desc_ep_init()
386 usb_ep_set_max_packet_size(dev, pid, ep, in usb_desc_ep_init()
388 usb_ep_set_max_streams(dev, pid, ep, in usb_desc_ep_init()