Lines Matching refs:ep0
1382 INIT_LIST_HEAD(&udc->gadget.ep0->ep_list);
1444 struct lpc32xx_ep *ep0 = &udc->ep[0];
1447 if (list_empty(&ep0->queue))
1451 req = list_entry(ep0->queue.next, struct lpc32xx_request,
1458 done(ep0, req, 0);
1460 } else if (ts > ep0->ep.maxpacket)
1461 ts = ep0->ep.maxpacket; /* Just send what we can */
1469 if (tsend >= ep0->ep.maxpacket)
1474 done(ep0, req, 0);
1482 struct lpc32xx_ep *ep0 = &udc->ep[0];
1485 if (list_empty(&ep0->queue))
1488 req = list_entry(ep0->queue.next, struct lpc32xx_request,
1494 done(ep0, req, 0);
1501 if (bufferspace > ep0->ep.maxpacket)
1502 bufferspace = ep0->ep.maxpacket;
1510 if (tr < ep0->ep.maxpacket) {
1512 done(ep0, req, 0);
2185 struct lpc32xx_ep *ep, *ep0 = &udc->ep[0];
2191 nuke(ep0, -EPROTO);
2196 ep_warn(ep0, "Incorrectly sized setup packet (s/b 8, is %d)!\n",
2208 ep0->is_in = 1;
2210 ep0->is_in = 0;
2307 if (!ep0->is_in)
2324 struct lpc32xx_ep *ep0 = &udc->ep[0];
2331 ep0->totalints++;
2337 nuke(ep0, -ECONNABORTED);
2349 nuke(ep0, -ECONNABORTED);
2358 struct lpc32xx_ep *ep0 = &udc->ep[0];
2366 ep0->totalints++;
2372 nuke(ep0, -ECONNABORTED);
2382 nuke(ep0, 0);
2400 nuke(ep0, -ECONNABORTED);
2516 .name = "ep0",
3002 udc->gadget.ep0 = &udc->ep[0].ep;