Searched refs:musb (Results 1 - 25 of 25) sorted by relevance

/drivers/usb/musb/
H A Domap2430.c43 struct platform_device *musb; member in struct:omap2430_glue
45 #define glue_to_musb(g) platform_get_drvdata(g->musb)
51 struct musb *musb = (void *)_musb; local
56 spin_lock_irqsave(&musb->lock, flags);
58 switch (musb->xceiv->state) {
61 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
63 musb->xceiv->state = OTG_STATE_B_IDLE;
64 MUSB_DEV_MODE(musb);
66 musb
99 omap2430_musb_try_idle(struct musb *musb, unsigned long timeout) argument
133 omap2430_musb_set_vbus(struct musb *musb, int is_on) argument
197 omap2430_musb_set_mode(struct musb *musb, u8 musb_mode) argument
207 omap2430_low_level_exit(struct musb *musb) argument
217 omap2430_low_level_init(struct musb *musb) argument
229 struct musb *musb = container_of(nb, struct musb, nb); local
239 struct musb *musb = container_of(data_notifier_work, struct musb, otg_notifier_work); local
283 omap2430_musb_init(struct musb *musb) argument
344 omap2430_musb_enable(struct musb *musb) argument
382 omap2430_musb_disable(struct musb *musb) argument
388 omap2430_musb_exit(struct musb *musb) argument
417 struct platform_device *musb; local
493 struct musb *musb = glue_to_musb(glue); local
509 struct musb *musb = glue_to_musb(glue); local
[all...]
H A Dmusb_virthub.c48 static void musb_port_suspend(struct musb *musb, bool do_suspend) argument
50 struct usb_otg *otg = musb->xceiv->otg;
52 void __iomem *mbase = musb->mregs;
54 if (!is_host_active(musb))
78 dev_dbg(musb->controller, "Root port suspended, power %02x\n", power);
80 musb->port1_status |= USB_PORT_STAT_SUSPEND;
81 switch (musb->xceiv->state) {
83 musb->xceiv->state = OTG_STATE_A_SUSPEND;
84 musb
115 musb_port_reset(struct musb *musb, bool do_reset) argument
181 musb_root_disconnect(struct musb *musb) argument
219 struct musb *musb = hcd_to_musb(hcd); local
238 struct musb *musb = hcd_to_musb(hcd); local
[all...]
H A Dmusb_debug.h46 int musb_init_debugfs(struct musb *musb);
47 void musb_exit_debugfs(struct musb *musb);
49 static inline int musb_init_debugfs(struct musb *musb) argument
53 static inline void musb_exit_debugfs(struct musb *musb) argument
H A Dmusb_core.h48 #include <linux/usb/musb.h>
50 struct musb;
54 /* Helper defines for struct musb->hwvers */
74 #define is_peripheral_enabled(musb) ((musb)->board_mode != MUSB_HOST)
75 #define is_host_enabled(musb) ((musb)->board_mode != MUSB_PERIPHERAL)
76 #define is_otg_enabled(musb) ((musb)->board_mode == MUSB_OTG)
101 extern irqreturn_t musb_g_ep0_irq(struct musb *);
240 struct musb *musb; member in struct:musb_hw_ep
321 struct musb { struct
467 musb_read_fifosize(struct musb *musb, struct musb_hw_ep *hw_ep, u8 epnum) argument
485 musb_configure_ep0(struct musb *musb) argument
494 musb_read_fifosize(struct musb *musb, struct musb_hw_ep *hw_ep, u8 epnum) argument
524 musb_configure_ep0(struct musb *musb) argument
549 musb_platform_set_vbus(struct musb *musb, int is_on) argument
555 musb_platform_enable(struct musb *musb) argument
561 musb_platform_disable(struct musb *musb) argument
567 musb_platform_set_mode(struct musb *musb, u8 mode) argument
575 musb_platform_try_idle(struct musb *musb, unsigned long timeout) argument
582 musb_platform_get_vbus_status(struct musb *musb) argument
590 musb_platform_init(struct musb *musb) argument
598 musb_platform_exit(struct musb *musb) argument
[all...]
H A Ddavinci.c56 struct platform_device *musb; member in struct:davinci_glue
92 static void davinci_musb_enable(struct musb *musb) argument
97 tmp = (musb->epmask & DAVINCI_USB_TX_ENDPTS_MASK)
99 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_MASK_SET_REG, tmp);
101 tmp = (musb->epmask & (0xfffe & DAVINCI_USB_RX_ENDPTS_MASK))
103 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_MASK_SET_REG, tmp);
108 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_MASK_SET_REG, tmp);
117 if (is_otg_enabled(musb))
118 musb_writel(musb
125 davinci_musb_disable(struct musb *musb) argument
171 davinci_musb_source_power(struct musb *musb, int is_on, int immediate) argument
194 davinci_musb_set_vbus(struct musb *musb, int is_on) argument
207 struct musb *musb = (void *)_musb; local
268 struct musb *musb = __hci; local
376 davinci_musb_set_mode(struct musb *musb, u8 mode) argument
382 davinci_musb_init(struct musb *musb) argument
453 davinci_musb_exit(struct musb *musb) argument
520 struct platform_device *musb; local
[all...]
H A Dda8xx.c86 struct platform_device *musb; member in struct:da8xx_glue
145 static void da8xx_musb_enable(struct musb *musb) argument
147 void __iomem *reg_base = musb->ctrl_base;
151 mask = ((musb->epmask & DA8XX_USB_TX_EP_MASK) << DA8XX_INTR_TX_SHIFT) |
152 ((musb->epmask & DA8XX_USB_RX_EP_MASK) << DA8XX_INTR_RX_SHIFT) |
157 if (is_otg_enabled(musb))
165 static void da8xx_musb_disable(struct musb *musb) argument
167 void __iomem *reg_base = musb
178 da8xx_musb_set_vbus(struct musb *musb, int is_on) argument
189 struct musb *musb = (void *)_musb; local
261 da8xx_musb_try_idle(struct musb *musb, unsigned long timeout) argument
295 struct musb *musb = hci; local
392 da8xx_musb_set_mode(struct musb *musb, u8 musb_mode) argument
415 da8xx_musb_init(struct musb *musb) argument
454 da8xx_musb_exit(struct musb *musb) argument
485 struct platform_device *musb; local
[all...]
H A Dtusb6010.c31 struct platform_device *musb; member in struct:tusb6010_glue
34 static void tusb_musb_set_vbus(struct musb *musb, int is_on);
43 u8 tusb_get_revision(struct musb *musb) argument
45 void __iomem *tbase = musb->ctrl_base;
61 static int tusb_print_revision(struct musb *musb) argument
63 void __iomem *tbase = musb->ctrl_base;
66 rev = tusb_get_revision(musb);
96 tusb_wbus_quirk(struct musb *musb, int enabled) argument
177 struct musb *musb = hw_ep->musb; local
227 struct musb *musb = hw_ep->musb; local
282 struct musb *musb = the_musb; local
317 tusb_set_clock_source(struct musb *musb, unsigned mode) argument
344 tusb_allow_idle(struct musb *musb, u32 wakeup_enables) argument
381 tusb_musb_vbus_status(struct musb *musb) argument
412 struct musb *musb = (void *)_musb; local
467 tusb_musb_try_idle(struct musb *musb, unsigned long timeout) argument
508 tusb_musb_set_vbus(struct musb *musb, int is_on) argument
589 tusb_musb_set_mode(struct musb *musb, u8 musb_mode) argument
644 tusb_otg_ints(struct musb *musb, u32 int_src, void __iomem *tbase) argument
791 struct musb *musb = __hci; local
908 tusb_musb_enable(struct musb *musb) argument
952 tusb_musb_disable(struct musb *musb) argument
977 tusb_setup_cpu_interface(struct musb *musb) argument
1004 tusb_musb_start(struct musb *musb) argument
1073 tusb_musb_init(struct musb *musb) argument
1139 tusb_musb_exit(struct musb *musb) argument
1173 struct platform_device *musb; local
[all...]
H A Dmusb_core.c115 #define MUSB_DRIVER_NAME "musb-hdrc"
126 static inline struct musb *dev_to_musb(struct device *dev)
234 struct musb *musb = hw_ep->musb; local
239 dev_dbg(musb->controller, "%cX ep%d fifo %p count %d buf %p\n",
276 struct musb *musb = hw_ep->musb; local
279 dev_dbg(musb
336 musb_load_testpacket(struct musb *musb) argument
353 struct musb *musb = (struct musb *)data; local
382 musb_hnp_stop(struct musb *musb) argument
431 musb_stage0_irq(struct musb *musb, u8 int_usb, u8 devctl, u8 power) argument
903 musb_start(struct musb *musb) argument
952 musb_generic_disable(struct musb *musb) argument
979 musb_stop(struct musb *musb) argument
998 struct musb *musb = dev_to_musb(&pdev->dev); local
1162 fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep, const struct musb_fifo_cfg *cfg, u16 offset) argument
1236 ep_config_from_table(struct musb *musb) argument
1327 ep_config_from_hw(struct musb *musb) argument
1374 musb_core_init(u16 musb_type, struct musb *musb) argument
1506 struct musb *musb = __hci; local
1533 musb_interrupt(struct musb *musb) argument
1616 musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit) argument
1667 struct musb *musb = dev_to_musb(dev); local
1682 struct musb *musb = dev_to_musb(dev); local
1705 struct musb *musb = dev_to_musb(dev); local
1728 struct musb *musb = dev_to_musb(dev); local
1753 struct musb *musb = dev_to_musb(dev); local
1785 struct musb *musb = container_of(data, struct musb, irq_work); local
1802 struct musb *musb; local
1840 musb_free(struct musb *musb) argument
1878 struct musb *musb; local
2133 struct musb *musb = dev_to_musb(&pdev->dev); local
2155 musb_save_context(struct musb *musb) argument
2231 musb_restore_context(struct musb *musb) argument
2314 struct musb *musb = dev_to_musb(dev); local
2344 struct musb *musb = dev_to_musb(dev); local
2353 struct musb *musb = dev_to_musb(dev); local
[all...]
H A Dblackfin.c30 struct platform_device *musb; member in struct:bfin_glue
32 #define glue_to_musb(g) platform_get_drvdata(g->musb)
39 struct musb *musb = hw_ep->musb; local
48 dev_dbg(musb->controller, "TX ep%d fifo %p count %d buf %p, epio %p\n",
103 struct musb *musb = hw_ep->musb; local
160 dev_dbg(musb
170 struct musb *musb = __hci; local
200 struct musb *musb = (void *)_musb; local
295 bfin_musb_enable(struct musb *musb) argument
303 bfin_musb_disable(struct musb *musb) argument
307 bfin_musb_set_vbus(struct musb *musb, int is_on) argument
325 bfin_musb_try_idle(struct musb *musb, unsigned long timeout) argument
331 bfin_musb_vbus_status(struct musb *musb) argument
336 bfin_musb_set_mode(struct musb *musb, u8 musb_mode) argument
362 bfin_musb_reg_init(struct musb *musb) argument
400 bfin_musb_init(struct musb *musb) argument
439 bfin_musb_exit(struct musb *musb) argument
469 struct platform_device *musb; local
543 struct musb *musb = glue_to_musb(glue); local
560 struct musb *musb = glue_to_musb(glue); local
[all...]
H A Dmusb_gadget.c99 struct musb *musb, struct musb_ep *musb_ep)
102 struct dma_controller *dma = musb->dma_controller;
122 musb->controller,
130 dma_sync_single_for_device(musb->controller,
142 struct musb *musb)
148 dev_vdbg(musb->controller,
153 dma_unmap_single(musb->controller,
161 dma_sync_single_for_cpu(musb
98 map_dma_buffer(struct musb_request *request, struct musb *musb, struct musb_ep *musb_ep) argument
141 unmap_dma_buffer(struct musb_request *request, struct musb *musb) argument
186 struct musb *musb; variable in typeref:struct:musb
221 struct musb *musb = ep->musb; local
270 max_ep_writesize(struct musb *musb, struct musb_ep *ep) argument
320 txstate(struct musb *musb, struct musb_request *req) argument
485 musb_g_tx(struct musb *musb, u8 epnum) argument
634 rxstate(struct musb *musb, struct musb_request *req) argument
897 musb_g_rx(struct musb *musb, u8 epnum) argument
1026 struct musb *musb; local
1207 struct musb *musb; local
1256 struct musb *musb = musb_ep->musb; local
1293 musb_ep_restart(struct musb *musb, struct musb_request *req) argument
1311 struct musb *musb; local
1368 struct musb *musb = musb_ep->musb; local
1422 struct musb *musb = musb_ep->musb; local
1522 struct musb *musb = musb_ep->musb; local
1541 struct musb *musb = musb_ep->musb; local
1600 struct musb *musb = gadget_to_musb(gadget); local
1607 struct musb *musb = gadget_to_musb(gadget); local
1682 struct musb *musb = gadget_to_musb(gadget); local
1688 musb_pullup(struct musb *musb, int is_on) argument
1721 struct musb *musb = gadget_to_musb(gadget); local
1730 struct musb *musb = gadget_to_musb(gadget); local
1785 init_peripheral_ep(struct musb *musb, struct musb_ep *ep, u8 epnum, int is_in) argument
1821 musb_g_init_endpoints(struct musb *musb) argument
1854 musb_gadget_setup(struct musb *musb) argument
1898 musb_gadget_cleanup(struct musb *musb) argument
1919 struct musb *musb = gadget_to_musb(g); local
1985 stop_activity(struct musb *musb, struct usb_gadget_driver *driver) argument
2032 struct musb *musb = gadget_to_musb(g); local
2079 musb_g_resume(struct musb *musb) argument
2101 musb_g_suspend(struct musb *musb) argument
2131 musb_g_wakeup(struct musb *musb) argument
2137 musb_g_disconnect(struct musb *musb) argument
2200 musb_g_disconnect(musb); variable
2215 MUSB_DEV_MODE(musb); variable
[all...]
H A Dmusb_gadget_ep0.c45 /* ep0 is always musb->endpoints[0].ep_in */
46 #define next_ep0_request(musb) next_in_request(&(musb)->endpoints[0])
76 struct musb *musb,
79 void __iomem *mbase = musb->mregs;
88 result[0] = musb->is_self_powered << USB_DEVICE_SELF_POWERED;
89 result[0] |= musb->may_wakeup << USB_DEVICE_REMOTE_WAKEUP;
90 if (musb->g.is_otg) {
91 result[0] |= musb
75 service_tx_status_request( struct musb *musb, const struct usb_ctrlrequest *ctrlrequest) argument
172 service_in_request(struct musb *musb, const struct usb_ctrlrequest *ctrlrequest) argument
196 musb_g_ep0_giveback(struct musb *musb, struct usb_request *req) argument
204 musb_try_b_hnp_enable(struct musb *musb) argument
396 musb_try_b_hnp_enable(musb); variable
485 ep0_rxstate(struct musb *musb) argument
540 ep0_txstate(struct musb *musb) argument
598 musb_read_setup(struct musb *musb, struct usb_ctrlrequest *req) argument
664 musb_g_ep0_irq(struct musb *musb) argument
932 struct musb *musb; local
1018 struct musb *musb; local
[all...]
H A Dux500.c33 struct platform_device *musb; member in struct:ux500_glue
36 #define glue_to_musb(g) platform_get_drvdata(g->musb)
38 static int ux500_musb_init(struct musb *musb) argument
40 musb->xceiv = usb_get_transceiver();
41 if (!musb->xceiv) {
49 static int ux500_musb_exit(struct musb *musb) argument
51 usb_put_transceiver(musb->xceiv);
64 struct platform_device *musb; local
161 struct musb *musb = glue_to_musb(glue); local
172 struct musb *musb = glue_to_musb(glue); local
[all...]
H A Dmusb_gadget.h50 struct musb *musb; member in struct:musb_request
74 struct musb *musb; member in struct:musb_ep
109 extern void musb_g_tx(struct musb *musb, u8 epnum);
110 extern void musb_g_rx(struct musb *musb, u8 epnum);
114 extern int musb_gadget_setup(struct musb *);
115 extern void musb_gadget_cleanup(struct musb *);
[all...]
H A Dam35x.c87 struct platform_device *musb; member in struct:am35x_glue
91 #define glue_to_musb(g) platform_get_drvdata(g->musb)
96 static void am35x_musb_enable(struct musb *musb) argument
98 void __iomem *reg_base = musb->ctrl_base;
102 epmask = ((musb->epmask & AM35X_TX_EP_MASK) << AM35X_INTR_TX_SHIFT) |
103 ((musb->epmask & AM35X_RX_EP_MASK) << AM35X_INTR_RX_SHIFT);
109 if (is_otg_enabled(musb))
117 static void am35x_musb_disable(struct musb *musb) argument
130 am35x_musb_set_vbus(struct musb *musb, int is_on) argument
141 struct musb *musb = (void *)_musb; local
190 am35x_musb_try_idle(struct musb *musb, unsigned long timeout) argument
224 struct musb *musb = hci; local
336 am35x_musb_set_mode(struct musb *musb, u8 musb_mode) argument
351 am35x_musb_init(struct musb *musb) argument
396 am35x_musb_exit(struct musb *musb) argument
463 struct platform_device *musb; local
[all...]
H A Dmusb_host.h38 static inline struct usb_hcd *musb_to_hcd(struct musb *musb) argument
40 return container_of((void *) musb, struct usb_hcd, hcd_priv);
43 static inline struct musb *hcd_to_musb(struct usb_hcd *hcd)
45 return (struct musb *) (hcd->hcd_priv);
85 extern void musb_root_disconnect(struct musb *musb);
H A Dmusb_host.c100 static void musb_ep_program(struct musb *musb, u8 epnum,
109 struct musb *musb = ep->musb; local
118 dev_dbg(musb->controller, "Host TX FIFONOTEMPTY csr: %02x\n", csr);
156 * musb must be locked.
206 musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) argument
210 void __iomem *mbase = musb
347 musb_advance_schedule(struct musb *musb, struct urb *urb, struct musb_hw_ep *hw_ep, int is_in) argument
445 musb_host_packet_rx(struct musb *musb, struct urb *urb, u8 epnum, u8 iso_err) argument
546 musb_rx_reinit(struct musb *musb, struct musb_qh *qh, struct musb_hw_ep *ep) argument
674 musb_ep_program(struct musb *musb, u8 epnum, struct urb *urb, int is_out, u8 *buf, u32 offset, u32 len) argument
880 musb_h_ep0_continue(struct musb *musb, u16 len, struct urb *urb) argument
956 musb_h_ep0_irq(struct musb *musb) argument
1094 musb_host_tx(struct musb *musb, u8 epnum) argument
1376 musb_bulk_rx_nak_timeout(struct musb *musb, struct musb_hw_ep *ep) argument
1421 musb_host_rx(struct musb *musb, u8 epnum) argument
1768 musb_schedule( struct musb *musb, struct musb_qh *qh, int is_in) argument
1890 struct musb *musb = hcd_to_musb(hcd); local
2076 struct musb *musb = ep->musb; local
2133 struct musb *musb = hcd_to_musb(hcd); local
2195 struct musb *musb = hcd_to_musb(hcd); local
2245 struct musb *musb = hcd_to_musb(hcd); local
2252 struct musb *musb = hcd_to_musb(hcd); local
2270 struct musb *musb = hcd_to_musb(hcd); local
[all...]
H A Dtusb6010_omap.c30 struct musb *musb; member in struct:tusb_omap_dma_ch
54 struct musb *musb; member in struct:tusb_omap_dma
69 /* dev_dbg(musb->controller, "ep%i ch: %i\n", chdat->epnum, chdat->ch); */
80 /* dev_dbg(musb->controller, "ep%i ch: %i\n", chdat->epnum, chdat->ch); */
93 dev_dbg(chdat->musb->controller, "ep%i dmareq0 is busy for ep%i\n",
129 struct musb *musb = chdat->musb; local
230 struct musb *musb = chdat->musb; local
510 struct musb *musb; local
611 struct musb *musb = chdat->musb; local
666 dma_controller_create(struct musb *musb, void __iomem *base) argument
[all...]
H A Dmusbhsdma.c52 struct musb *musb = controller->private_data; local
57 dev_err(musb->controller,
125 struct musb *musb = controller->private_data; local
130 dev_dbg(musb->controller, "%p, pkt_sz %d, addr 0x%x, len %d, mode %d\n",
163 struct musb *musb = controller->private_data; local
165 dev_dbg(musb->controller, "ep%d-%s pkt_sz %d, dma_addr 0x%x length %d, mode %d\n",
174 if (musb
252 struct musb *musb = controller->private_data; local
384 dma_controller_create(struct musb *musb, void __iomem *base) argument
[all...]
H A Dmusb_debugfs.c110 struct musb *musb = s->private; local
119 musb_readb(musb->mregs, musb_regmap[i].offset));
123 musb_readw(musb->mregs, musb_regmap[i].offset));
127 musb_readl(musb->mregs, musb_regmap[i].offset));
142 struct musb *musb = s->private; local
145 test = musb_readb(musb->mregs, MUSB_TESTMODE);
190 struct musb *musb local
238 musb_init_debugfs(struct musb *musb) argument
275 musb_exit_debugfs(struct musb *musb) argument
[all...]
H A Dux500_dma.c2 * drivers/usb/musb/ux500_dma.c
64 struct musb *musb = hw_ep->musb; local
67 dev_dbg(musb->controller, "DMA rx transfer done on hw_ep=%d\n",
70 spin_lock_irqsave(&musb->lock, flags);
73 musb_dma_completion(musb, hw_ep->epnum,
75 spin_unlock_irqrestore(&musb->lock, flags);
93 struct musb *musb local
143 struct musb *musb = controller->private_data; local
179 struct musb *musb = ux500_channel->controller->private_data; local
227 struct musb *musb = controller->private_data; local
293 struct musb *musb = controller->private_data; local
368 dma_controller_create(struct musb *musb, void __iomem *base) argument
[all...]
H A Dcppi_dma.c229 struct musb *musb; local
232 musb = controller->musb;
241 dev_dbg(musb->controller, "Tearing down RX and TX Channels\n");
294 struct musb *musb; local
298 musb = controller->musb;
308 dev_dbg(musb
575 cppi_next_tx_segment(struct musb *musb, struct cppi_channel *tx) argument
775 cppi_next_rx_segment(struct musb *musb, struct cppi_channel *rx, int onepacket) argument
973 struct musb *musb; local
1032 struct musb *musb = cppi->musb; local
1163 struct musb *musb = dev_id; local
1319 dma_controller_create(struct musb *musb, void __iomem *mregs) argument
[all...]
H A Dmusb_dma.h178 extern void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit);
182 dma_controller_create(struct musb *, void __iomem *);
H A Dcppi_dma.h117 struct musb *musb; member in struct:cppi
H A Dtusb6010.h15 extern u8 tusb_get_revision(struct musb *musb);
/drivers/usb/
H A DMakefile54 obj-$(CONFIG_USB_MUSB_HDRC) += musb/

Completed in 300 milliseconds