Lines Matching full:ep0

76 /* EP0 states */
1027 /* Disable all device interrupts (including EP0) */ in udc_disable()
1073 /* Only enable EP0 in and out for now, EP0 only works in FIFO mode */ in udc_enable()
1199 * as EP0) that don't use DMA. This function should only be called if a packet
1304 * as EP0) that don't use DMA. Note that the endpoint must be selected in the
1330 /* USB device reset - resets USB to a default state with just EP0
1335 /* Re-init device controller and EP0 */ in uda_usb_reset()
1345 /* Send a ZLP on EP0 */
1381 INIT_LIST_HEAD(&udc->gadget.ep0->ep_list); in udc_reinit()
1443 struct lpc32xx_ep *ep0 = &udc->ep[0]; in udc_ep0_in_req() local
1446 if (list_empty(&ep0->queue)) in udc_ep0_in_req()
1450 req = list_entry(ep0->queue.next, struct lpc32xx_request, in udc_ep0_in_req()
1457 done(ep0, req, 0); in udc_ep0_in_req()
1459 } else if (ts > ep0->ep.maxpacket) in udc_ep0_in_req()
1460 ts = ep0->ep.maxpacket; /* Just send what we can */ in udc_ep0_in_req()
1462 /* Write data to the EP0 FIFO and start transfer */ in udc_ep0_in_req()
1468 if (tsend >= ep0->ep.maxpacket) in udc_ep0_in_req()
1473 done(ep0, req, 0); in udc_ep0_in_req()
1481 struct lpc32xx_ep *ep0 = &udc->ep[0]; in udc_ep0_out_req() local
1484 if (list_empty(&ep0->queue)) in udc_ep0_out_req()
1487 req = list_entry(ep0->queue.next, struct lpc32xx_request, in udc_ep0_out_req()
1492 done(ep0, req, 0); in udc_ep0_out_req()
1499 if (bufferspace > ep0->ep.maxpacket) in udc_ep0_out_req()
1500 bufferspace = ep0->ep.maxpacket; in udc_ep0_out_req()
1508 if (tr < ep0->ep.maxpacket) { in udc_ep0_out_req()
1510 done(ep0, req, 0); in udc_ep0_out_req()
1620 /* Don't touch EP0 */ in lpc32xx_ep_enable()
1622 dev_dbg(udc->dev, "Can't re-enable EP0!!!\n"); in lpc32xx_ep_enable()
2179 struct lpc32xx_ep *ep, *ep0 = &udc->ep[0]; in udc_handle_ep0_setup() local
2185 nuke(ep0, -EPROTO); in udc_handle_ep0_setup()
2190 ep_warn(ep0, "Incorrectly sized setup packet (s/b 8, is %d)!\n", in udc_handle_ep0_setup()
2200 /* Set direction of EP0 */ in udc_handle_ep0_setup()
2202 ep0->is_in = 1; in udc_handle_ep0_setup()
2204 ep0->is_in = 0; in udc_handle_ep0_setup()
2301 if (!ep0->is_in) in udc_handle_ep0_setup()
2318 struct lpc32xx_ep *ep0 = &udc->ep[0]; in udc_handle_ep0_in() local
2325 ep0->totalints++; in udc_handle_ep0_in()
2331 nuke(ep0, -ECONNABORTED); in udc_handle_ep0_in()
2342 /* Unknown state for EP0 oe end of DATA IN phase */ in udc_handle_ep0_in()
2343 nuke(ep0, -ECONNABORTED); in udc_handle_ep0_in()
2352 struct lpc32xx_ep *ep0 = &udc->ep[0]; in udc_handle_ep0_out() local
2360 ep0->totalints++; in udc_handle_ep0_out()
2366 nuke(ep0, -ECONNABORTED); in udc_handle_ep0_out()
2376 nuke(ep0, 0); in udc_handle_ep0_out()
2393 /* Unknown state for EP0 */ in udc_handle_ep0_out()
2394 nuke(ep0, -ECONNABORTED); in udc_handle_ep0_out()
2510 .name = "ep0",
2771 /* Special handling for EP0 */ in lpc32xx_usb_hp_irq()
2773 /* Handle EP0 IN */ in lpc32xx_usb_hp_irq()
2777 /* Handle EP0 OUT */ in lpc32xx_usb_hp_irq()
2996 udc->gadget.ep0 = &udc->ep[0].ep; in lpc32xx_udc_probe()