Searched refs:musb (Results 1 - 25 of 37) sorted by last modified time

12

/linux-master/arch/arm/mach-omap2/
H A Dboard-n8x0.c21 #include <linux/usb/musb.h>
80 .dev_id = "musb-tusb",
H A Dusb-tusb6010.c17 #include <linux/usb/musb.h>
140 .name = "musb-tusb",
H A Domap_phy_internal.c18 #include <linux/usb/musb.h>
/linux-master/drivers/usb/musb/
H A Dmusb_gadget.c33 struct musb *musb, struct musb_ep *musb_ep)
36 struct dma_controller *dma = musb->dma_controller;
59 musb->controller,
65 ret = dma_mapping_error(musb->controller, dma_addr);
72 dma_sync_single_for_device(musb->controller,
84 struct musb *musb)
92 dev_vdbg(musb->controller,
97 dma_unmap_single(musb
32 map_dma_buffer(struct musb_request *request, struct musb *musb, struct musb_ep *musb_ep) argument
83 unmap_dma_buffer(struct musb_request *request, struct musb *musb) argument
130 struct musb *musb; variable in typeref:struct:musb
160 struct musb *musb = ep->musb; local
208 max_ep_writesize(struct musb *musb, struct musb_ep *ep) argument
223 txstate(struct musb *musb, struct musb_request *req) argument
406 musb_g_tx(struct musb *musb, u8 epnum) argument
518 rxstate(struct musb *musb, struct musb_request *req) argument
790 musb_g_rx(struct musb *musb, u8 epnum) argument
915 struct musb *musb; local
1087 struct musb *musb; local
1171 musb_ep_restart(struct musb *musb, struct musb_request *req) argument
1181 musb_ep_restart_resume_work(struct musb *musb, void *data) argument
1195 struct musb *musb; local
1275 struct musb *musb = musb_ep->musb; local
1332 struct musb *musb = musb_ep->musb; local
1433 struct musb *musb = musb_ep->musb; local
1452 struct musb *musb = musb_ep->musb; local
1510 struct musb *musb = gadget_to_musb(gadget); local
1517 struct musb *musb = gadget_to_musb(gadget); local
1598 musb_pullup(struct musb *musb, int is_on) argument
1631 struct musb *musb = gadget_to_musb(gadget); local
1638 struct musb *musb; local
1652 struct musb *musb = gadget_to_musb(gadget); local
1695 init_peripheral_ep(struct musb *musb, struct musb_ep *ep, u8 epnum, int is_in) argument
1743 musb_g_init_endpoints(struct musb *musb) argument
1772 musb_gadget_setup(struct musb *musb) argument
1809 musb_gadget_cleanup(struct musb *musb) argument
1832 struct musb *musb = gadget_to_musb(g); local
1883 struct musb *musb = gadget_to_musb(g); local
1929 musb_g_resume(struct musb *musb) argument
1951 musb_g_suspend(struct musb *musb) argument
1981 musb_g_wakeup(struct musb *musb) argument
1987 musb_g_disconnect(struct musb *musb) argument
2067 MUSB_DEV_MODE(musb); variable
[all...]
H A Dmusb_dsps.c39 * DSPS musb wrapper register offset.
41 * musb ips.
103 struct platform_device *musb; /* child musb pdev */ member in struct:dsps_glue
135 struct musb *musb = platform_get_drvdata(glue->musb); local
143 mod_timer(&musb->dev_timer, jiffies + wait);
167 static void dsps_musb_enable(struct musb *musb) argument
193 dsps_musb_disable(struct musb *musb) argument
207 dsps_check_status(struct musb *musb, void *unused) argument
280 struct musb *musb = from_timer(musb, t, dev_timer); local
302 dsps_musb_clear_ep_rxintr(struct musb *musb, int epnum) argument
315 struct musb *musb = hci; local
407 dsps_musb_dbg_init(struct musb *musb, struct dsps_glue *glue) argument
424 dsps_musb_init(struct musb *musb) argument
496 dsps_musb_exit(struct musb *musb) argument
509 dsps_musb_set_mode(struct musb *musb, u8 mode) argument
556 dsps_sw_babble_control(struct musb *musb) argument
607 dsps_musb_recover(struct musb *musb) argument
642 struct musb *musb = c->musb; local
653 dsps_dma_controller_create(struct musb *musb, void __iomem *base) argument
729 struct platform_device *musb; local
825 struct musb *musb = platform_get_drvdata(glue->musb); local
971 struct musb *musb = platform_get_drvdata(glue->musb); local
1005 struct musb *musb = platform_get_drvdata(glue->musb); local
[all...]
H A Dda8xx.c69 struct platform_device *musb; member in struct:da8xx_glue
85 static void da8xx_musb_enable(struct musb *musb) argument
87 void __iomem *reg_base = musb->ctrl_base;
91 mask = ((musb->epmask & DA8XX_USB_TX_EP_MASK) << DA8XX_INTR_TX_SHIFT) |
92 ((musb->epmask & DA8XX_USB_RX_EP_MASK) << DA8XX_INTR_RX_SHIFT) |
104 static void da8xx_musb_disable(struct musb *musb) argument
106 void __iomem *reg_base = musb->ctrl_base;
116 static void da8xx_musb_set_vbus(struct musb *mus argument
125 struct musb *musb = from_timer(musb, t, dev_timer); local
194 da8xx_musb_try_idle(struct musb *musb, unsigned long timeout) argument
225 struct musb *musb = hci; local
326 da8xx_musb_set_mode(struct musb *musb, u8 musb_mode) argument
355 da8xx_musb_init(struct musb *musb) argument
417 da8xx_musb_exit(struct musb *musb) argument
450 struct musb *musb = c->musb; local
457 da8xx_dma_controller_create(struct musb *musb, void __iomem *base) argument
[all...]
H A Dmusb_host.c73 struct musb *hcd_to_musb(struct usb_hcd *hcd)
75 return *(struct musb **) hcd->hcd_priv;
79 static void musb_ep_program(struct musb *musb, u8 epnum,
88 struct musb *musb = ep->musb; local
113 if (dev_WARN_ONCE(musb->controller, retries-- < 1,
146 * musb must be locked.
171 if (is_cppi_enabled(ep->musb))
196 musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh) argument
296 musb_advance_schedule(struct musb *musb, struct urb *urb, struct musb_hw_ep *hw_ep, int is_in) argument
413 musb_host_packet_rx(struct musb *musb, struct urb *urb, u8 epnum, u8 iso_err) argument
514 musb_rx_reinit(struct musb *musb, struct musb_qh *qh, u8 epnum) argument
669 musb_ep_program(struct musb *musb, u8 epnum, struct urb *urb, int is_out, u8 *buf, u32 offset, u32 len) argument
899 musb_bulk_nak_timeout(struct musb *musb, struct musb_hw_ep *ep, int is_in) argument
978 musb_h_ep0_continue(struct musb *musb, u16 len, struct urb *urb) argument
1054 musb_h_ep0_irq(struct musb *musb) argument
1195 musb_host_tx(struct musb *musb, u8 epnum) argument
1612 struct musb *musb = hw_ep->musb; local
1729 musb_host_rx(struct musb *musb, u8 epnum) argument
1993 musb_schedule( struct musb *musb, struct musb_qh *qh, int is_in) argument
2119 struct musb *musb = hcd_to_musb(hcd); local
2311 struct musb *musb = ep->musb; local
2365 struct musb *musb = hcd_to_musb(hcd); local
2425 struct musb *musb = hcd_to_musb(hcd); local
2475 struct musb *musb = hcd_to_musb(hcd); local
2482 struct musb *musb = hcd_to_musb(hcd); local
2500 struct musb *musb = hcd_to_musb(hcd); local
2537 struct musb *musb = hcd_to_musb(hcd); local
2625 struct musb *musb = hcd_to_musb(hcd); local
2650 struct musb *musb = hcd_to_musb(hcd); local
2694 musb_host_alloc(struct musb *musb) argument
2711 musb_host_cleanup(struct musb *musb) argument
2718 musb_host_free(struct musb *musb) argument
2723 musb_host_setup(struct musb *musb, int power_budget) argument
2753 musb_host_resume_root_hub(struct musb *musb) argument
2758 musb_host_poke_root_hub(struct musb *musb) argument
[all...]
H A Dmusb_debugfs.c86 struct musb *musb = s->private; local
90 pm_runtime_get_sync(musb->controller);
96 musb_readb(musb->mregs, musb_regmap[i].offset));
100 musb_readw(musb->mregs, musb_regmap[i].offset));
104 musb_readl(musb->mregs, musb_regmap[i].offset));
109 pm_runtime_mark_last_busy(musb->controller);
110 pm_runtime_put_autosuspend(musb->controller);
117 struct musb *musb local
167 struct musb *musb = s->private; local
234 struct musb *musb = s->private; local
267 struct musb *musb = s->private; local
324 musb_init_debugfs(struct musb *musb) argument
338 musb_exit_debugfs(struct musb *musb) argument
[all...]
H A Dtusb6010.c34 struct platform_device *musb; member in struct:tusb6010_glue
40 static void tusb_musb_set_vbus(struct musb *musb, int is_on);
49 static u8 tusb_get_revision(struct musb *musb) argument
51 void __iomem *tbase = musb->ctrl_base;
66 static void tusb_print_revision(struct musb *musb) argument
68 void __iomem *tbase = musb->ctrl_base;
71 rev = musb
99 tusb_wbus_quirk(struct musb *musb, int enabled) argument
227 struct musb *musb = hw_ep->musb; local
277 struct musb *musb = hw_ep->musb; local
332 struct musb *musb = the_musb; local
367 tusb_set_clock_source(struct musb *musb, unsigned mode) argument
394 tusb_allow_idle(struct musb *musb, u32 wakeup_enables) argument
431 tusb_musb_vbus_status(struct musb *musb) argument
460 struct musb *musb = from_timer(musb, t, dev_timer); local
515 tusb_musb_try_idle(struct musb *musb, unsigned long timeout) argument
556 tusb_musb_set_vbus(struct musb *musb, int is_on) argument
633 tusb_musb_set_mode(struct musb *musb, u8 musb_mode) argument
683 tusb_otg_ints(struct musb *musb, u32 int_src, void __iomem *tbase) argument
826 struct musb *musb = __hci; local
931 tusb_musb_enable(struct musb *musb) argument
975 tusb_musb_disable(struct musb *musb) argument
1000 tusb_setup_cpu_interface(struct musb *musb) argument
1027 tusb_musb_start(struct musb *musb) argument
1106 tusb_musb_init(struct musb *musb) argument
1173 tusb_musb_exit(struct musb *musb) argument
1226 struct platform_device *musb; local
[all...]
H A Dsunxi.c22 #include <linux/usb/musb.h>
29 * Register offsets, note sunxi musb has a different layout then most
30 * musb implementations, we translate the layout in musb_readb & friends.
77 /* Our read/write methods need access and do not get passed in a musb ref :| */
78 static struct musb *sunxi_musb;
82 struct musb *musb; member in struct:sunxi_glue
106 struct musb *musb = glue->musb; local
146 sunxi_musb_set_vbus(struct musb *musb, int is_on) argument
160 sunxi_musb_pre_root_reset_end(struct musb *musb) argument
167 sunxi_musb_post_root_reset_end(struct musb *musb) argument
176 struct musb *musb = __hci; local
222 sunxi_musb_init(struct musb *musb) argument
277 sunxi_musb_exit(struct musb *musb) argument
301 sunxi_musb_enable(struct musb *musb) argument
314 sunxi_musb_disable(struct musb *musb) argument
322 sunxi_musb_dma_controller_create(struct musb *musb, void __iomem *base) argument
331 sunxi_musb_set_mode(struct musb *musb, u8 mode) argument
375 sunxi_musb_recover(struct musb *musb) argument
[all...]
H A Dmusb_core.c94 #define MUSB_DRIVER_NAME "musb-hdrc"
105 static inline struct musb *dev_to_musb(struct device *dev)
316 struct musb *musb = hw_ep->musb; local
324 dev_dbg(musb->controller, "%cX ep%d fifo %p count %d buf %p\n",
360 struct musb *musb = hw_ep->musb; local
366 dev_dbg(musb
456 musb_read_devctl(struct musb *musb) argument
473 musb_set_host(struct musb *musb) argument
520 musb_set_peripheral(struct musb *musb) argument
581 musb_load_testpacket(struct musb *musb) argument
598 struct musb *musb = from_timer(musb, t, otg_timer); local
627 musb_hnp_stop(struct musb *musb) argument
666 musb_handle_intr_resume(struct musb *musb, u8 devctl) argument
728 musb_handle_intr_sessreq(struct musb *musb, u8 devctl) argument
756 musb_handle_intr_vbuserr(struct musb *musb, u8 devctl) argument
827 musb_handle_intr_suspend(struct musb *musb, u8 devctl) argument
884 musb_handle_intr_connect(struct musb *musb, u8 devctl, u8 int_usb) argument
941 musb_handle_intr_disconnect(struct musb *musb, u8 devctl) argument
989 musb_handle_intr_reset(struct musb *musb) argument
1050 musb_stage0_irq(struct musb *musb, u8 int_usb, u8 devctl) argument
1150 musb_disable_interrupts(struct musb *musb) argument
1167 musb_enable_interrupts(struct musb *musb) argument
1183 musb_start(struct musb *musb) argument
1232 musb_stop(struct musb *musb) argument
1379 fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep, const struct musb_fifo_cfg *cfg, u16 offset) argument
1453 ep_config_from_table(struct musb *musb) argument
1543 ep_config_from_hw(struct musb *musb) argument
1590 musb_core_init(u16 musb_type, struct musb *musb) argument
1721 musb_interrupt(struct musb *musb) argument
1799 musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit) argument
1856 struct musb *musb = dev_to_musb(dev); local
1871 struct musb *musb = dev_to_musb(dev); local
1894 struct musb *musb = dev_to_musb(dev); local
1917 struct musb *musb = dev_to_musb(dev); local
1950 struct musb *musb = dev_to_musb(dev); local
1972 ATTRIBUTE_GROUPS(musb); variable
1983 musb_state_needs_recheck(struct musb *musb, u8 devctl, const char *desc) argument
2006 musb_pm_runtime_check_session(struct musb *musb) argument
2075 struct musb *musb = container_of(data, struct musb, irq_work.work); local
2096 musb_recover_from_babble(struct musb *musb) argument
2144 struct musb *musb; local
2186 musb_free(struct musb *musb) argument
2213 musb_run_resume_work(struct musb *musb) argument
2246 musb_queue_resume_work(struct musb *musb, int (*callback)(struct musb *musb, void *data), void *data) argument
2287 struct musb *musb; local
2312 struct musb *musb; local
2626 struct musb *musb = dev_to_musb(dev); local
2663 musb_save_context(struct musb *musb) argument
2728 musb_restore_context(struct musb *musb) argument
2806 struct musb *musb = dev_to_musb(dev); local
2849 struct musb *musb = dev_to_musb(dev); local
2897 struct musb *musb = dev_to_musb(dev); local
2907 struct musb *musb = dev_to_musb(dev); local
[all...]
H A Dmusb_dma.h53 #define musb_dma_ux500(musb) (musb->ops->quirks & MUSB_DMA_UX500)
55 #define musb_dma_ux500(musb) 0
59 #define musb_dma_cppi41(musb) (musb->ops->quirks & MUSB_DMA_CPPI41)
61 #define musb_dma_cppi41(musb) 0
65 #define tusb_dma_omap(musb) (musb->ops->quirks & MUSB_DMA_TUSB_OMAP)
67 #define tusb_dma_omap(musb) 0
71 #define musb_dma_inventra(musb) (mus
154 struct musb *musb; member in struct:dma_controller
[all...]
H A Dmediatek.c44 struct musb *musb; member in struct:mtk_glue
68 struct musb *musb = glue->musb; local
69 u8 devctl = readb(musb->mregs + MUSB_DEVCTL);
77 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE;
84 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
85 MUSB_HST_MODE(musb);
88 musb
153 struct musb *musb = __hci; local
177 struct musb *musb = (struct musb *)dev_id; local
218 mtk_musb_set_mode(struct musb *musb, u8 mode) argument
255 mtk_musb_init(struct musb *musb) argument
305 struct musb *musb = qh->hw_ep->musb; local
315 struct musb *musb = qh->hw_ep->musb; local
334 mtk_musb_exit(struct musb *musb) argument
[all...]
H A Dmpfs.c27 struct platform_device *musb; member in struct:mpfs_glue
56 struct musb *musb = __hci; local
58 spin_lock_irqsave(&musb->lock, flags);
60 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB);
61 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX);
62 musb->int_rx = musb_readw(musb
76 mpfs_musb_set_vbus(struct musb *musb, int is_on) argument
114 mpfs_musb_init(struct musb *musb) argument
[all...]
H A Djz4740.c23 struct musb *musb; member in struct:jz4740_glue
32 struct musb *musb = __hci; local
34 if (IS_ENABLED(CONFIG_USB_INVENTRA_DMA) && musb->dma_controller)
35 retval_dma = dma_controller_irq(irq, musb->dma_controller);
37 spin_lock_irqsave(&musb->lock, flags);
39 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB);
40 musb
103 jz4740_musb_init(struct musb *musb) argument
178 jz4740_musb_exit(struct musb *musb) argument
239 struct platform_device *musb; local
[all...]
H A Dmusb_core.h23 #include <linux/usb/musb.h>
27 struct musb;
32 /* Helper defines for struct musb->hwvers */
106 #define MUSB_MODE(musb) ((musb)->is_host ? "Host" : "Peripheral")
158 int (*init)(struct musb *musb);
159 int (*exit)(struct musb *musb);
161 void (*enable)(struct musb *mus
201 struct musb *musb; member in struct:musb_hw_ep
277 struct musb { struct
452 musb_read_fifosize(struct musb *musb, struct musb_hw_ep *hw_ep, u8 epnum) argument
482 musb_configure_ep0(struct musb *musb) argument
512 musb_platform_set_vbus(struct musb *musb, int is_on) argument
518 musb_platform_enable(struct musb *musb) argument
524 musb_platform_disable(struct musb *musb) argument
530 musb_platform_set_mode(struct musb *musb, u8 mode) argument
538 musb_platform_try_idle(struct musb *musb, unsigned long timeout) argument
545 musb_platform_recover(struct musb *musb) argument
553 musb_platform_get_vbus_status(struct musb *musb) argument
561 musb_platform_init(struct musb *musb) argument
569 musb_platform_exit(struct musb *musb) argument
577 musb_platform_pre_root_reset_end(struct musb *musb) argument
583 musb_platform_post_root_reset_end(struct musb *musb) argument
589 musb_platform_clear_ep_rxintr(struct musb *musb, int epnum) argument
595 musb_set_state(struct musb *musb, enum usb_otg_state otg_state) argument
604 musb_get_state(struct musb *musb) argument
612 musb_otg_state_string(struct musb *musb) argument
[all...]
H A Dux500.c16 #include <linux/usb/musb-ux500.h>
29 struct platform_device *musb; member in struct:ux500_glue
32 #define glue_to_musb(g) platform_get_drvdata(g->musb)
34 static void ux500_musb_set_vbus(struct musb *musb, int is_on) argument
43 devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
46 if (musb->xceiv->otg->state == OTG_STATE_A_IDLE) {
49 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
51 * Wait for the musb to set as A device to enable the
54 while (musb_readb(musb
97 struct musb *musb = container_of(nb, struct musb, nb); local
128 struct musb *musb = __hci; local
144 ux500_musb_init(struct musb *musb) argument
166 ux500_musb_exit(struct musb *musb) argument
221 struct platform_device *musb; local
318 struct musb *musb = glue_to_musb(glue); local
331 struct musb *musb = glue_to_musb(glue); local
[all...]
H A Domap2430.c24 #include <linux/usb/musb.h>
33 struct platform_device *musb; member in struct:omap2430_glue
41 #define glue_to_musb(g) platform_get_drvdata(g->musb)
45 static inline void omap2430_low_level_exit(struct musb *musb) argument
50 l = musb_readl(musb->mregs, OTG_FORCESTDBY);
52 musb_writel(musb->mregs, OTG_FORCESTDBY, l);
55 static inline void omap2430_low_level_init(struct musb *musb) argument
59 l = musb_readl(musb
93 struct musb *musb = glue_to_musb(glue); local
173 struct musb *musb = __hci; local
189 omap2430_musb_init(struct musb *musb) argument
252 omap2430_musb_enable(struct musb *musb) argument
262 omap2430_musb_disable(struct musb *musb) argument
272 omap2430_musb_exit(struct musb *musb) argument
307 struct platform_device *musb; local
487 struct musb *musb = glue_to_musb(glue); local
510 struct musb *musb = glue_to_musb(glue); local
536 struct musb *musb = glue_to_musb(glue); local
573 struct musb *musb = glue_to_musb(glue); local
[all...]
H A Dmusb_virthub.c23 struct musb *musb; local
27 musb = container_of(work, struct musb, finish_resume_work.work);
29 spin_lock_irqsave(&musb->lock, flags);
31 power = musb_readb(musb->mregs, MUSB_POWER);
33 musb_dbg(musb, "root port resume stopped, power %02x", power);
34 musb_writeb(musb->mregs, MUSB_POWER, power);
41 musb->is_active = 1;
42 musb
51 musb_port_suspend(struct musb *musb, bool do_suspend) argument
122 musb_port_reset(struct musb *musb, bool do_reset) argument
198 musb_root_disconnect(struct musb *musb) argument
234 struct musb *musb = hcd_to_musb(hcd); local
245 musb_has_gadget(struct musb *musb) argument
268 struct musb *musb = hcd_to_musb(hcd); local
[all...]
/linux-master/drivers/usb/phy/
H A Dphy-twl6030-usb.c15 #include <linux/usb/musb.h>
H A Dphy-ab8500-usb.c22 #include <linux/usb/musb-ux500.h>
520 * 5. Reset the musb controller
522 * 7. Enable the musb Peripheral5 clock
/linux-master/drivers/phy/motorola/
H A Dphy-cpcap-usb.c29 #include <linux/usb/musb.h>
267 * Force check state again after musb has reoriented,
/linux-master/drivers/phy/ti/
H A Dphy-twl4030-usb.c25 #include <linux/usb/musb.h>
780 err = phy_create_lookup(phy, "usb", "musb-hdrc.0");
/linux-master/drivers/gpu/drm/bridge/
H A Dsil-sii8620.c2166 struct device_node *musb, *muic; local
2170 musb = of_graph_get_remote_node(ctx->dev->of_node, 1, -1);
2172 muic = of_get_next_parent(musb);
/linux-master/drivers/usb/
H A DMakefile60 obj-$(CONFIG_USB_MUSB_HDRC) += musb/

Completed in 248 milliseconds

12