/u-boot/drivers/usb/cdns3/ |
H A D | Makefile | 7 cdns3-$(CONFIG_$(SPL_)USB_CDNS3_GADGET) += gadget.o ep0.o
|
H A D | ep0.c | 130 /* set_stall on ep0 */ 777 "can't handle multiple requests for ep0\n"); 861 priv_dev->gadget.ep0->maxpacket = max_packet_size; 901 sprintf(priv_ep->name, "ep0"); 916 priv_dev->gadget.ep0 = &priv_ep->endpoint;
|
/u-boot/drivers/usb/dwc3/ |
H A D | Makefile | 7 obj-$(CONFIG_USB_DWC3_GADGET) += gadget.o ep0.o
|
H A D | ep0.c | 3 * ep0.c - DesignWare USB3 DRD Controller Endpoint 0 Handling 10 * Taken from Linux Kernel v3.19-rc1 (drivers/usb/dwc3/ep0.c) and ported 235 /* we share one TRB for ep0/1 */ 776 struct dwc3_ep *ep0; local 786 ep0 = dwc->eps[0]; 792 r = next_request(&ep0->request_list); 803 dwc3_gadget_giveback(ep0, r, -ECONNRESET); 813 maxp = ep0->endpoint.maxpacket; 830 ep0->free_slot = 0; 850 dwc3_gadget_giveback(ep0, [all...] |
H A D | gadget.c | 417 /* XferRscIdx == 0 for ep0 and 2 for the remaining */ 1651 dwc->gadget.ep0 = &dep->endpoint; 2214 dwc->gadget.ep0->maxpacket = 512; 2219 dwc->gadget.ep0->maxpacket = 64; 2225 dwc->gadget.ep0->maxpacket = 64; 2230 dwc->gadget.ep0->maxpacket = 8; 2620 dev_err(dwc->dev, "failed to allocate ep0 trb\n"); 2635 dev_err(dwc->dev, "failed to allocate ep0 bounce buffer\n"); 2706 * Handles ep0 and gadget interrupt
|
/u-boot/drivers/usb/musb/ |
H A D | musb_udc.c | 46 #include "../gadget/ep0.h" 121 w = readw(&musbr->ep[0].ep0.csr0); 127 b = readb(&musbr->ep[0].ep0.configdata); 214 csr0 = readw(&musbr->ep[0].ep0.csr0); 216 writew(csr0, &musbr->ep[0].ep0.csr0); 225 csr0 = readw(&musbr->ep[0].ep0.csr0); 227 writew(csr0, &musbr->ep[0].ep0.csr0); 234 csr0 = readw(&musbr->ep[0].ep0.csr0); 236 writew(csr0, &musbr->ep[0].ep0.csr0); 243 csr0 = readw(&musbr->ep[0].ep0 [all...] |
H A D | musb_core.h | 110 * ep0 elements are valid when array index is 0 114 struct musb_ep0_regs ep0; member in union:musb_regs::musb_ep_regs 213 #define MUSB_TYPE_PROTO 0x30 /* Implicitly zero for ep0 */ 215 #define MUSB_TYPE_REMOTE_END 0xf /* Implicitly zero for ep0 */
|
/u-boot/drivers/usb/mtu3/ |
H A D | mtu3_gadget_ep0.c | 3 * mtu3_gadget_ep0.c - MediaTek USB3 DRD peripheral driver ep0 handling 15 /* ep0 is always mtu3->in_eps[0] */ 16 #define next_ep0_request(mtu) next_request((mtu)->ep0) 57 mtu3_req_complete(mtu->ep0, req, 0); 145 * because the length of test packet is less than max packet of HS ep0, 148 ep0_write_fifo(mtu->ep0, mtu3_test_packet, sizeof(mtu3_test_packet)); 174 dev_dbg(mtu->dev, "ep0: %s STALL, ep0_state: %s\n", 218 mtu->ep0_req.mep = mtu->ep0; 222 ret = ep0_queue(mtu->ep0, &mtu->ep0_req); 285 mtu->ep0_req.mep = mtu->ep0; [all...] |
H A D | mtu3_core.c | 229 /* set/clear the stall and toggle bits for non-ep0 */ 302 /* for non-ep0 */ 404 /* for non-ep0 */ 434 * the total fifo size of non-ep0, and ep0's is fixed to 64B, 436 * Due to the first 64B should be reserved for EP0, non-ep0's fifo 481 u32 maxpacket = mtu->g.ep0->maxpacket; 512 /* one for ep0, another is reserved */ 521 /* ep0 uses in_eps[0], out_eps[0] is reserved */ 522 mtu->ep0 [all...] |
H A D | mtu3_gadget.c | 26 /* ep0 makes use of PIO, needn't unmap it */ 516 nuke(mtu->ep0, -ESHUTDOWN); 594 mtu->g.ep0 = &mep->ep; 615 init_hw_ep(mtu, mtu->ep0, 0, 0);
|
H A D | mtu3.h | 94 * Maximum size of ep0 response buffer for ch9 requests, 115 * @MU3D_EP0_STATE_STALL: ep0 is in stall status, will be auto-cleared 297 * @setup_buf: ep0 response buffer for GET_STATUS and SET_SEL requests 313 struct mtu3_ep *ep0; member in struct:mtu3
|
/u-boot/drivers/usb/gadget/ |
H A D | Makefile | 40 obj-$(CONFIG_USB_DEVICE) += core.o ep0.o
|
H A D | at91_udc.c | 56 "ep0", 93 /* ep0 is always ready; other endpoints need a non-empty queue */ 487 PACKET("ep0 in/status\n"); 642 INIT_LIST_HEAD(&udc->gadget.ep0->ep_list); 1071 PACKET("ep0 in/status\n"); 1080 struct at91_ep *ep0 = &udc->ep[0]; local 1081 u32 __iomem *creg = ep0->creg; 1086 nuke(ep0, -EPROTO); 1091 VDBG("ep0 stalled\n"); 1095 nuke(ep0, [all...] |
H A D | composite.c | 347 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; 1001 * The setup() callback implements all the ep0 functionality that's 1030 gadget->ep0->driver_data = cdev; 1049 cdev->gadget->ep0->maxpacket; 1233 value = usb_ep_queue(gadget->ep0, req, GFP_KERNEL); 1237 composite_setup_complete(gadget->ep0, req); 1305 value = usb_ep_queue(gadget->ep0, req, GFP_KERNEL); 1309 composite_setup_complete(gadget->ep0, req); 1371 usb_ep_free_request(gadget->ep0, cdev->req); 1393 cdev->req = usb_ep_alloc_request(gadget->ep0, GFP_KERNE [all...] |
H A D | atmel_usba_udc.c | 536 ep = to_usba_ep(udc->gadget.ep0); 562 return to_usba_ep(udc->gadget.ep0); 642 * Test_SE0_NAK: Force high-speed mode and set up ep0 655 DBG(DBG_ALL, "Test_SE0_NAK: ep0 not mapped\n"); 671 DBG(DBG_ALL, "Test_Packet: ep0 not mapped\n"); 1111 struct usba_ep *ep0; local 1129 ep0 = &udc->usba_ep[0]; 1130 ep0->desc = &usba_ep0_desc; 1131 ep0->state = WAIT_FOR_SETUP; 1132 usba_ep_writel(ep0, CF [all...] |
H A D | ci_udc.c | 119 .name = "ep0", 615 * The flipping of ep0 between IN and OUT relies on 624 printf("%s: ep0 transaction already in progress\n", __func__); 645 DBG("%s: Flipping ep0 to OUT\n", __func__); 648 DBG("%s: Flipping ep0 to IN\n", __func__); 696 * Data Stage is complete, so flip ep0 dir for Status Stage, 699 DBG("%s: flip ep0 dir for Status Stage\n", __func__); 738 DBG("%s: Set ep0 to IN for Data Stage\n", __func__); 741 DBG("%s: Set ep0 to OUT for Data Stage\n", __func__); 748 DBG("%s: 0 length: flip ep0 di [all...] |
H A D | f_thor.c | 669 value = usb_ep_queue(gadget->ep0, req, 0); 779 dev->req = usb_ep_alloc_request(gadget->ep0, 0); 865 free_ep_req(gadget->ep0, dev->req); 875 free_ep_req(dev->gadget->ep0, dev->req);
|
H A D | ether.c | 282 * ep0 implementation: descriptors, config management, setup(). 1221 * The setup() callback implements all the ep0 functionality that's not 1240 * descriptors just go into the pre-allocated ep0 buffer, 1255 device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket; 1457 && (value % gadget->ep0->maxpacket) == 0; 1458 value = usb_ep_queue(gadget->ep0, req, GFP_ATOMIC); 1462 eth_setup_complete(gadget->ep0, req); 1742 usb_ep_free_request(gadget->ep0, dev->req); 2129 /* assumes ep0 uses the same value for both speeds ... */ 2198 dev->req = usb_ep_alloc_request(gadget->ep0, GFP_KERNE [all...] |
H A D | f_dfu.c | 635 value = usb_ep_queue(gadget->ep0, req, 0); 856 debug("%s: cdev: 0x%p gadget:0x%p gadget->ep0: 0x%p\n", __func__, 857 c->cdev, c->cdev->gadget, c->cdev->gadget->ep0);
|
H A D | f_mass_storage.c | 162 * ep0 requests are handled at interrupt time, but SetInterface, 219 * One subtle point concerns sending status-stage responses for ep0 223 * the original ep0 request and issue a new one. When that happens the 226 * assigns to each ep0 request a unique tag, and it keeps track of the 230 * only if the current ep0 request tag is equal to the exception request 231 * tag. Thus only the most recently received ep0 request will get a 299 struct usb_ep *ep0; /* Copy of gadget->ep0 */ member in struct:fsg_common 484 rc = usb_ep_queue(common->ep0, common->ep0req, GFP_ATOMIC); 485 common->ep0 [all...] |
H A D | f_sdp.c | 516 value = usb_ep_queue(gadget->ep0, req, 0); 957 debug("%s: cdev: %p gadget: %p gadget->ep0: %p\n", __func__, 958 c->cdev, c->cdev->gadget, c->cdev->gadget->ep0);
|
H A D | dwc2_udc_otg.c | 84 static const char ep0name[] = "ep0-control"; 197 /* device/ep0 records init */ 199 INIT_LIST_HEAD(&dev->gadget.ep0->ep_list); 554 /* retrieve the number of IN Endpoints (excluding ep0) */ 829 .ep0 = &memory.ep[0].ep,
|
H A D | f_acm.c | 442 usb_ep_queue(gadget->ep0, req, GFP_ATOMIC);
|
H A D | max3420_udc.c | 789 snprintf(ep->name, EPNAME_SIZE, "ep0"); 837 udc->gadget.ep0 = &udc->ep[0].ep_usb;
|
/u-boot/include/linux/usb/ |
H A D | gadget.h | 134 * @type_control:Endpoint supports control type (reserved for ep0). 173 * gadget->ep_list. the control endpoint (gadget->ep0) is not in that list, 209 * @ep:the endpoint being configured. may not be the endpoint named "ep0". 220 * the ep0 implementation (which calls this routine) must ensure that the 238 * @ep:the endpoint being unconfigured. may not be the endpoint named "ep0". 299 * (except control endpoints like ep0) may have more than one transfer 332 * used on ep0 to trigger protocol stalls. 489 * @ep0: Endpoint zero, used when reading or writing responses to 535 struct usb_ep *ep0; member in struct:usb_gadget 781 * At that point, ep0 i [all...] |