/drivers/usb/gadget/udc/aspeed-vhub/ |
D | ep0.c | 32 struct usb_request *req = &ep->ep0.req.req; in ast_vhub_reply() 37 if (WARN_ON(!ep->ep0.dir_in)) in ast_vhub_reply() 93 memcpy_fromio(&crq, ep->ep0.setup, sizeof(crq)); in ast_vhub_ep0_handle_setup() 101 ep->ep0.state); in ast_vhub_ep0_handle_setup() 113 if (ep->ep0.state != ep0_state_token && in ast_vhub_ep0_handle_setup() 114 ep->ep0.state != ep0_state_stall) { in ast_vhub_ep0_handle_setup() 120 ep->ep0.state = ep0_state_data; in ast_vhub_ep0_handle_setup() 121 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup() 164 writel(VHUB_EP0_CTRL_STALL, ep->ep0.ctlstat); in ast_vhub_ep0_handle_setup() 165 ep->ep0.state = ep0_state_stall; in ast_vhub_ep0_handle_setup() [all …]
|
D | dev.c | 39 ast_vhub_ep0_handle_ack(&d->ep0, true); in ast_vhub_dev_irq() 41 ast_vhub_ep0_handle_ack(&d->ep0, false); in ast_vhub_dev_irq() 43 ast_vhub_ep0_handle_setup(&d->ep0); in ast_vhub_dev_irq() 72 writel(d->ep0.buf_dma, d->regs + AST_VHUB_DEV_EP0_DATA); in ast_vhub_dev_enable() 167 return ast_vhub_simple_reply(&d->ep0, st0, 0); in ast_vhub_dev_status() 192 return ast_vhub_simple_reply(&d->ep0, st0, 0); in ast_vhub_ep_status() 543 ast_vhub_init_ep0(vhub, &d->ep0, d); in ast_vhub_init_dev() 575 d->gadget.ep0 = &d->ep0.ep; in ast_vhub_init_dev()
|
D | core.c | 145 ast_vhub_ep0_handle_ack(&vhub->ep0, true); in ast_vhub_irq() 147 ast_vhub_ep0_handle_ack(&vhub->ep0, false); in ast_vhub_irq() 149 ast_vhub_ep0_handle_setup(&vhub->ep0); in ast_vhub_irq() 234 writel(vhub->ep0.buf_dma, vhub->regs + AST_VHUB_EP0_DATA); in ast_vhub_init_hw() 394 ast_vhub_init_ep0(vhub, &vhub->ep0, NULL); in ast_vhub_probe()
|
D | vhub.h | 308 } ep0; member 360 struct ast_vhub_ep ep0; member 397 struct ast_vhub_ep ep0; member
|
D | Makefile | 3 aspeed-vhub-y := core.o ep0.o epn.o dev.o hub.o
|
/drivers/usb/gadget/udc/ |
D | udc-xilinx.c | 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() 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() 1018 list_add_tail(&req->queue, &ep0->queue); in __xudc_ep0_queue() 1023 corebuf = (void __force *) ((ep0->rambase << 2) + in __xudc_ep0_queue() 1055 struct xusb_ep *ep0 = to_xusb_ep(_ep); in xudc_ep0_queue() local [all …]
|
D | lpc32xx_udc.c | 1381 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 …]
|
D | at91_udc.c | 829 INIT_LIST_HEAD(&udc->gadget.ep0->ep_list); in udc_reinit() 1273 struct at91_ep *ep0 = &udc->ep[0]; in handle_ep0() local 1274 u32 __iomem *creg = ep0->creg; in handle_ep0() 1279 nuke(ep0, -EPROTO); in handle_ep0() 1288 nuke(ep0, 0); in handle_ep0() 1290 handle_setup(udc, ep0, csr); in handle_ep0() 1294 if (list_empty(&ep0->queue)) in handle_ep0() 1297 req = list_entry(ep0->queue.next, struct at91_request, queue); in handle_ep0() 1305 if (req && ep0->is_in) { in handle_ep0() 1306 if (handle_ep(ep0)) in handle_ep0() [all …]
|
D | omap_udc.c | 1391 struct omap_ep *ep0 = &udc->ep[0]; in ep0_irq() local 1394 ep0->irqs++; in ep0_irq() 1402 nuke(ep0, 0); in ep0_irq() 1417 if (!list_empty(&ep0->queue)) in ep0_irq() 1418 req = container_of(ep0->queue.next, struct omap_req, queue); in ep0_irq() 1433 stat = write_fifo(ep0, req); in ep0_irq() 1446 done(ep0, req, 0); in ep0_irq() 1470 stat = read_fifo(ep0, req); in ep0_irq() 1481 done(ep0, req, 0); in ep0_irq() 1494 done(ep0, req, 0); in ep0_irq() [all …]
|
D | tegra-xudc.c | 2492 struct tegra_xudc_ep *ep0 = &xudc->ep[0]; in tegra_xudc_ep0_set_address() local 2514 ep_ctx_write_devaddr(ep0->context, addr); in tegra_xudc_ep0_set_address() 2794 struct tegra_xudc_ep *ep0 = &xudc->ep[0]; in tegra_xudc_reset() local 2811 ep0->deq_ptr = ep0->enq_ptr; in tegra_xudc_reset() 2812 ep0->ring_full = false; in tegra_xudc_reset() 2817 ep_ctx_write_rsvd(ep0->context, 0); in tegra_xudc_reset() 2818 ep_ctx_write_partial_td(ep0->context, 0); in tegra_xudc_reset() 2819 ep_ctx_write_splitxstate(ep0->context, 0); in tegra_xudc_reset() 2820 ep_ctx_write_seq_num(ep0->context, 0); in tegra_xudc_reset() 2822 deq_ptr = trb_virt_to_phys(ep0, &ep0->transfer_ring[ep0->deq_ptr]); in tegra_xudc_reset() [all …]
|
D | atmel_usba_udc.c | 242 usba_ep_init_debugfs(udc, to_usba_ep(udc->gadget.ep0)); in usba_init_debugfs() 247 usba_ep_cleanup_debugfs(to_usba_ep(udc->gadget.ep0)); in usba_cleanup_debugfs() 1139 ep = to_usba_ep(udc->gadget.ep0); in reset_all_endpoints() 1151 return to_usba_ep(udc->gadget.ep0); in get_ep_by_addr() 1790 struct usba_ep *ep0, *ep; in usba_udc_irq() local 1813 ep0 = &udc->usba_ep[0]; in usba_udc_irq() 1814 ep0->ep.desc = &usba_ep0_desc; in usba_udc_irq() 1815 ep0->state = WAIT_FOR_SETUP; in usba_udc_irq() 1816 usba_ep_writel(ep0, CFG, in usba_udc_irq() 1820 usba_ep_writel(ep0, CTL_ENB, in usba_udc_irq() [all …]
|
/drivers/usb/mtu3/ |
D | mtu3_gadget_ep0.c | 18 #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() 263 mtu->ep0_req.mep = mtu->ep0; in ep0_get_status() 267 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 …]
|
D | mtu3_core.c | 582 u32 maxpacket = mtu->g.ep0->maxpacket; in mtu3_ep0_setup() 624 mtu->ep0 = mtu->in_eps; in mtu3_mem_alloc() 625 mtu->ep0->mtu = mtu; in mtu3_mem_alloc() 626 mtu->ep0->epnum = 0; in mtu3_mem_alloc() 721 mtu->g.ep0->maxpacket = maxpkt; in mtu3_link_isr()
|
/drivers/usb/host/ |
D | fhci-tds.c | 100 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()
|
D | fhci-sched.c | 36 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()
|
/drivers/usb/usbip/ |
D | vudc_sysfs.c | 26 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()
|
/drivers/usb/gadget/legacy/ |
D | inode.c | 936 (void) usb_ep_set_halt (dev->gadget->ep0); in ep0_read() 941 struct usb_ep *ep = dev->gadget->ep0; in ep0_read() 999 clean_req (dev->gadget->ep0, dev->req); in ep0_read() 1139 retval = setup_req (dev->gadget->ep0, dev->req, len); in ep0_write() 1150 dev->gadget->ep0, dev->req, in ep0_write() 1156 clean_req (dev->gadget->ep0, dev->req); in ep0_write() 1166 (void) usb_ep_set_halt (dev->gadget->ep0); in ep0_write() 1297 qual.bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in make_qualifier() 1390 dev->dev->bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in gadgetfs_setup() 1492 value = setup_req (gadget->ep0, dev->req, in gadgetfs_setup() [all …]
|
D | dbgp.c | 226 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()
|
D | raw_gadget.c | 215 usb_ep_dequeue(dev->gadget->ep0, dev->req); in dev_free() 216 usb_ep_free_request(dev->gadget->ep0, dev->req); in dev_free() 292 req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL); in gadget_bind() 680 ret = usb_ep_queue(dev->gadget->ep0, dev->req, GFP_KERNEL); in raw_process_ep0_io() 692 usb_ep_dequeue(dev->gadget->ep0, dev->req); in raw_process_ep0_io() 778 ret = usb_ep_set_halt(dev->gadget->ep0); in raw_ioctl_ep0_stall()
|
/drivers/usb/cdns3/ |
D | Makefile | 18 cdns3-$(CONFIG_USB_CDNS3_GADGET) += cdns3-gadget.o cdns3-ep0.o 39 cdnsp-mem.o cdnsp-ep0.o
|
/drivers/usb/gadget/ |
D | composite.c | 852 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; in device_qual() 1533 ret = usb_ep_queue(cdev->gadget->ep0, req, gfp_flags); in composite_ep0_queue() 1737 gadget->ep0->driver_data = cdev; in composite_setup() 1758 cdev->gadget->ep0->maxpacket; in composite_setup() 2117 composite_setup_complete(gadget->ep0, req); in composite_setup() 2258 cdev->req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL); in composite_dev_prepare() 2272 gadget->ep0->driver_data = cdev; in composite_dev_prepare() 2293 usb_ep_free_request(gadget->ep0, cdev->req); in composite_dev_prepare() 2299 struct usb_ep *ep0) in composite_os_desc_req_prepare() argument 2303 cdev->os_desc_req = usb_ep_alloc_request(ep0, GFP_KERNEL); in composite_os_desc_req_prepare() [all …]
|
/drivers/usb/dwc3/ |
D | ep0.c | 854 struct dwc3_ep *ep0; in dwc3_ep0_complete_data() local 861 ep0 = dwc->eps[0]; in dwc3_ep0_complete_data() 865 trace_dwc3_complete_trb(ep0, trb); in dwc3_ep0_complete_data() 867 r = next_request(&ep0->pending_list); in dwc3_ep0_complete_data() 875 dwc3_gadget_giveback(ep0, r, -ECONNRESET); in dwc3_ep0_complete_data() 886 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 890 trace_dwc3_complete_trb(ep0, trb); in dwc3_ep0_complete_data() 903 dwc3_gadget_giveback(ep0, r, 0); in dwc3_ep0_complete_data()
|
D | Makefile | 18 dwc3-y += gadget.o ep0.o
|
/drivers/usb/gadget/udc/bdc/ |
D | bdc_udc.c | 86 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()
|
/drivers/usb/core/ |
D | usb.c | 729 INIT_LIST_HEAD(&dev->ep0.urb_list); in usb_alloc_dev() 730 dev->ep0.desc.bLength = USB_DT_ENDPOINT_SIZE; in usb_alloc_dev() 731 dev->ep0.desc.bDescriptorType = USB_DT_ENDPOINT; in usb_alloc_dev() 733 usb_enable_endpoint(dev, &dev->ep0, false); in usb_alloc_dev()
|