Home
last modified time | relevance | path

Searched refs:udc (Results 1 – 24 of 24) sorted by relevance

/drivers/usb/gadget/
Dmv_udc_core.c45 ((ep)->udc->ep0_dir) : ((ep)->direction))
69 static void stop_activity(struct mv_udc *udc, struct usb_gadget_driver *driver);
80 static void ep0_reset(struct mv_udc *udc) in ep0_reset() argument
88 ep = &udc->eps[i]; in ep0_reset()
89 ep->udc = udc; in ep0_reset()
92 ep->dqh = &udc->ep_dqh[i]; in ep0_reset()
101 epctrlx = readl(&udc->op_regs->epctrlx[0]); in ep0_reset()
113 writel(epctrlx, &udc->op_regs->epctrlx[0]); in ep0_reset()
118 static void ep0_stall(struct mv_udc *udc) in ep0_stall() argument
123 epctrlx = readl(&udc->op_regs->epctrlx[0]); in ep0_stall()
[all …]
Dat91_udc.c74 #define at91_udp_read(udc, reg) \ argument
75 __raw_readl((udc)->udp_baseaddr + (reg))
76 #define at91_udp_write(udc, reg, val) \ argument
77 __raw_writel((val), (udc)->udp_baseaddr + (reg))
99 struct at91_udc *udc = ep->udc; in proc_ep_show() local
101 spin_lock_irqsave(&udc->lock, flags); in proc_ep_show()
145 spin_unlock_irqrestore(&udc->lock, flags); in proc_ep_show()
169 struct at91_udc *udc = s->private; in proc_udc_show() local
176 udc->vbus ? "present" : "off", in proc_udc_show()
177 udc->enabled in proc_udc_show()
[all …]
Dpxa27x_udc.c93 struct pxa_udc *udc = s->private; in state_dbg_show() local
98 if (!udc->driver) in state_dbg_show()
105 udc->driver ? udc->driver->driver.name : "(none)"); in state_dbg_show()
107 tmp = udc_readl(udc, UDCCR); in state_dbg_show()
126 udc_readl(udc, UDCICR0), udc_readl(udc, UDCICR1)); in state_dbg_show()
128 udc_readl(udc, UDCISR0), udc_readl(udc, UDCISR1)); in state_dbg_show()
129 pos += seq_printf(s, "udcfnr=%d\n", udc_readl(udc, UDCFNR)); in state_dbg_show()
132 udc->stats.irqs_reset, udc->stats.irqs_suspend, in state_dbg_show()
133 udc->stats.irqs_resume, udc->stats.irqs_reconfig); in state_dbg_show()
142 struct pxa_udc *udc = s->private; in queues_dbg_show() local
[all …]
Dudc-core.c191 struct usb_udc *udc; in usb_udc_release() local
193 udc = container_of(dev, struct usb_udc, dev); in usb_udc_release()
195 kfree(udc); in usb_udc_release()
209 struct usb_udc *udc; in usb_add_gadget_udc() local
212 udc = kzalloc(sizeof(*udc), GFP_KERNEL); in usb_add_gadget_udc()
213 if (!udc) in usb_add_gadget_udc()
216 device_initialize(&udc->dev); in usb_add_gadget_udc()
217 udc->dev.release = usb_udc_release; in usb_add_gadget_udc()
218 udc->dev.class = udc_class; in usb_add_gadget_udc()
219 udc->dev.groups = usb_udc_attr_groups; in usb_add_gadget_udc()
[all …]
Datmel_usba_udc.c49 spin_lock_irq(&ep->udc->lock); in queue_dbg_open()
56 spin_unlock_irq(&ep->udc->lock); in queue_dbg_open()
62 spin_unlock_irq(&ep->udc->lock); in queue_dbg_open()
143 struct usba_udc *udc; in regs_dbg_open() local
149 udc = inode->i_private; in regs_dbg_open()
154 spin_lock_irq(&udc->lock); in regs_dbg_open()
156 data[i] = __raw_readl(udc->regs + i * 4); in regs_dbg_open()
157 spin_unlock_irq(&udc->lock); in regs_dbg_open()
205 static void usba_ep_init_debugfs(struct usba_udc *udc, in usba_ep_init_debugfs() argument
210 ep_root = debugfs_create_dir(ep->ep.name, udc->debugfs_root); in usba_ep_init_debugfs()
[all …]
Dfsl_qe_udc.c85 struct qe_udc *udc = ep->udc; in done() local
101 dma_unmap_single(udc->gadget.dev.parent, in done()
109 dma_sync_single_for_cpu(udc->gadget.dev.parent, in done()
116 dev_vdbg(udc->dev, "complete %s req %p stat %d len %u/%u\n", in done()
122 spin_unlock(&udc->lock); in done()
129 spin_lock(&udc->lock); in done()
156 struct qe_udc *udc = ep->udc; in qe_eprx_stall_change() local
158 tem_usep = in_be16(&udc->usb_regs->usb_usep[epnum]); in qe_eprx_stall_change()
165 out_be16(&udc->usb_regs->usb_usep[epnum], tem_usep); in qe_eprx_stall_change()
173 struct qe_udc *udc = ep->udc; in qe_eptx_stall_change() local
[all …]
Domap_udc.c151 struct omap_udc *udc; in omap_ep_enable() local
195 udc = ep->udc; in omap_ep_enable()
196 if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN) { in omap_ep_enable()
201 spin_lock_irqsave(&udc->lock, flags); in omap_ep_enable()
213 omap_writew(udc->clr_halt, UDC_CTRL); in omap_ep_enable()
218 list_add(&ep->iso, &udc->iso); in omap_ep_enable()
233 spin_unlock_irqrestore(&udc->lock, flags); in omap_ep_enable()
251 spin_lock_irqsave(&ep->udc->lock, flags); in omap_ep_disable()
261 spin_unlock_irqrestore(&ep->udc->lock, flags); in omap_ep_disable()
307 dma_unmap_single(ep->udc->gadget.dev.parent, in done()
[all …]
Dfsl_udc_core.c162 struct fsl_udc *udc = NULL; in done() local
167 udc = (struct fsl_udc *)ep->udc; in done()
184 dma_pool_free(udc->td_pool, curr_td, curr_td->td_dma); in done()
188 dma_unmap_single(ep->udc->gadget.dev.parent, in done()
196 dma_sync_single_for_cpu(ep->udc->gadget.dev.parent, in done()
209 spin_unlock(&ep->udc->lock); in done()
215 spin_lock(&ep->udc->lock); in done()
243 static int dr_controller_setup(struct fsl_udc *udc) in dr_controller_setup() argument
256 switch (udc->phy_mode) { in dr_controller_setup()
299 if (udc->pdata->es) in dr_controller_setup()
[all …]
Dci13xxx_udc.c311 static int hw_device_reset(struct ci13xxx *udc) in hw_device_reset() argument
322 if (udc->udc_driver->notify_event) in hw_device_reset()
323 udc->udc_driver->notify_event(udc, in hw_device_reset()
326 if (udc->udc_driver->flags & CI13XXX_DISABLE_STREAMING) in hw_device_reset()
757 struct ci13xxx *udc = container_of(dev, struct ci13xxx, gadget.dev); in show_device() local
758 struct usb_gadget *gadget = &udc->gadget; in show_device()
799 struct ci13xxx *udc = container_of(dev, struct ci13xxx, gadget.dev); in show_driver() local
800 struct usb_gadget_driver *driver = udc->driver; in show_driver()
1026 struct ci13xxx *udc = container_of(dev, struct ci13xxx, gadget.dev); in show_inters() local
1037 spin_lock_irqsave(udc->lock, flags); in show_inters()
[all …]
Ds3c2410_udc.c276 static void s3c2410_udc_nuke(struct s3c2410_udc *udc, in s3c2410_udc_nuke() argument
1318 struct s3c2410_udc *udc; in s3c2410_udc_dequeue() local
1331 udc = to_s3c2410_udc(ep->gadget); in s3c2410_udc_dequeue()
1456 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_set_selfpowered() local
1461 udc->devstatus |= (1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1463 udc->devstatus &= ~(1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1471 static int s3c2410_udc_set_pullup(struct s3c2410_udc *udc, int is_on) in s3c2410_udc_set_pullup() argument
1479 s3c2410_udc_enable(udc); in s3c2410_udc_set_pullup()
1481 if (udc->gadget.speed != USB_SPEED_UNKNOWN) { in s3c2410_udc_set_pullup()
1482 if (udc->driver && udc->driver->disconnect) in s3c2410_udc_set_pullup()
[all …]
Damd5536udc.c69 static int udc_probe(struct udc *dev);
70 static void udc_basic_init(struct udc *dev);
71 static void udc_setup_endpoints(struct udc *dev);
72 static void udc_soft_reset(struct udc *dev);
75 static int udc_free_dma_chain(struct udc *dev, struct udc_request *req);
78 static int udc_remote_wakeup(struct udc *dev);
93 static struct udc *udc; variable
137 (unsigned long) &udc);
179 static void print_regs(struct udc *dev) in print_regs()
212 static int udc_mask_unused_interrupts(struct udc *dev) in udc_mask_unused_interrupts()
[all …]
Dpxa25x_udc.c930 static int pullup(struct pxa25x_udc *udc) in pullup() argument
932 int is_active = udc->vbus && udc->pullup && !udc->suspended; in pullup()
935 if (!udc->active) { in pullup()
936 udc->active = 1; in pullup()
938 clk_enable(udc->clk); in pullup()
939 udc_enable(udc); in pullup()
942 if (udc->active) { in pullup()
943 if (udc->gadget.speed != USB_SPEED_UNKNOWN) { in pullup()
944 DMSG("disconnect %s\n", udc->driver in pullup()
945 ? udc->driver->driver.name in pullup()
[all …]
Dci13xxx_msm.c16 #define MSM_USB_BASE (udc->regs)
23 static void ci13xxx_msm_notify_event(struct ci13xxx *udc, unsigned event) in ci13xxx_msm_notify_event() argument
25 struct device *dev = udc->gadget.dev.parent; in ci13xxx_msm_notify_event()
40 val = usb_phy_io_read(udc->transceiver, ULPI_FUNC_CTRL); in ci13xxx_msm_notify_event()
43 usb_phy_io_write(udc->transceiver, val, ULPI_FUNC_CTRL); in ci13xxx_msm_notify_event()
Dfsl_usb2_udc.h451 struct fsl_udc *udc; member
563 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
566 #define get_ep_by_pipe(udc, pipe) ((pipe == 1)? &udc->eps[0]: \ argument
567 &udc->eps[pipe])
578 return &ep->udc->ep_qh[(ep->udc->ep0_dir == in get_qh_by_ep()
Datmel_usba_udc.h194 #define usba_readl(udc, reg) \ argument
195 __raw_readl((udc)->regs + USBA_##reg)
196 #define usba_writel(udc, reg, value) \ argument
197 __raw_writel((value), (udc)->regs + USBA_##reg)
280 struct usba_udc *udc; member
Damd5536udc.h511 struct udc *dev;
524 struct udc { struct
609 #define DBG(udc , args...) dev_dbg(&(udc)->pdev->dev, args) argument
614 #define VDBG(udc , args...) do {} while (0) argument
DMakefile6 obj-$(CONFIG_USB_GADGET) += udc-core.o
22 obj-$(CONFIG_USB_M66592) += m66592-udc.o
23 obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o
Dpxa27x_udc.h194 #define udc_writel(udc, reg, value) \ argument
195 __raw_writel((value), (udc)->regs + (reg))
398 #define EP0_STNAME(udc) ep0_state_name[(udc)->ep0state] argument
Dfsl_qe_udc.h158 #define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
268 struct qe_udc *udc; member
Dat91_udc.h97 struct at91_udc *udc; member
Domap_udc.h156 struct omap_udc *udc; member
Dci13xxx_udc.h114 void (*notify_event) (struct ci13xxx *udc, unsigned event);
Dmv_udc.h232 struct mv_udc *udc; member
DKconfig66 debugging information in files such as /proc/driver/udc
297 boolean "S3C2410 udc debug messages"