| /drivers/usb/isp1760/ |
| A D | isp1760-udc.c | 158 struct isp1760_udc *udc = ep->udc; in isp1760_udc_ctrl_send_status() local 185 struct isp1760_udc *udc = ep->udc; in isp1760_udc_request_complete() local 210 struct isp1760_udc *udc = ep->udc; in isp1760_udc_ctrl_send_stall() local 237 struct isp1760_udc *udc = ep->udc; in isp1760_udc_receive() local 303 struct isp1760_udc *udc = ep->udc; in isp1760_udc_transmit() local 338 struct isp1760_udc *udc = ep->udc; in isp1760_ep_rx_ready() local 378 struct isp1760_udc *udc = ep->udc; in isp1760_ep_tx_complete() local 1455 ep->udc = udc; in isp1760_udc_init_eps() 1557 udc->irqname, udc); in isp1760_udc_register() 1583 free_irq(udc->irq, udc); in isp1760_udc_register() [all …]
|
| /drivers/usb/gadget/udc/ |
| A D | lpc32xx_udc.c | 515 if (udc->enabled && udc->vbus) { in udc_show() 1399 struct lpc32xx_udc *udc = ep->udc; in done() local 1554 if (!udc->enabled || !udc->vbus) in pullup() 1613 udc = ep->udc; in lpc32xx_ep_enable() 1747 udc = ep->udc; in lpc32xx_ep_queue() 1873 udc = ep->udc; in lpc32xx_ep_set_halt() 2121 udc->driver && udc->vbus) { in udc_handle_dev() 2861 udc->last_vbus = udc->vbus; in vbus_work() 2898 udc->last_vbus = udc->vbus = 0; in lpc32xx_start() 2995 udc->ep[i].udc = udc; in lpc32xx_udc_probe() [all …]
|
| A D | snps_udc_plat.c | 22 static void start_udc(struct udc *udc) in start_udc() argument 32 static void stop_udc(struct udc *udc) in stop_udc() argument 57 udc->driver->disconnect(&udc->gadget); in stop_udc() 72 struct udc *udc; in udc_drd_work() local 89 struct udc *udc = container_of(self, struct udc, nb); in usbd_connect_notify() local 104 struct udc *udc; in udc_plat_probe() local 119 udc->csr = udc->virt_addr + UDC_CSR_ADDR; in udc_plat_probe() 122 udc->regs = udc->virt_addr + UDC_DEVCFG_ADDR; in udc_plat_probe() 125 udc->ep_regs = udc->virt_addr + UDC_EPREGS_ADDR; in udc_plat_probe() 254 struct udc *udc; in udc_plat_suspend() local [all …]
|
| A D | bcm63xx_udc.c | 775 iudma->udc = udc; in iudma_init_channel() 962 bep->udc = udc; in bcm63xx_init_udc_hw() 967 udc->gadget.ep0 = &udc->bep[0].ep; in bcm63xx_init_udc_hw() 1034 struct bcm63xx_udc *udc = bep->udc; in bcm63xx_ep_enable() local 1073 struct bcm63xx_udc *udc = bep->udc; in bcm63xx_ep_disable() local 1154 struct bcm63xx_udc *udc = bep->udc; in bcm63xx_udc_queue() local 1206 struct bcm63xx_udc *udc = bep->udc; in bcm63xx_udc_dequeue() local 1254 struct bcm63xx_udc *udc = bep->udc; in bcm63xx_udc_set_halt() local 1274 struct bcm63xx_udc *udc = bep->udc; in bcm63xx_udc_set_wedge() local 1370 udc->iface, udc->alt_iface); in bcm63xx_ep0_spoof_set_iface() [all …]
|
| A D | udc-xilinx.c | 319 struct xusb_udc *udc = ep->udc; in xudc_start_dma() local 382 struct xusb_udc *udc = ep->udc; in xudc_dma_send() local 436 struct xusb_udc *udc = ep->udc; in xudc_dma_receive() local 762 udc = ep->udc; in xudc_ep_set_halt() 907 udc = ep->udc; in xudc_ep_enable() 940 udc = ep->udc; in xudc_ep_disable() 1334 ep->udc = udc; in xudc_eps_init() 1711 udc->write_fn(udc->addr, in xudc_set_clear_feature() 1716 udc->write_fn(udc->addr, in xudc_set_clear_feature() 1723 udc->write_fn(udc->addr, in xudc_set_clear_feature() [all …]
|
| A D | max3420_udc.c | 316 struct max3420_udc *udc = ep->udc; in spi_max3420_enable() local 348 struct max3420_udc *udc = ep->udc; in spi_max3420_stall() local 547 if (udc->driver->setup(&udc->gadget, &udc->setup) < 0) in max3420_getstatus() 669 struct max3420_udc *udc = ep->udc; in max3420_req_done() local 906 struct max3420_udc *udc = ep->udc; in max3420_ep_set_halt() local 946 struct max3420_udc *udc = ep->udc; in max3420_ep_enable() local 975 struct max3420_udc *udc = ep->udc; in __max3420_ep_disable() local 993 struct max3420_udc *udc = ep->udc; in max3420_ep_disable() local 1161 ep->udc = udc; in max3420_eps_init() 1236 udc->ep0req.ep = &udc->ep[0]; in max3420_probe() [all …]
|
| A D | at91_udc.c | 115 struct at91_udc *udc = ep->udc; in proc_ep_show() local 228 if (udc->enabled && udc->vbus) { in proc_udc_show() 263 struct at91_udc *udc = ep->udc; in done() local 490 udc = ep->udc; in at91_ep_enable() 553 struct at91_udc *udc = ep->udc; in at91_ep_disable() local 628 udc = ep->udc; in at91_ep_queue() 716 udc = ep->udc; in at91_ep_dequeue() 740 struct at91_udc *udc = ep->udc; in at91_ep_set_halt() local 925 if (!udc->enabled || !udc->vbus) in pullup() 941 udc->caps->pullup(udc, is_on); in pullup() [all …]
|
| A D | aspeed_udc.c | 284 struct ast_udc_dev *udc = ep->udc; in ast_udc_done() local 346 struct ast_udc_dev *udc = ep->udc; in ast_udc_ep_enable() local 433 struct ast_udc_dev *udc = ep->udc; in ast_udc_ep_disable() local 477 struct ast_udc_dev *udc = ep->udc; in ast_dma_descriptor_setup() local 585 struct ast_udc_dev *udc = ep->udc; in ast_udc_ep0_queue() local 631 struct ast_udc_dev *udc = ep->udc; in ast_udc_ep_queue() local 694 struct ast_udc_dev *udc = ep->udc; in ast_udc_ep_dequeue() local 723 struct ast_udc_dev *udc = ep->udc; in ast_udc_ep_set_halt() local 1147 udc->driver->reset(&udc->gadget); in ast_udc_isr() 1372 ep->udc = udc; in ast_udc_init_ep() [all …]
|
| A D | fsl_qe_udc.c | 79 struct qe_udc *udc = ep->udc; in done() local 147 struct qe_udc *udc = ep->udc; in qe_eprx_stall_change() local 164 struct qe_udc *udc = ep->udc; in qe_eptx_stall_change() local 190 struct qe_udc *udc = ep->udc; in qe_eprx_nack() local 208 struct qe_udc *udc = ep->udc; in qe_eprx_normal() local 1028 udc = ep->udc; in qe_ep_rx() 1597 udc = ep->udc; in qe_ep_enable() 1621 udc = ep->udc; in qe_ep_disable() 1701 udc = ep->udc; in __qe_ep_queue() 1827 udc = ep->udc; in qe_ep_set_halt() [all …]
|
| A D | atmel_usba_udc.c | 391 udc->errata->toggle_bias(udc, is_on); in toggle_bias() 400 udc->errata->pulse_bias(udc); in generate_bias_pulse() 484 struct usba_udc *udc = ep->udc; in receive_data() local 541 struct usba_udc *udc = ep->udc; in request_complete() local 575 struct usba_udc *udc = ep->udc; in usba_ep_enable() local 667 struct usba_udc *udc = ep->udc; in usba_ep_disable() local 778 struct usba_udc *udc = ep->udc; in usba_ep_queue() local 860 struct usba_udc *udc = ep->udc; in usba_ep_dequeue() local 921 struct usba_udc *udc = ep->udc; in usba_ep_set_halt() local 973 struct usba_udc *udc = ep->udc; in usba_ep_fifo_flush() local [all …]
|
| A D | pxa27x_udc.c | 1523 if (!udc->gpiod && !udc->udc_command) in pxa_udc_pullup() 2095 udc->driver->setup(&udc->gadget, &req); in pxa27x_change_configuration() 2124 udc->driver->setup(&udc->gadget, &req); in pxa27x_change_interface() 2189 && udc->driver && udc->driver->suspend) in irq_udc_suspend() 2190 udc->driver->suspend(&udc->gadget); in irq_udc_suspend() 2204 && udc->driver && udc->driver->resume) in irq_udc_resume() 2205 udc->driver->resume(&udc->gadget); in irq_udc_resume() 2251 memset(&udc->stats, 0, sizeof udc->stats); in irq_udc_reset() 2492 udc->pullup_resume = udc->pullup_on; in pxa_udc_suspend() 2496 udc->driver->disconnect(&udc->gadget); in pxa_udc_suspend() [all …]
|
| A D | fsl_udc_core.c | 164 udc = (struct fsl_udc *)ep->udc; in done() 557 udc = ep->udc; in fsl_ep_enable() 657 udc = (struct fsl_udc *)ep->udc; in fsl_ep_disable() 872 struct fsl_udc *udc = ep->udc; in fsl_ep_queue() local 1013 udc = ep->udc; in fsl_ep_set_halt() 1062 udc = (struct fsl_udc *)ep->udc; in fsl_ep_fifo_status() 1173 return udc->driver && udc->softconnect && udc->vbus_active; in can_pullup() 1762 udc->resume_state = udc->usb_state; in suspend_irq() 1772 udc->usb_state = udc->resume_state; in bus_resume() 1777 udc->driver->resume(&udc->gadget); in bus_resume() [all …]
|
| A D | core.c | 1117 struct usb_udc *udc = gadget->udc; in usb_gadget_state_work() local 1119 if (udc) in usb_gadget_state_work() 1170 struct usb_udc *udc = gadget->udc; in usb_udc_vbus_handler() local 1221 ret = udc->gadget->ops->udc_start(udc->gadget, udc->driver); in usb_gadget_udc_start_locked() 1249 udc->gadget->ops->udc_stop(udc->gadget); in usb_gadget_udc_stop_locked() 1385 udc = kzalloc(sizeof(*udc), GFP_KERNEL); in usb_add_gadget() 1400 gadget->udc = udc; in usb_add_gadget() 1533 struct usb_udc *udc = gadget->udc; in usb_del_gadget() local 1572 struct usb_udc *udc = gadget->udc; in gadget_match_driver() local 1592 struct usb_udc *udc = gadget->udc; in gadget_bind_driver() local [all …]
|
| A D | renesas_usbf.c | 1832 struct usbf_udc *udc = ep->udc; in usbf_ep_enable() local 1889 struct usbf_udc *udc = ep->udc; in usbf_ep_disable() local 1989 struct usbf_udc *udc = ep->udc; in usbf_ep_queue() local 1996 if (!udc || !udc->driver) in usbf_ep_queue() 2450 struct usbf_udc *udc = ep0->udc; in usbf_handle_ep0_setup() local 2524 struct usbf_udc *udc = ep0->udc; in usbf_handle_ep0_data_status() local 2553 struct usbf_udc *udc = ep0->udc; in usbf_handle_ep0_out_status_start() local 2578 struct usbf_udc *udc = ep0->udc; in usbf_handle_ep0_in_status_start() local 2624 struct usbf_udc *udc = ep0->udc; in usbf_ep0_interrupt() local 3285 udc->gadget.ep0 = &udc->ep[0].ep; in usbf_probe() [all …]
|
| A D | omap_udc.c | 192 udc = ep->udc; in omap_ep_enable() 292 struct omap_udc *udc = ep->udc; in done() local 901 udc = ep->udc; in omap_ep_queue() 1190 return udc->driver && udc->softconnect && udc->vbus_active; in can_pullup() 1231 if (udc == NULL || udc->dc_clk == NULL || udc->hhc_clk == NULL) in omap_udc_enable_clock() 1753 udc->driver->disconnect(&udc->gadget); in devstate_irq() 1784 udc->driver->suspend(&udc->gadget); in devstate_irq() 1798 udc->driver->resume(&udc->gadget); in devstate_irq() 2559 ep->udc = udc; in omap_ep_setup() 2630 udc = kzalloc(sizeof(*udc), GFP_KERNEL); in omap_udc_setup() [all …]
|
| A D | amd5536udc.h | 517 struct udc *dev; 529 struct udc { struct 587 int udc_enable_dev_setup_interrupts(struct udc *dev); 588 int udc_mask_unused_interrupts(struct udc *dev); 592 void udc_basic_init(struct udc *dev); 593 void free_dma_pools(struct udc *dev); 594 int init_dma_pools(struct udc *dev); 595 void udc_remove(struct udc *dev); 596 int udc_probe(struct udc *dev); 653 #define DBG(udc , args...) dev_dbg(udc->dev, args) argument [all …]
|
| A D | amd5536udc_pci.c | 49 static struct udc *udc; variable 57 struct udc *dev; in udc_pci_remove() 61 usb_del_gadget_udc(&udc->gadget); in udc_pci_remove() 86 struct udc *dev; in udc_pci_probe() 92 if (udc) { in udc_pci_probe() 98 dev = kzalloc(sizeof(struct udc), GFP_KERNEL); in udc_pci_probe() 174 udc = dev; in udc_pci_probe()
|
| A D | pxa25x_udc.c | 1147 int is_active = udc->vbus && udc->pullup && !udc->suspended; in pullup() 1151 udc->active = 1; in pullup() 1154 udc_enable(udc); in pullup() 1157 if (udc->active) { in pullup() 1162 stop_activity(udc, udc->driver); in pullup() 1164 udc_disable(udc); in pullup() 1167 udc->active = 0; in pullup() 1182 pullup(udc); in pxa25x_udc_vbus_session() 1198 pullup(udc); in pxa25x_udc_pullup() 2447 pullup(udc); in pxa25x_udc_suspend() [all …]
|
| A D | Makefile | 5 udc-core-y := core.o trace.o 10 obj-$(CONFIG_USB_GADGET) += udc-core.o 25 obj-$(CONFIG_USB_M66592) += m66592-udc.o 26 obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o 34 obj-$(CONFIG_USB_GADGET_XILINX) += udc-xilinx.o
|
| /drivers/usb/usbip/ |
| A D | vudc_dev.c | 98 nuke(udc, &udc->ep[i]); in stop_activity() 201 udc->pullup = udc->connected = udc->desc_cached = 0; in vgadget_udc_start() 347 udc = req->udc; in vep_dequeue() 455 if (udc->connected && udc->driver->disconnect) in vudc_shutdown() 460 udc->driver->disconnect(&udc->gadget); in vudc_shutdown() 473 usb_gadget_udc_reset(&udc->gadget, udc->driver); in vudc_device_reset() 522 if (!udc->ep) in init_vudc_hw() 601 udc = kzalloc(sizeof(*udc), GFP_KERNEL); in vudc_probe() 602 if (!udc) in vudc_probe() 626 kfree(udc); in vudc_probe() [all …]
|
| A D | vudc_sysfs.c | 31 if (!udc->driver || !udc->pullup) in get_gadget_descs() 40 spin_unlock(&udc->lock); in get_gadget_descs() 41 ret = udc->driver->setup(&(udc->gadget), &req); in get_gadget_descs() 42 spin_lock(&udc->lock); in get_gadget_descs() 56 udc->desc_cached = 1; in get_gadget_descs() 111 if (!udc) { in usbip_sockfd_store() 118 if (!udc->driver || !udc->pullup) { in usbip_sockfd_store() 125 if (udc->connected) { in usbip_sockfd_store() 186 v_start_timer(udc); in usbip_sockfd_store() 187 udc->connected = 1; in usbip_sockfd_store() [all …]
|
| A D | vudc_transfer.c | 73 udc->address = w_value; in handle_control_request() 283 spin_unlock(&udc->lock); in transfer() 285 spin_lock(&udc->lock); in transfer() 304 struct vudc *udc = timer_container_of(udc, t, tr_timer.timer); in v_timer() local 331 udc->ep[0].already_seen = 0; in v_timer() 377 spin_unlock(&udc->lock); in v_timer() 378 ret = udc->driver->setup(&udc->gadget, in v_timer() 381 spin_lock(&udc->lock); in v_timer() 419 spin_lock(&udc->lock_tx); in v_timer() 428 wake_up(&udc->tx_waitq); in v_timer() [all …]
|
| A D | vudc_rx.c | 68 spin_lock_irqsave(&udc->lock, flags); in v_recv_cmd_unlink() 74 v_kick_timer(udc, jiffies); in v_recv_cmd_unlink() 79 spin_lock(&udc->lock_tx); in v_recv_cmd_unlink() 81 wake_up(&udc->tx_waitq); in v_recv_cmd_unlink() 82 spin_unlock(&udc->lock_tx); in v_recv_cmd_unlink() 107 spin_lock_irqsave(&udc->lock, flags); in v_recv_cmd_submit() 134 dev_err(&udc->gadget.dev, in v_recv_cmd_submit() 177 spin_lock_irqsave(&udc->lock, flags); in v_recv_cmd_submit() 178 v_kick_timer(udc, jiffies); in v_recv_cmd_submit() 215 ret = v_recv_cmd_unlink(udc, &pdu); in v_rx_pdu() [all …]
|
| A D | vudc_tx.c | 89 dev_err(&udc->gadget.dev, in v_send_ret_submit() 154 usbip_event_add(&udc->ud, in v_send_ret_submit() 184 static int v_send_ret(struct vudc *udc) in v_send_ret() argument 191 spin_lock_irqsave(&udc->lock_tx, flags); in v_send_ret() 192 while (!list_empty(&udc->tx_queue)) { in v_send_ret() 200 ret = v_send_ret_submit(udc, txi->s); in v_send_ret() 203 ret = v_send_ret_unlink(udc, txi->u); in v_send_ret() 228 if (usbip_event_happened(&udc->ud)) in v_tx_loop() 230 ret = v_send_ret(udc); in v_tx_loop() 235 wait_event_interruptible(udc->tx_waitq, in v_tx_loop() [all …]
|
| A D | vudc.h | 41 struct vudc *udc; member 146 int get_gadget_descs(struct vudc *udc); 151 void v_enqueue_ret_unlink(struct vudc *udc, __u32 seqnum, __u32 status); 152 void v_enqueue_ret_submit(struct vudc *udc, struct urbp *urb_p); 160 void v_init_timer(struct vudc *udc); 161 void v_start_timer(struct vudc *udc); 162 void v_kick_timer(struct vudc *udc, unsigned long time); 163 void v_stop_timer(struct vudc *udc); 170 struct vep *vudc_find_endpoint(struct vudc *udc, u8 address);
|