Home
last modified time | relevance | path

Searched defs:musb (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/usb/musb/
H A Dmusb_core.h106 #define MUSB_MODE(musb) ((musb)->is_host ? "Host" : "Peripheral") argument
201 struct musb *musb; member
277 struct musb { struct
282 struct musb_io io; argument
283 const struct musb_platform_ops *ops; argument
284 struct musb_context_registers context; argument
302 enum musb_h_ep0_state ep0_stage; argument
310 struct musb_hw_ep *bulk_ep; argument
312 struct list_head control; /* of musb_qh */ argument
313 struct list_head in_bulk; /* of musb_qh */ argument
[all …]
H A Dmusb_core.c317 struct musb *musb = hw_ep->musb; in musb_default_write_fifo() local
361 struct musb *musb = hw_ep->musb; in musb_default_read_fifo() local
457 static u8 musb_read_devctl(struct musb *musb) in musb_read_devctl()
474 int musb_set_host(struct musb *musb) in musb_set_host()
521 int musb_set_peripheral(struct musb *musb) in musb_set_peripheral()
582 void musb_load_testpacket(struct musb *musb) in musb_load_testpacket()
599 struct musb *musb = timer_container_of(musb, t, otg_timer); in musb_otg_timer_func() local
628 void musb_hnp_stop(struct musb *musb) in musb_hnp_stop()
667 static void musb_handle_intr_resume(struct musb *musb, u8 devctl) in musb_handle_intr_resume()
729 static irqreturn_t musb_handle_intr_sessreq(struct musb *musb, u8 devctl) in musb_handle_intr_sessreq()
[all …]
H A Dtusb6010.c34 struct platform_device *musb; member
49 static u8 tusb_get_revision(struct musb *musb) in tusb_get_revision()
66 static void tusb_print_revision(struct musb *musb) in tusb_print_revision()
99 static void tusb_wbus_quirk(struct musb *musb, int enabled) in tusb_wbus_quirk()
227 struct musb *musb = hw_ep->musb; in tusb_write_fifo() local
277 struct musb *musb = hw_ep->musb; in tusb_read_fifo() local
332 struct musb *musb = the_musb; in tusb_draw_power() local
367 static void tusb_set_clock_source(struct musb *musb, unsigned mode) in tusb_set_clock_source()
394 static void tusb_allow_idle(struct musb *musb, u32 wakeup_enables) in tusb_allow_idle()
431 static int tusb_musb_vbus_status(struct musb *musb) in tusb_musb_vbus_status()
[all …]
H A Dmusb_gadget.h28 static inline irqreturn_t musb_g_ep0_irq(struct musb *musb) in musb_g_ep0_irq()
33 static inline void musb_g_tx(struct musb *musb, u8 epnum) {} in musb_g_tx()
34 static inline void musb_g_rx(struct musb *musb, u8 epnum) {} in musb_g_rx()
35 static inline void musb_g_reset(struct musb *musb) {} in musb_g_reset()
36 static inline void musb_g_suspend(struct musb *musb) {} in musb_g_suspend()
37 static inline void musb_g_resume(struct musb *musb) {} in musb_g_resume()
38 static inline void musb_g_wakeup(struct musb *musb) {} in musb_g_wakeup()
39 static inline void musb_g_disconnect(struct musb *musb) {} in musb_g_disconnect()
40 static inline void musb_gadget_cleanup(struct musb *musb) {} in musb_gadget_cleanup()
41 static inline int musb_gadget_setup(struct musb *musb) in musb_gadget_setup()
[all …]
H A Dmusb_dma.h53 #define musb_dma_ux500(musb) (musb->ops->quirks & MUSB_DMA_UX500) argument
55 #define musb_dma_ux500(musb) 0 argument
59 #define musb_dma_cppi41(musb) (musb->ops->quirks & MUSB_DMA_CPPI41) argument
61 #define musb_dma_cppi41(musb) 0 argument
65 #define tusb_dma_omap(musb) (musb->ops->quirks & MUSB_DMA_TUSB_OMAP) argument
67 #define tusb_dma_omap(musb) 0 argument
71 #define musb_dma_inventra(musb) (musb->ops->quirks & MUSB_DMA_INVENTRA) argument
73 #define musb_dma_inventra(musb) 0 argument
77 #define is_cppi_enabled(musb) musb_dma_cppi41(musb) argument
79 #define is_cppi_enabled(musb) 0 argument
[all …]
H A Dmusb_host.h75 static inline irqreturn_t musb_h_ep0_irq(struct musb *musb) in musb_h_ep0_irq()
80 static inline int musb_host_alloc(struct musb *musb) in musb_host_alloc()
85 static inline int musb_host_setup(struct musb *musb, int power_budget) in musb_host_setup()
90 static inline void musb_host_cleanup(struct musb *musb) {} in musb_host_cleanup()
91 static inline void musb_host_free(struct musb *musb) {} in musb_host_free()
92 static inline void musb_host_tx(struct musb *musb, u8 epnum) {} in musb_host_tx()
93 static inline void musb_host_rx(struct musb *musb, u8 epnum) {} in musb_host_rx()
94 static inline void musb_root_disconnect(struct musb *musb) {} in musb_root_disconnect()
95 static inline void musb_host_resume_root_hub(struct musb *musb) {} in musb_host_resume_root_hub()
96 static inline void musb_host_poke_root_hub(struct musb *musb) {} in musb_host_poke_root_hub()
[all …]
H A Dda8xx.c70 struct platform_device *musb; member
86 static void da8xx_musb_enable(struct musb *musb) in da8xx_musb_enable()
105 static void da8xx_musb_disable(struct musb *musb) in da8xx_musb_disable()
117 static void da8xx_musb_set_vbus(struct musb *musb, int is_on) in da8xx_musb_set_vbus()
126 struct musb *musb = timer_container_of(musb, t, in otg_timer() local
196 static void __maybe_unused da8xx_musb_try_idle(struct musb *musb, unsigned long timeout) in da8xx_musb_try_idle()
225 static int da8xx_babble_recover(struct musb *musb) in da8xx_babble_recover()
234 struct musb *musb = hci; in da8xx_musb_interrupt() local
335 static int da8xx_musb_set_mode(struct musb *musb, u8 musb_mode) in da8xx_musb_set_mode()
357 static int da8xx_musb_init(struct musb *musb) in da8xx_musb_init()
[all …]
H A Dmusb_virthub.c23 struct musb *musb; in musb_host_finish_resume() local
51 int musb_port_suspend(struct musb *musb, bool do_suspend) in musb_port_suspend()
122 void musb_port_reset(struct musb *musb, bool do_reset) in musb_port_reset()
198 void musb_root_disconnect(struct musb *musb) in musb_root_disconnect()
234 struct musb *musb = hcd_to_musb(hcd); in musb_hub_status_data() local
245 static int musb_has_gadget(struct musb *musb) in musb_has_gadget()
268 struct musb *musb = hcd_to_musb(hcd); in musb_hub_control() local
H A Dmpfs.c27 struct platform_device *musb; member
52 static void mpfs_musb_set_vbus(struct musb *musb, int is_on) in mpfs_musb_set_vbus()
94 struct musb *musb = timer_container_of(musb, t, in otg_timer() local
157 static void __maybe_unused mpfs_musb_try_idle(struct musb *musb, unsigned long timeout) in mpfs_musb_try_idle()
190 struct musb *musb = __hci; in mpfs_musb_interrupt() local
214 static int mpfs_musb_init(struct musb *musb) in mpfs_musb_init()
234 static int mpfs_musb_exit(struct musb *musb) in mpfs_musb_exit()
H A Dmusb_dsps.c104 struct platform_device *musb; /* child musb pdev */ member
136 struct musb *musb = platform_get_drvdata(glue->musb); in dsps_mod_timer() local
168 static void dsps_musb_enable(struct musb *musb) in dsps_musb_enable()
194 static void dsps_musb_disable(struct musb *musb) in dsps_musb_disable()
208 static int dsps_check_status(struct musb *musb, void *unused) in dsps_check_status()
281 struct musb *musb = timer_container_of(musb, t, dev_timer); in otg_timer() local
303 static void dsps_musb_clear_ep_rxintr(struct musb *musb, int epnum) in dsps_musb_clear_ep_rxintr()
316 struct musb *musb = hci; in dsps_interrupt() local
408 static int dsps_musb_dbg_init(struct musb *musb, struct dsps_glue *glue) in dsps_musb_dbg_init()
425 static int dsps_musb_init(struct musb *musb) in dsps_musb_init()
[all …]
H A Dmusb_debugfs.c86 struct musb *musb = s->private; in musb_regdump_show() local
117 struct musb *musb = s->private; in musb_test_mode_show() local
167 struct musb *musb = s->private; in musb_test_mode_write() local
234 struct musb *musb = s->private; in musb_softconnect_show() local
267 struct musb *musb = s->private; in musb_softconnect_write() local
324 void musb_init_debugfs(struct musb *musb) in musb_init_debugfs()
338 void /* __init_or_exit */ musb_exit_debugfs(struct musb *musb) in musb_exit_debugfs()
H A Dmusb_regs.h282 static inline void musb_write_rxfunaddr(struct musb *musb, u8 epnum, in musb_write_rxfunaddr()
290 static inline void musb_write_rxhubaddr(struct musb *musb, u8 epnum, in musb_write_rxhubaddr()
297 static inline void musb_write_rxhubport(struct musb *musb, u8 epnum, in musb_write_rxhubport()
304 static inline void musb_write_txfunaddr(struct musb *musb, u8 epnum, in musb_write_txfunaddr()
312 static inline void musb_write_txhubaddr(struct musb *musb, u8 epnum, in musb_write_txhubaddr()
319 static inline void musb_write_txhubport(struct musb *musb, u8 epnum, in musb_write_txhubport()
326 static inline u8 musb_read_rxfunaddr(struct musb *musb, u8 epnum) in musb_read_rxfunaddr()
332 static inline u8 musb_read_rxhubaddr(struct musb *musb, u8 epnum) in musb_read_rxhubaddr()
338 static inline u8 musb_read_rxhubport(struct musb *musb, u8 epnum) in musb_read_rxhubport()
344 static inline u8 musb_read_txfunaddr(struct musb *musb, u8 epnum) in musb_read_txfunaddr()
[all …]
H A Dmusbhsdma.c78 struct musb *musb = controller->private_data; in dma_controller_stop() local
149 struct musb *musb = controller->private_data; in configure_channel() local
187 struct musb *musb = controller->private_data; in dma_channel_program() local
224 struct musb *musb = musb_channel->controller->private_data; in dma_channel_abort() local
269 struct musb *musb = controller->private_data; in dma_controller_irq() local
394 dma_controller_alloc(struct musb *musb, void __iomem *base) in dma_controller_alloc()
414 musbhs_dma_controller_create(struct musb *musb, void __iomem *base) in musbhs_dma_controller_create()
445 musbhs_dma_controller_create_noirq(struct musb *musb, void __iomem *base) in musbhs_dma_controller_create_noirq()
H A Dux500_dma.c56 struct musb *musb = hw_ep->musb; in ux500_dma_callback() local
82 struct musb *musb = ux500_channel->controller->private_data; in ux500_configure_channel() local
134 struct musb *musb = controller->private_data; in ux500_dma_channel_allocate() local
166 struct musb *musb = ux500_channel->controller->private_data; in ux500_dma_channel_release() local
211 struct musb *musb = controller->private_data; in ux500_dma_channel_abort() local
269 struct musb *musb = controller->private_data; in ux500_dma_controller_start() local
358 ux500_dma_controller_create(struct musb *musb, void __iomem *base) in ux500_dma_controller_create()
H A Dtusb6010_omap.c30 struct musb *musb; member
102 struct musb *musb = chdat->musb; in tusb_omap_dma_cb() local
186 struct musb *musb = chdat->musb; in tusb_omap_dma_program() local
428 struct musb *musb; in tusb_omap_dma_allocate() local
502 struct musb *musb = chdat->musb; in tusb_omap_dma_release() local
538 struct musb *musb = tusb_dma->controller.musb; in tusb_omap_allocate_dma_pool() local
583 tusb_dma_controller_create(struct musb *musb, void __iomem *base) in tusb_dma_controller_create()
H A Dmusb_debug.h26 static inline void musb_init_debugfs(struct musb *musb) in musb_init_debugfs()
29 static inline void musb_exit_debugfs(struct musb *musb) in musb_exit_debugfs()
H A Dmusb_trace.c13 void musb_dbg(struct musb *musb, const char *fmt, ...) in musb_dbg()