Searched refs:ep0 (Results 1 - 25 of 91) sorted by relevance

1234

/linux-master/drivers/usb/gadget/udc/aspeed-vhub/
H A DMakefile3 aspeed-vhub-y := core.o ep0.o epn.o dev.o hub.o
H A Dep0.c5 * ep0.c - Endpoint 0 handling
31 struct usb_request *req = &ep->ep0.req.req;
36 if (WARN_ON(!ep->ep0.dir_in))
92 memcpy_fromio(&crq, ep->ep0.setup, sizeof(crq));
100 ep->ep0.state);
112 if (ep->ep0.state != ep0_state_token &&
113 ep->ep0.state != ep0_state_stall) {
119 ep->ep0.state = ep0_state_data;
120 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN);
163 writel(VHUB_EP0_CTRL_STALL, ep->ep0
[all...]
H A Ddev.c38 ast_vhub_ep0_handle_ack(&d->ep0, true);
40 ast_vhub_ep0_handle_ack(&d->ep0, false);
42 ast_vhub_ep0_handle_setup(&d->ep0);
71 writel(d->ep0.buf_dma, d->regs + AST_VHUB_DEV_EP0_DATA);
177 return ast_vhub_simple_reply(&d->ep0, st0, 0);
202 return ast_vhub_simple_reply(&d->ep0, st0, 0);
553 ast_vhub_init_ep0(vhub, &d->ep0, d);
585 d->gadget.ep0 = &d->ep0.ep;
H A Dcore.c144 ast_vhub_ep0_handle_ack(&vhub->ep0, true);
146 ast_vhub_ep0_handle_ack(&vhub->ep0, false);
148 ast_vhub_ep0_handle_setup(&vhub->ep0);
233 writel(vhub->ep0.buf_dma, vhub->regs + AST_VHUB_EP0_DATA);
390 ast_vhub_init_ep0(vhub, &vhub->ep0, NULL);
H A Dvhub.h243 * mode (or ep0), any >= 0 value means "last packet"
264 * An endpoint, either generic, ep0, actual gadget EP
308 } ep0; member in union:ast_vhub_ep::__anon234
360 struct ast_vhub_ep ep0; member in struct:ast_vhub_dev
397 struct ast_vhub_ep ep0; member in struct:ast_vhub
524 /* ep0.c */
/linux-master/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c182 static void handle_ep0(int ep0, bool *ready) argument
188 pfds[0].fd = ep0;
194 ret = read(ep0, &event, sizeof(event));
196 perror("unable to read event from ep0");
203 write(ep0, NULL, 0);
205 read(ep0, NULL, 0);
227 int ep0; local
252 sprintf(ep_path, "%s/ep0", argv[1]);
253 ep0 = open(ep_path, O_RDWR);
254 if (ep0 <
[all...]
/linux-master/drivers/usb/gadget/udc/cdns2/
H A DMakefile6 cdns2-udc-pci-$(CONFIG_USB_CDNS2_UDC) += cdns2-pci.o cdns2-gadget.o cdns2-ep0.o
/linux-master/tools/usb/ffs-aio-example/multibuff/device_app/
H A Daio_multibuff.c176 static void handle_ep0(int ep0, bool *ready) argument
181 ret = read(ep0, &event, sizeof(event));
183 perror("unable to read event from ep0");
190 write(ep0, NULL, 0);
192 read(ep0, NULL, 0);
240 int ep0, ep1; local
263 sprintf(ep_path, "%s/ep0", argv[1]);
264 ep0 = open(ep_path, O_RDWR);
265 if (ep0 < 0) {
266 perror("unable to open ep0");
[all...]
/linux-master/drivers/usb/gadget/udc/
H A Drenesas_usbf.c344 /* ep0: buf @0x0000 64 bytes, fixed 32 words */
345 [0] = USBF_EP_INFO("ep0-ctrl",
547 static void usbf_ep0_send_null(struct usbf_ep *ep0, bool is_data1) argument
555 usbf_ep_reg_bitset(ep0, USBF_REG_EP0_CONTROL, set);
558 static int usbf_ep0_pio_in(struct usbf_ep *ep0, struct usbf_req *req) argument
571 dev_dbg(ep0->udc->dev, "ep0 send null\n");
572 usbf_ep0_send_null(ep0, false);
576 if ((req->req.actual % ep0->ep.maxpacket) == 0) {
578 dev_dbg(ep0
617 usbf_ep0_pio_out(struct usbf_ep *ep0, struct usbf_req *req) argument
704 usbf_ep0_fifo_flush(struct usbf_ep *ep0) argument
1785 usbf_ep0_enable(struct usbf_ep *ep0) argument
1916 usbf_ep0_queue(struct usbf_ep *ep0, struct usbf_req *req, gfp_t gfp_flags) argument
2176 usbf_ep0_fill_req(struct usbf_ep *ep0, struct usbf_req *req, void *buf, unsigned int length, void (*complete)(struct usb_ep *_ep, struct usb_request *_req)) argument
2444 usbf_handle_ep0_setup(struct usbf_ep *ep0) argument
2520 usbf_handle_ep0_data_status(struct usbf_ep *ep0, const char *ep0state_name, enum usbf_ep0state next_ep0state) argument
2551 usbf_handle_ep0_out_status_start(struct usbf_ep *ep0) argument
2576 usbf_handle_ep0_in_status_start(struct usbf_ep *ep0) argument
2622 usbf_ep0_interrupt(struct usbf_ep *ep0) argument
[all...]
H A Dudc-xilinx.c202 static const char ep0name[] = "ep0";
261 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; local
264 epcfgreg = udc->read_fn(udc->addr + ep0->offset)|
266 udc->write_fn(udc->addr, ep0->offset, epcfgreg);
267 udc->write_fn(udc->addr, ep0->offset + XUSB_EP_BUF0COUNT_OFFSET, 0);
996 * @ep0: pointer to the xusb endpoint 0 structure.
1001 static int __xudc_ep0_queue(struct xusb_ep *ep0, struct xusb_req *req) argument
1003 struct xusb_udc *udc = ep0->udc;
1011 if (!list_empty(&ep0->queue)) {
1012 dev_dbg(udc->dev, "%s:ep0 bus
1056 struct xusb_ep *ep0 = to_xusb_ep(_ep); local
1378 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; local
1567 struct xusb_ep *ep0 = &udc->ep[XUSB_EP_NUMBER_ZERO]; local
1582 struct xusb_ep *ep0 = &udc->ep[0]; local
1603 struct xusb_ep *ep0 = &udc->ep[0]; local
1660 struct xusb_ep *ep0 = &udc->ep[0]; local
1753 struct xusb_ep *ep0 = &udc->ep[0]; variable in typeref:struct:xusb_ep
1819 struct xusb_ep *ep0 = &udc->ep[0]; local
1868 struct xusb_ep *ep0 = &udc->ep[0]; local
[all...]
H A Dlpc32xx_udc.c1381 INIT_LIST_HEAD(&udc->gadget.ep0->ep_list);
1443 struct lpc32xx_ep *ep0 = &udc->ep[0]; local
1446 if (list_empty(&ep0->queue))
1450 req = list_entry(ep0->queue.next, struct lpc32xx_request,
1457 done(ep0, req, 0);
1459 } else if (ts > ep0->ep.maxpacket)
1460 ts = ep0->ep.maxpacket; /* Just send what we can */
1468 if (tsend >= ep0->ep.maxpacket)
1473 done(ep0, req, 0);
1481 struct lpc32xx_ep *ep0 local
2186 struct lpc32xx_ep *ep, *ep0 = &udc->ep[0]; local
2325 struct lpc32xx_ep *ep0 = &udc->ep[0]; local
2359 struct lpc32xx_ep *ep0 = &udc->ep[0]; local
[all...]
H A Dat91_udc.c69 EP_INFO("ep0",
278 /* ep0 is always ready; other endpoints need a non-empty queue */
672 PACKET("ep0 in/status\n");
831 INIT_LIST_HEAD(&udc->gadget.ep0->ep_list);
1266 PACKET("ep0 in/status\n");
1275 struct at91_ep *ep0 = &udc->ep[0]; local
1276 u32 __iomem *creg = ep0->creg;
1281 nuke(ep0, -EPROTO);
1286 VDBG("ep0 stalled\n");
1290 nuke(ep0,
[all...]
/linux-master/drivers/usb/cdns3/
H A DMakefile18 cdns3-$(CONFIG_USB_CDNS3_GADGET) += cdns3-gadget.o cdns3-ep0.o
40 cdnsp-mem.o cdnsp-ep0.o
/linux-master/drivers/usb/mtu3/
H A Dmtu3_gadget_ep0.c3 * mtu3_gadget_ep0.c - MediaTek USB3 DRD peripheral driver ep0 handling
17 /* ep0 is always mtu3->in_eps[0] */
18 #define next_ep0_request(mtu) next_request((mtu)->ep0)
59 mtu3_req_complete(mtu->ep0, req, 0);
123 * because the length of test packet is less than max packet of HS ep0,
126 ep0_write_fifo(mtu->ep0, mtu3_test_packet, sizeof(mtu3_test_packet));
152 dev_dbg(mtu->dev, "ep0: %s STALL, ep0_state: %s\n",
196 mtu->ep0_req.mep = mtu->ep0;
200 ret = ep0_queue(mtu->ep0, &mtu->ep0_req);
265 mtu->ep0_req.mep = mtu->ep0;
[all...]
/linux-master/drivers/usb/usbip/
H A Dvudc_sysfs.c26 struct vep *ep0 = to_vep(udc->gadget.ep0); local
47 usb_req = list_last_entry(&ep0->req_queue, struct vrequest, req_entry);
61 usb_gadget_giveback_request(&(ep0->ep), &(usb_req->req));
/linux-master/drivers/usb/host/
H A Dfhci-tds.c100 ep = usb->ep0;
136 usb->ep0 = NULL;
224 usb->ep0 = ep;
279 struct endpoint *ep = usb->ep0;
385 struct endpoint *ep = usb->ep0;
472 struct endpoint *ep = usb->ep0;
528 struct endpoint *ep = usb->ep0;
592 struct endpoint *ep = usb->ep0;
H A Dfhci-sched.c36 cq_put(&usb->ep0->empty_frame_Q, pkt);
56 cq_put(&usb->ep0->dummy_packets_Q, pkt->data);
212 pkt = cq_get(&usb->ep0->empty_frame_Q);
221 data = cq_get(&usb->ep0->dummy_packets_Q);
245 cq_put(&usb->ep0->dummy_packets_Q, pkt->data);
319 fhci_push_dummy_bd(usb->ep0);
516 fhci_push_dummy_bd(usb->ep0);
/linux-master/drivers/usb/gadget/legacy/
H A Ddbgp.c226 usb_ep_free_request(gadget->ep0, dbgp.req);
284 dbgp.req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL);
367 device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket;
401 return usb_ep_queue(gadget->ep0, req, GFP_ATOMIC);
H A Dinode.c51 * are two types of files. One type is for the device, implementing ep0.
89 /* /dev/gadget/$CHIP represents ep0 and the whole device */
95 * ep0/device i/o modes and binding to the controller. Driver
101 /* From then on, ep0 fd is in either of two basic modes:
110 /* UNBOUND means the driver closed ep0, so the device won't be
131 /* drivers reading ep0 MUST handle control requests (SETUP)
154 /* except this scratch i/o buffer for ep0 */
243 * at the end of ep0 configuration, or after unbind.
899 DBG (dev, "ep0 request busy!\n");
939 (void) usb_ep_set_halt (dev->gadget->ep0);
[all...]
/linux-master/drivers/usb/dwc3/
H A DMakefile18 dwc3-y += gadget.o ep0.o
H A Dep0.c3 * ep0.c - DesignWare USB3 DRD Controller Endpoint 0 Handling
209 /* we share one TRB for ep0/1 */
864 struct dwc3_ep *ep0; local
871 ep0 = dwc->eps[0];
875 trace_dwc3_complete_trb(ep0, trb);
877 r = next_request(&ep0->pending_list);
885 dwc3_gadget_giveback(ep0, r, -ECONNRESET);
896 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) &&
900 trace_dwc3_complete_trb(ep0, trb);
913 dwc3_gadget_giveback(ep0,
[all...]
/linux-master/sound/soc/generic/
H A Daudio-graph-card2.c947 struct device_node *ep0, *ep1; local
1000 ep0 = port_to_endpoint(port0);
1003 codec0_port = of_graph_get_remote_port(ep0);
1024 of_node_put(ep0);
1201 struct device_node *ep0 = port_to_endpoint(port0); local
1203 struct device_node *codec0 = of_graph_get_remote_port(ep0);
1228 of_node_put(ep0);
/linux-master/drivers/usb/gadget/
H A Dcomposite.c261 ERROR(cdev, "ep0 bMaxBurst must be 0\n");
921 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket;
1582 * REVIST The same ep0 requests are shared with function drivers
1606 ret = usb_ep_queue(cdev->gadget->ep0, req, gfp_flags);
1770 * The setup() callback implements all the ep0 functionality that's
1811 gadget->ep0->driver_data = cdev;
1832 cdev->gadget->ep0->maxpacket;
2284 composite_setup_complete(gadget->ep0, req);
2425 cdev->req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL);
2439 gadget->ep0
2465 composite_os_desc_req_prepare(struct usb_composite_dev *cdev, struct usb_ep *ep0) argument
[all...]
/linux-master/drivers/usb/gadget/udc/bdc/
H A Dbdc_udc.c86 bdc->gadget.ep0->maxpacket = EP0_MAX_PKT_SIZE;
98 bdc->gadget.ep0->maxpacket = 64;
104 bdc->gadget.ep0->maxpacket = 64;
110 bdc->gadget.ep0->maxpacket = 8;
118 /* Now we know the speed, configure ep0 */
135 * Only stop ep0 from here, rest of the endpoints will be disabled
556 * Allocate bd list for ep0 only, ep0 will be enabled on connect
/linux-master/drivers/usb/core/
H A Dusb.c675 INIT_LIST_HEAD(&dev->ep0.urb_list);
676 dev->ep0.desc.bLength = USB_DT_ENDPOINT_SIZE;
677 dev->ep0.desc.bDescriptorType = USB_DT_ENDPOINT;
678 /* ep0 maxpacket comes later, from device descriptor */
679 usb_enable_endpoint(dev, &dev->ep0, false);

Completed in 271 milliseconds

1234