Home
last modified time | relevance | path

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

12

/linux-2.6.39/drivers/usb/gadget/
Dmv_udc_core.c34 ((ep)->udc->ep0_dir) : ((ep)->direction))
66 static void ep0_reset(struct mv_udc *udc) in ep0_reset() argument
74 ep = &udc->eps[i]; in ep0_reset()
75 ep->udc = udc; in ep0_reset()
78 ep->dqh = &udc->ep_dqh[i]; in ep0_reset()
85 epctrlx = readl(&udc->op_regs->epctrlx[0]); in ep0_reset()
97 writel(epctrlx, &udc->op_regs->epctrlx[0]); in ep0_reset()
102 static void ep0_stall(struct mv_udc *udc) in ep0_stall() argument
107 epctrlx = readl(&udc->op_regs->epctrlx[0]); in ep0_stall()
109 writel(epctrlx, &udc->op_regs->epctrlx[0]); in ep0_stall()
[all …]
Dat91_udc.c81 #define at91_udp_read(udc, reg) \ argument
82 __raw_readl((udc)->udp_baseaddr + (reg))
83 #define at91_udp_write(udc, reg, val) \ argument
84 __raw_writel((val), (udc)->udp_baseaddr + (reg))
106 struct at91_udc *udc = ep->udc; in proc_ep_show() local
108 spin_lock_irqsave(&udc->lock, flags); in proc_ep_show()
152 spin_unlock_irqrestore(&udc->lock, flags); in proc_ep_show()
176 struct at91_udc *udc = s->private; in proc_udc_show() local
183 udc->vbus ? "present" : "off", in proc_udc_show()
184 udc->enabled in proc_udc_show()
[all …]
Dpxa27x_udc.c102 struct pxa_udc *udc = s->private; in state_dbg_show() local
107 if (!udc->driver) in state_dbg_show()
114 udc->driver ? udc->driver->driver.name : "(none)"); in state_dbg_show()
116 tmp = udc_readl(udc, UDCCR); in state_dbg_show()
135 udc_readl(udc, UDCICR0), udc_readl(udc, UDCICR1)); in state_dbg_show()
137 udc_readl(udc, UDCISR0), udc_readl(udc, UDCISR1)); in state_dbg_show()
138 pos += seq_printf(s, "udcfnr=%d\n", udc_readl(udc, UDCFNR)); in state_dbg_show()
141 udc->stats.irqs_reset, udc->stats.irqs_suspend, in state_dbg_show()
142 udc->stats.irqs_resume, udc->stats.irqs_reconfig); in state_dbg_show()
151 struct pxa_udc *udc = s->private; in queues_dbg_show() local
[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 …]
Dfsl_udc_core.c97 struct fsl_udc *udc = NULL; in done() local
102 udc = (struct fsl_udc *)ep->udc; in done()
119 dma_pool_free(udc->td_pool, curr_td, curr_td->td_dma); in done()
123 dma_unmap_single(ep->udc->gadget.dev.parent, in done()
131 dma_sync_single_for_cpu(ep->udc->gadget.dev.parent, in done()
144 spin_unlock(&ep->udc->lock); in done()
150 spin_lock(&ep->udc->lock); in done()
178 static int dr_controller_setup(struct fsl_udc *udc) in dr_controller_setup() argument
190 switch (udc->phy_mode) { in dr_controller_setup()
237 tmp = udc->ep_qh_dma; in dr_controller_setup()
[all …]
Domap_udc.c160 struct omap_udc *udc; in omap_ep_enable() local
205 udc = ep->udc; in omap_ep_enable()
206 if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN) { in omap_ep_enable()
211 spin_lock_irqsave(&udc->lock, flags); in omap_ep_enable()
223 omap_writew(udc->clr_halt, UDC_CTRL); in omap_ep_enable()
228 list_add(&ep->iso, &udc->iso); in omap_ep_enable()
243 spin_unlock_irqrestore(&udc->lock, flags); in omap_ep_enable()
261 spin_lock_irqsave(&ep->udc->lock, flags); in omap_ep_disable()
270 spin_unlock_irqrestore(&ep->udc->lock, flags); in omap_ep_disable()
316 dma_unmap_single(ep->udc->gadget.dev.parent, in done()
[all …]
Dci13xxx_udc.c298 static int hw_device_reset(struct ci13xxx *udc) in hw_device_reset() argument
309 if (udc->udc_driver->notify_event) in hw_device_reset()
310 udc->udc_driver->notify_event(udc, in hw_device_reset()
313 if (udc->udc_driver->flags && CI13XXX_DISABLE_STREAMING) in hw_device_reset()
742 struct ci13xxx *udc = container_of(dev, struct ci13xxx, gadget.dev); in show_device() local
743 struct usb_gadget *gadget = &udc->gadget; in show_device()
781 struct ci13xxx *udc = container_of(dev, struct ci13xxx, gadget.dev); in show_driver() local
782 struct usb_gadget_driver *driver = udc->driver; in show_driver()
1008 struct ci13xxx *udc = container_of(dev, struct ci13xxx, gadget.dev); in show_inters() local
1019 spin_lock_irqsave(udc->lock, flags); in show_inters()
[all …]
Ds3c2410_udc.c286 static void s3c2410_udc_nuke(struct s3c2410_udc *udc, in s3c2410_udc_nuke() argument
1327 struct s3c2410_udc *udc; in s3c2410_udc_dequeue() local
1340 udc = to_s3c2410_udc(ep->gadget); in s3c2410_udc_dequeue()
1465 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_set_selfpowered() local
1470 udc->devstatus |= (1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1472 udc->devstatus &= ~(1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1480 static int s3c2410_udc_set_pullup(struct s3c2410_udc *udc, int is_on) in s3c2410_udc_set_pullup() argument
1488 s3c2410_udc_enable(udc); in s3c2410_udc_set_pullup()
1490 if (udc->gadget.speed != USB_SPEED_UNKNOWN) { in s3c2410_udc_set_pullup()
1491 if (udc->driver && udc->driver->disconnect) in s3c2410_udc_set_pullup()
[all …]
Dci13xxx_msm.c27 #define MSM_USB_BASE (udc->regs)
34 static void ci13xxx_msm_notify_event(struct ci13xxx *udc, unsigned event) in ci13xxx_msm_notify_event() argument
36 struct device *dev = udc->gadget.dev.parent; in ci13xxx_msm_notify_event()
51 val = otg_io_read(udc->transceiver, ULPI_FUNC_CTRL); in ci13xxx_msm_notify_event()
54 otg_io_write(udc->transceiver, val, ULPI_FUNC_CTRL); in ci13xxx_msm_notify_event()
Dpxa25x_udc.c941 static int pullup(struct pxa25x_udc *udc) in pullup() argument
943 int is_active = udc->vbus && udc->pullup && !udc->suspended; in pullup()
946 if (!udc->active) { in pullup()
947 udc->active = 1; in pullup()
949 clk_enable(udc->clk); in pullup()
950 udc_enable(udc); in pullup()
953 if (udc->active) { in pullup()
954 if (udc->gadget.speed != USB_SPEED_UNKNOWN) { in pullup()
955 DMSG("disconnect %s\n", udc->driver in pullup()
956 ? udc->driver->driver.name in pullup()
[all …]
Damd5536udc.c78 static int udc_probe(struct udc *dev);
79 static void udc_basic_init(struct udc *dev);
80 static void udc_setup_endpoints(struct udc *dev);
81 static void udc_soft_reset(struct udc *dev);
84 static int udc_free_dma_chain(struct udc *dev, struct udc_request *req);
87 static int udc_remote_wakeup(struct udc *dev);
102 static struct udc *udc; variable
146 (unsigned long) &udc);
188 static void print_regs(struct udc *dev) in print_regs()
222 static int udc_mask_unused_interrupts(struct udc *dev) in udc_mask_unused_interrupts()
[all …]
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.h520 struct udc *dev;
533 struct udc { struct
618 #define DBG(udc , args...) dev_dbg(&(udc)->pdev->dev, args) argument
623 #define VDBG(udc , args...) do {} while (0) argument
Dfsl_usb2_udc.h449 struct fsl_udc *udc; member
557 #define ep_is_in(EP) ( (ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
560 #define get_ep_by_pipe(udc, pipe) ((pipe == 1)? &udc->eps[0]: \ argument
561 &udc->eps[pipe])
DMakefile20 obj-$(CONFIG_USB_M66592) += m66592-udc.o
21 obj-$(CONFIG_USB_R8A66597) += r8a66597-udc.o
Dpxa27x_udc.h203 #define udc_writel(udc, reg, value) \ argument
204 __raw_writel((value), (udc)->regs + (reg))
407 #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.h107 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.h210 struct mv_udc *udc; member
DKconfig65 debugging information in files such as /proc/driver/udc
338 boolean "S3C2410 udc debug messages"
/linux-2.6.39/arch/arm/plat-mxc/devices/
DMakefile3 obj-$(CONFIG_IMX_HAVE_PLATFORM_FSL_USB2_UDC) += platform-fsl-usb2-udc.o
/linux-2.6.39/net/bridge/netfilter/
Debtables.c565 unsigned int *n, struct ebt_cl_stack *udc) in ebt_get_udc_positions() argument
580 udc[*n].cs.chaininfo = (struct ebt_entries *)e; in ebt_get_udc_positions()
582 udc[*n].cs.n = 0; in ebt_get_udc_positions()
583 udc[*n].hookmask = 0; in ebt_get_udc_positions()

12