Home
last modified time | relevance | path

Searched refs:ep0 (Results 1 – 25 of 99) sorted by relevance

1234

/linux-6.12.1/drivers/usb/gadget/udc/aspeed-vhub/
Dep0.c31 struct usb_request *req = &ep->ep0.req.req; in ast_vhub_reply()
36 if (WARN_ON(!ep->ep0.dir_in)) in ast_vhub_reply()
92 memcpy_fromio(&crq, ep->ep0.setup, sizeof(crq)); in ast_vhub_ep0_handle_setup()
100 ep->ep0.state); in ast_vhub_ep0_handle_setup()
112 if (ep->ep0.state != ep0_state_token && in ast_vhub_ep0_handle_setup()
113 ep->ep0.state != ep0_state_stall) { in ast_vhub_ep0_handle_setup()
119 ep->ep0.state = ep0_state_data; in ast_vhub_ep0_handle_setup()
120 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup()
163 writel(VHUB_EP0_CTRL_STALL, ep->ep0.ctlstat); in ast_vhub_ep0_handle_setup()
164 ep->ep0.state = ep0_state_stall; in ast_vhub_ep0_handle_setup()
[all …]
Ddev.c38 ast_vhub_ep0_handle_ack(&d->ep0, true); in ast_vhub_dev_irq()
40 ast_vhub_ep0_handle_ack(&d->ep0, false); in ast_vhub_dev_irq()
42 ast_vhub_ep0_handle_setup(&d->ep0); in ast_vhub_dev_irq()
71 writel(d->ep0.buf_dma, d->regs + AST_VHUB_DEV_EP0_DATA); in ast_vhub_dev_enable()
177 return ast_vhub_simple_reply(&d->ep0, st0, 0); in ast_vhub_dev_status()
202 return ast_vhub_simple_reply(&d->ep0, st0, 0); in ast_vhub_ep_status()
553 ast_vhub_init_ep0(vhub, &d->ep0, d); in ast_vhub_init_dev()
585 d->gadget.ep0 = &d->ep0.ep; in ast_vhub_init_dev()
Dcore.c144 ast_vhub_ep0_handle_ack(&vhub->ep0, true); in ast_vhub_irq()
146 ast_vhub_ep0_handle_ack(&vhub->ep0, false); in ast_vhub_irq()
148 ast_vhub_ep0_handle_setup(&vhub->ep0); in ast_vhub_irq()
233 writel(vhub->ep0.buf_dma, vhub->regs + AST_VHUB_EP0_DATA); in ast_vhub_init_hw()
390 ast_vhub_init_ep0(vhub, &vhub->ep0, NULL); in ast_vhub_probe()
DMakefile3 aspeed-vhub-y := core.o ep0.o epn.o dev.o hub.o
Dvhub.h308 } ep0; member
360 struct ast_vhub_ep ep0; member
397 struct ast_vhub_ep ep0; member
/linux-6.12.1/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c182 static void handle_ep0(int ep0, bool *ready) in handle_ep0() argument
188 pfds[0].fd = ep0; in handle_ep0()
194 ret = read(ep0, &event, sizeof(event)); in handle_ep0()
203 write(ep0, NULL, 0); in handle_ep0()
205 read(ep0, NULL, 0); in handle_ep0()
227 int ep0; in main() local
253 ep0 = open(ep_path, O_RDWR); in main()
254 if (ep0 < 0) { in main()
258 if (write(ep0, &descriptors, sizeof(descriptors)) < 0) { in main()
262 if (write(ep0, &strings, sizeof(strings)) < 0) { in main()
[all …]
/linux-6.12.1/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c176 static void handle_ep0(int ep0, bool *ready) in handle_ep0() argument
181 ret = read(ep0, &event, sizeof(event)); in handle_ep0()
190 write(ep0, NULL, 0); in handle_ep0()
192 read(ep0, NULL, 0); in handle_ep0()
240 int ep0, ep1; in main() local
264 ep0 = open(ep_path, O_RDWR); in main()
265 if (ep0 < 0) { in main()
269 if (write(ep0, &descriptors, sizeof(descriptors)) < 0) { in main()
273 if (write(ep0, &strings, sizeof(strings)) < 0) { in main()
304 FD_SET(ep0, &rfds); in main()
[all …]
/linux-6.12.1/drivers/usb/gadget/udc/
Drenesas_usbf.c547 static void usbf_ep0_send_null(struct usbf_ep *ep0, bool is_data1) in usbf_ep0_send_null() argument
555 usbf_ep_reg_bitset(ep0, USBF_REG_EP0_CONTROL, set); in usbf_ep0_send_null()
558 static int usbf_ep0_pio_in(struct usbf_ep *ep0, struct usbf_req *req) in usbf_ep0_pio_in() argument
571 dev_dbg(ep0->udc->dev, "ep0 send null\n"); in usbf_ep0_pio_in()
572 usbf_ep0_send_null(ep0, false); in usbf_ep0_pio_in()
576 if ((req->req.actual % ep0->ep.maxpacket) == 0) { in usbf_ep0_pio_in()
578 dev_dbg(ep0->udc->dev, "ep0 send null\n"); in usbf_ep0_pio_in()
579 usbf_ep0_send_null(ep0, false); in usbf_ep0_pio_in()
588 if (left > ep0->ep.maxpacket) in usbf_ep0_pio_in()
589 left = ep0->ep.maxpacket; in usbf_ep0_pio_in()
[all …]
Dudc-xilinx.c261 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()
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()
1019 list_add_tail(&req->queue, &ep0->queue); in __xudc_ep0_queue()
1024 corebuf = (void __force *) ((ep0->rambase << 2) + in __xudc_ep0_queue()
1056 struct xusb_ep *ep0 = to_xusb_ep(_ep); in xudc_ep0_queue() local
[all …]
Dlpc32xx_udc.c1381 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()
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
[all …]
Dat91_udc.c831 INIT_LIST_HEAD(&udc->gadget.ep0->ep_list); in udc_reinit()
1275 struct at91_ep *ep0 = &udc->ep[0]; in handle_ep0() local
1276 u32 __iomem *creg = ep0->creg; in handle_ep0()
1281 nuke(ep0, -EPROTO); in handle_ep0()
1290 nuke(ep0, 0); in handle_ep0()
1292 handle_setup(udc, ep0, csr); in handle_ep0()
1296 if (list_empty(&ep0->queue)) in handle_ep0()
1299 req = list_entry(ep0->queue.next, struct at91_request, queue); in handle_ep0()
1307 if (req && ep0->is_in) { in handle_ep0()
1308 if (handle_ep(ep0)) in handle_ep0()
[all …]
/linux-6.12.1/drivers/usb/mtu3/
Dmtu3_gadget_ep0.c18 #define next_ep0_request(mtu) next_request((mtu)->ep0)
59 mtu3_req_complete(mtu->ep0, req, 0); in ep0_req_giveback()
126 ep0_write_fifo(mtu->ep0, mtu3_test_packet, sizeof(mtu3_test_packet)); in ep0_load_test_packet()
196 mtu->ep0_req.mep = mtu->ep0; in ep0_set_sel()
200 ret = ep0_queue(mtu->ep0, &mtu->ep0_req); in ep0_set_sel()
265 mtu->ep0_req.mep = mtu->ep0; in ep0_get_status()
269 ret = ep0_queue(mtu->ep0, &mtu->ep0_req); in ep0_get_status()
535 ep0_read_fifo(mtu->ep0, buf, count); in ep0_rx_state()
539 maxp = mtu->g.ep0->maxpacket; in ep0_rx_state()
577 maxp = mtu->g.ep0->maxpacket; in ep0_tx_state()
[all …]
/linux-6.12.1/drivers/usb/host/
Dfhci-tds.c100 ep = usb->ep0; in fhci_ep0_free()
136 usb->ep0 = NULL; in fhci_ep0_free()
224 usb->ep0 = ep; in fhci_create_ep()
279 struct endpoint *ep = usb->ep0; in fhci_td_transaction_confirm()
385 struct endpoint *ep = usb->ep0; in fhci_host_transaction()
472 struct endpoint *ep = usb->ep0; in fhci_flush_bds()
528 struct endpoint *ep = usb->ep0; in fhci_flush_actual_frame()
592 struct endpoint *ep = usb->ep0; in fhci_host_transmit_actual_frame()
Dfhci-sched.c36 cq_put(&usb->ep0->empty_frame_Q, pkt); in recycle_frame()
56 cq_put(&usb->ep0->dummy_packets_Q, pkt->data); in fhci_transaction_confirm()
212 pkt = cq_get(&usb->ep0->empty_frame_Q); in add_packet()
221 data = cq_get(&usb->ep0->dummy_packets_Q); in add_packet()
245 cq_put(&usb->ep0->dummy_packets_Q, pkt->data); in add_packet()
319 fhci_push_dummy_bd(usb->ep0); in scan_ed_list()
516 fhci_push_dummy_bd(usb->ep0); in fhci_frame_limit_timer_irq()
/linux-6.12.1/drivers/usb/usbip/
Dvudc_sysfs.c26 struct vep *ep0 = to_vep(udc->gadget.ep0); in get_gadget_descs() local
47 usb_req = list_last_entry(&ep0->req_queue, struct vrequest, req_entry); in get_gadget_descs()
61 usb_gadget_giveback_request(&(ep0->ep), &(usb_req->req)); in get_gadget_descs()
/linux-6.12.1/drivers/usb/cdns3/
DMakefile18 cdns3-$(CONFIG_USB_CDNS3_GADGET) += cdns3-gadget.o cdns3-ep0.o
40 cdnsp-mem.o cdnsp-ep0.o
/linux-6.12.1/drivers/usb/gadget/legacy/
Dinode.c938 (void) usb_ep_set_halt (dev->gadget->ep0); in ep0_read()
943 struct usb_ep *ep = dev->gadget->ep0; in ep0_read()
1001 clean_req (dev->gadget->ep0, dev->req); in ep0_read()
1141 retval = setup_req (dev->gadget->ep0, dev->req, len); in ep0_write()
1152 dev->gadget->ep0, dev->req, in ep0_write()
1158 clean_req (dev->gadget->ep0, dev->req); in ep0_write()
1168 (void) usb_ep_set_halt (dev->gadget->ep0); in ep0_write()
1299 qual.bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in make_qualifier()
1392 dev->dev->bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in gadgetfs_setup()
1494 value = setup_req (gadget->ep0, dev->req, in gadgetfs_setup()
[all …]
Ddbgp.c226 usb_ep_free_request(gadget->ep0, dbgp.req); in dbgp_unbind()
284 dbgp.req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL); in dbgp_bind()
367 device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket; in dbgp_setup()
401 return usb_ep_queue(gadget->ep0, req, GFP_ATOMIC); in dbgp_setup()
/linux-6.12.1/Documentation/usb/
Dfunctionfs.rst19 mounted provides an "ep0" file. User space driver need to
35 configuration changes to (say) endpoint 2)). "ep0" is used
70 have been written to their ep0's.
87 IOCTLs have to be performed on a data endpoint (ie. not ep0). They are:
/linux-6.12.1/drivers/usb/dwc3/
Dep0.c865 struct dwc3_ep *ep0; in dwc3_ep0_complete_data() local
872 ep0 = dwc->eps[0]; in dwc3_ep0_complete_data()
876 trace_dwc3_complete_trb(ep0, trb); in dwc3_ep0_complete_data()
878 r = next_request(&ep0->pending_list); in dwc3_ep0_complete_data()
886 dwc3_gadget_giveback(ep0, r, -ECONNRESET); in dwc3_ep0_complete_data()
897 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data()
901 trace_dwc3_complete_trb(ep0, trb); in dwc3_ep0_complete_data()
914 dwc3_gadget_giveback(ep0, r, 0); in dwc3_ep0_complete_data()
/linux-6.12.1/drivers/usb/gadget/
Dcomposite.c921 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; in device_qual()
1606 ret = usb_ep_queue(cdev->gadget->ep0, req, gfp_flags); in composite_ep0_queue()
1811 gadget->ep0->driver_data = cdev; in composite_setup()
1832 cdev->gadget->ep0->maxpacket; in composite_setup()
2284 composite_setup_complete(gadget->ep0, req); in composite_setup()
2425 cdev->req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL); in composite_dev_prepare()
2439 gadget->ep0->driver_data = cdev; in composite_dev_prepare()
2460 usb_ep_free_request(gadget->ep0, cdev->req); in composite_dev_prepare()
2466 struct usb_ep *ep0) in composite_os_desc_req_prepare() argument
2470 cdev->os_desc_req = usb_ep_alloc_request(ep0, GFP_KERNEL); in composite_os_desc_req_prepare()
[all …]
/linux-6.12.1/drivers/usb/gadget/udc/cdns2/
DMakefile6 cdns2-udc-pci-$(CONFIG_USB_CDNS2_UDC) += cdns2-pci.o cdns2-gadget.o cdns2-ep0.o
/linux-6.12.1/sound/soc/generic/
Daudio-graph-card2.c990 struct device_node *ep0, *ep1; in audio_graph2_link_c2c() local
1043 ep0 = port_to_endpoint(port0); in audio_graph2_link_c2c()
1046 codec0_port = of_graph_get_remote_port(ep0); in audio_graph2_link_c2c()
1067 of_node_put(ep0); in audio_graph2_link_c2c()
1235 struct device_node *ep0 = port_to_endpoint(port0); in graph_count_c2c() local
1237 struct device_node *codec0 = of_graph_get_remote_port(ep0); in graph_count_c2c()
1260 of_node_put(ep0); in graph_count_c2c()
/linux-6.12.1/drivers/usb/gadget/udc/bdc/
Dbdc_udc.c86 bdc->gadget.ep0->maxpacket = EP0_MAX_PKT_SIZE; in bdc_uspc_connected()
98 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected()
104 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected()
110 bdc->gadget.ep0->maxpacket = 8; in bdc_uspc_connected()
/linux-6.12.1/Documentation/ABI/testing/
Dconfigfs-usb-gadget-ffs13 strings to ep0, so the gadget can be

1234