Lines Matching full:ep0
28 #define XUSB_EP0_CONFIG_OFFSET 0x0000 /* EP0 Config Reg Offset */
202 static const char ep0name[] = "ep0";
261 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; in xudc_wrstatus() local
264 epcfgreg = udc->read_fn(udc->addr + ep0->offset)| in xudc_wrstatus()
266 udc->write_fn(udc->addr, ep0->offset, epcfgreg); in xudc_wrstatus()
267 udc->write_fn(udc->addr, ep0->offset + XUSB_EP_BUF0COUNT_OFFSET, 0); in xudc_wrstatus()
996 * @ep0: pointer to the xusb endpoint 0 structure.
1001 static int __xudc_ep0_queue(struct xusb_ep *ep0, struct xusb_req *req) in __xudc_ep0_queue() argument
1003 struct xusb_udc *udc = ep0->udc; in __xudc_ep0_queue()
1011 if (!list_empty(&ep0->queue)) { in __xudc_ep0_queue()
1012 dev_dbg(udc->dev, "%s:ep0 busy\n", __func__); in __xudc_ep0_queue()
1019 list_add_tail(&req->queue, &ep0->queue); in __xudc_ep0_queue()
1024 corebuf = (void __force *) ((ep0->rambase << 2) + in __xudc_ep0_queue()
1033 /* Enable EP0 buffer to receive data */ in __xudc_ep0_queue()
1056 struct xusb_ep *ep0 = to_xusb_ep(_ep); in xudc_ep0_queue() local
1057 struct xusb_udc *udc = ep0->udc; in xudc_ep0_queue()
1062 ret = __xudc_ep0_queue(ep0, req); in xudc_ep0_queue()
1378 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; in xudc_start() local
1397 ret = __xudc_ep_enable(ep0, desc); in xudc_start()
1567 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; in xudc_ep0_stall() local
1569 epcfgreg = udc->read_fn(udc->addr + ep0->offset); in xudc_ep0_stall()
1571 udc->write_fn(udc->addr, ep0->offset, epcfgreg); in xudc_ep0_stall()
1582 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_setaddress() local
1587 ret = __xudc_ep0_queue(ep0, req); in xudc_setaddress()
1603 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_getstatus() local
1644 ret = __xudc_ep0_queue(ep0, req); in xudc_getstatus()
1660 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_set_clear_feature() local
1736 ret = __xudc_ep0_queue(ep0, req); in xudc_set_clear_feature()
1753 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_handle_setup() local
1767 xudc_nuke(ep0, -ECONNRESET); in xudc_handle_setup()
1819 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_ep0_out() local
1825 req = list_first_entry(&ep0->queue, struct xusb_req, queue); in xudc_ep0_out()
1836 xudc_done(ep0, req, 0); in xudc_ep0_out()
1843 (ep0->rambase << 2)); in xudc_ep0_out()
1852 /* Enable EP0 buffer to receive data */ in xudc_ep0_out()
1868 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_ep0_in() local
1878 req = list_first_entry(&ep0->queue, struct xusb_req, queue); in xudc_ep0_in()
1901 xudc_done(ep0, req, 0); in xudc_ep0_in()
1910 epcfgreg = udc->read_fn(udc->addr + ep0->offset); in xudc_ep0_in()
1912 udc->write_fn(udc->addr, ep0->offset, epcfgreg); in xudc_ep0_in()
1919 (ep0->rambase << 2)); in xudc_ep0_in()
2107 udc->gadget.ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO].ep_usb; in xudc_probe()