Lines Matching defs:ep
102 if (!ep2 || ep2->ep.name == udc->ep[0].ep.name) {
184 struct urb *urb, struct vep *ep, int limit)
190 list_for_each_entry(req, &ep->req_queue, req_entry) {
197 * 1..N packets of ep->ep.maxpacket each ... the last one
213 if (len >= ep->ep.maxpacket) {
215 if (len % ep->ep.maxpacket > 0)
217 len -= len % ep->ep.maxpacket;
284 usb_gadget_giveback_request(&ep->ep, &req->req);
309 struct vep *ep;
331 udc->ep[0].already_seen = 0;
333 ep = to_vep(_ep);
334 ep->already_seen = 0;
341 ep = urb_p->ep;
347 if (!ep) {
353 if (total <= 0 && ep->type == USB_ENDPOINT_XFER_BULK)
356 if (ep->already_seen)
358 ep->already_seen = 1;
359 if (ep == &udc->ep[0] && urb_p->new) {
360 ep->setup_stage = 1;
363 if (ep->halted && !ep->setup_stage) {
368 if (ep == &udc->ep[0] && ep->setup_stage) {
370 ep->setup_stage = 0;
371 ep->halted = 0;
395 switch (ep->type) {
410 total -= transfer(udc, urb, ep, limit);
416 if (ep)
417 ep->already_seen = ep->setup_stage = 0;