Lines Matching full:ep0
29 #define XUSB_EP0_CONFIG_OFFSET 0x0000 /* EP0 Config Reg Offset */
201 static const char ep0name[] = "ep0";
260 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; in xudc_wrstatus() local
263 epcfgreg = udc->read_fn(udc->addr + ep0->offset)| in xudc_wrstatus()
265 udc->write_fn(udc->addr, ep0->offset, epcfgreg); in xudc_wrstatus()
266 udc->write_fn(udc->addr, ep0->offset + XUSB_EP_BUF0COUNT_OFFSET, 0); in xudc_wrstatus()
995 * @ep0: pointer to the xusb endpoint 0 structure.
1000 static int __xudc_ep0_queue(struct xusb_ep *ep0, struct xusb_req *req) in __xudc_ep0_queue() argument
1002 struct xusb_udc *udc = ep0->udc; in __xudc_ep0_queue()
1010 if (!list_empty(&ep0->queue)) { in __xudc_ep0_queue()
1011 dev_dbg(udc->dev, "%s:ep0 busy\n", __func__); in __xudc_ep0_queue()
1018 list_add_tail(&req->queue, &ep0->queue); in __xudc_ep0_queue()
1023 corebuf = (void __force *) ((ep0->rambase << 2) + in __xudc_ep0_queue()
1032 /* Enable EP0 buffer to receive data */ in __xudc_ep0_queue()
1055 struct xusb_ep *ep0 = to_xusb_ep(_ep); in xudc_ep0_queue() local
1056 struct xusb_udc *udc = ep0->udc; in xudc_ep0_queue()
1061 ret = __xudc_ep0_queue(ep0, req); in xudc_ep0_queue()
1374 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; in xudc_start() local
1393 ret = __xudc_ep_enable(ep0, desc); in xudc_start()
1563 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; in xudc_ep0_stall() local
1565 epcfgreg = udc->read_fn(udc->addr + ep0->offset); in xudc_ep0_stall()
1567 udc->write_fn(udc->addr, ep0->offset, epcfgreg); in xudc_ep0_stall()
1578 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_setaddress() local
1583 ret = __xudc_ep0_queue(ep0, req); in xudc_setaddress()
1599 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_getstatus() local
1640 ret = __xudc_ep0_queue(ep0, req); in xudc_getstatus()
1656 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_set_clear_feature() local
1730 ret = __xudc_ep0_queue(ep0, req); in xudc_set_clear_feature()
1747 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_handle_setup() local
1761 xudc_nuke(ep0, -ECONNRESET); in xudc_handle_setup()
1813 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_ep0_out() local
1819 req = list_first_entry(&ep0->queue, struct xusb_req, queue); in xudc_ep0_out()
1830 xudc_done(ep0, req, 0); in xudc_ep0_out()
1837 (ep0->rambase << 2)); in xudc_ep0_out()
1846 /* Enable EP0 buffer to receive data */ in xudc_ep0_out()
1862 struct xusb_ep *ep0 = &udc->ep[0]; in xudc_ep0_in() local
1872 req = list_first_entry(&ep0->queue, struct xusb_req, queue); in xudc_ep0_in()
1895 xudc_done(ep0, req, 0); in xudc_ep0_in()
1904 epcfgreg = udc->read_fn(udc->addr + ep0->offset); in xudc_ep0_in()
1906 udc->write_fn(udc->addr, ep0->offset, epcfgreg); in xudc_ep0_in()
1913 (ep0->rambase << 2)); in xudc_ep0_in()
2102 udc->gadget.ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO].ep_usb; in xudc_probe()