Lines Matching refs:ep
41 struct usb_endpoint *ep = device->endpoints;
50 if (ep == NULL) {
55 if ((ep->descriptor == NULL) || (ep->iface_index != iface)) {
61 epaddr = &(ep->descriptor->bEndpointAddress);
62 epattr = &(ep->descriptor->bmAttributes);
92 USB_DEBUG_XFER("Endpoint found: iface=0x%x, ep=0x%x\n",
93 iface, ep->endpoint_address);
94 return (ep);
97 ep++;
102 USB_DEBUG_XFER("usb_endpoint_lookup(): found default ctrl ep\n");
116 * \param ep the endpoint to initialize
119 struct usb_endpoint_descriptor *desc, struct usb_endpoint *ep)
130 (bus_fn->endpoint_init)(device, desc, ep);
134 ep->descriptor = desc;
135 ep->iface_index = iface_index;
136 ep->endpoint_address = desc->bEndpointAddress.ep_number;
137 ep->max_packet_size = desc->wMaxPacketSize;
140 ep->transfers.head.first = NULL;
141 ep->transfers.head.last_next = &(ep->transfers.head.first);
142 ep->transfers.command = &usb_pipe_start;
144 if (ep->pipe_fn == NULL) {
150 (bus_fn->clear_stall)(device, ep);