Home
last modified time | relevance | path

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

12

/drivers/usb/musb/
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
599 struct musb *musb = timer_container_of(musb, t, otg_timer); in musb_otg_timer_func() local
892 musb->intrtxe = musb->epmask; in musb_handle_intr_connect()
1173 musb->intrtxe = musb->epmask; in musb_enable_interrupts()
1729 if (!musb->int_usb && !musb->int_tx && !musb->int_rx) in musb_interrupt()
2145 struct musb *musb; in allocate_instance() local
2169 ep->musb = musb; in allocate_instance()
2197 free_irq(musb->nIrq, musb); in musb_free()
2288 struct musb *musb; in musb_deassert_reset() local
[all …]
A Dmusb_core.h158 int (*init)(struct musb *musb);
159 int (*exit)(struct musb *musb);
161 void (*enable)(struct musb *musb);
162 void (*disable)(struct musb *musb);
184 int (*recover)(struct musb *musb);
201 struct musb *musb; member
521 musb->ops->enable(musb); in musb_platform_enable()
527 musb->ops->disable(musb); in musb_platform_disable()
550 return musb->ops->recover(musb); in musb_platform_recover()
566 return musb->ops->init(musb); in musb_platform_init()
[all …]
A Dmusb_virthub.c23 struct musb *musb; in musb_host_finish_resume() local
27 musb = container_of(work, struct musb, finish_resume_work.work); in musb_host_finish_resume()
51 int musb_port_suspend(struct musb *musb, bool do_suspend) in musb_port_suspend() argument
90 musb->is_active = musb->xceiv && in musb_port_suspend()
100 musb->is_active = musb->xceiv && in musb_port_suspend()
122 void musb_port_reset(struct musb *musb, bool do_reset) in musb_port_reset() argument
198 void musb_root_disconnect(struct musb *musb) in musb_root_disconnect() argument
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() argument
268 struct musb *musb = hcd_to_musb(hcd); in musb_hub_control() local
[all …]
A Dmusb_gadget_ep0.c51 struct musb *musb, in service_tx_status_request() argument
183 static inline void musb_try_b_hnp_enable(struct musb *musb) in musb_try_b_hnp_enable() argument
204 service_zero_data_request(struct musb *musb, in service_zero_data_request() argument
460 static void ep0_rxstate(struct musb *musb) in ep0_rxstate() argument
517 static void ep0_txstate(struct musb *musb) in ep0_txstate() argument
641 irqreturn_t musb_g_ep0_irq(struct musb *musb) in musb_g_ep0_irq() argument
907 struct musb *musb; in musb_g_ep0_queue() local
916 musb = ep->musb; in musb_g_ep0_queue()
920 req->musb = musb; in musb_g_ep0_queue()
993 struct musb *musb; in musb_g_ep0_halt() local
[all …]
A Dmusb_gadget.c85 struct musb *musb) in unmap_dma_buffer() argument
131 struct musb *musb; in musb_g_giveback() local
139 musb = req->musb; in musb_g_giveback()
161 struct musb *musb = ep->musb; in nuke() local
916 struct musb *musb; in musb_gadget_enable() local
1088 struct musb *musb; in musb_gadget_disable() local
1274 struct musb *musb = musb_ep->musb; in musb_gadget_dequeue() local
1331 struct musb *musb = musb_ep->musb; in musb_gadget_set_halt() local
1432 struct musb *musb = musb_ep->musb; in musb_gadget_fifo_status() local
1451 struct musb *musb = musb_ep->musb; in musb_gadget_fifo_flush() local
[all …]
A Dtusb6010.c49 static u8 tusb_get_revision(struct musb *musb) in tusb_get_revision() argument
66 static void tusb_print_revision(struct musb *musb) in tusb_print_revision() argument
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
460 struct musb *musb = timer_container_of(musb, t, dev_timer); in musb_do_idle() local
826 struct musb *musb = __hci; in tusb_musb_interrupt() local
931 static void tusb_musb_enable(struct musb *musb) in tusb_musb_enable() argument
1027 static int tusb_musb_start(struct musb *musb) in tusb_musb_start() argument
1106 static int tusb_musb_init(struct musb *musb) in tusb_musb_init() argument
[all …]
A Dux500.c97 struct musb *musb = container_of(nb, struct musb, nb); in musb_otg_notifications() local
128 struct musb *musb = __hci; in ux500_musb_interrupt() local
133 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in ux500_musb_interrupt()
134 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in ux500_musb_interrupt()
136 if (musb->int_usb || musb->int_tx || musb->int_rx) in ux500_musb_interrupt()
144 static int ux500_musb_init(struct musb *musb) in ux500_musb_init() argument
166 static int ux500_musb_exit(struct musb *musb) in ux500_musb_exit() argument
168 usb_unregister_notifier(musb->xceiv, &musb->nb); in ux500_musb_exit()
268 glue->musb = musb; in ux500_probe()
318 struct musb *musb = glue_to_musb(glue); in ux500_suspend() local
[all …]
A Domap2430.c93 struct musb *musb = glue_to_musb(glue); in omap_musb_set_mailbox() local
173 struct musb *musb = __hci; in omap2430_musb_interrupt() local
181 if (musb->int_usb || musb->int_tx || musb->int_rx) in omap2430_musb_interrupt()
189 static int omap2430_musb_init(struct musb *musb) in omap2430_musb_init() argument
252 static void omap2430_musb_enable(struct musb *musb) in omap2430_musb_enable() argument
272 static int omap2430_musb_exit(struct musb *musb) in omap2430_musb_exit() argument
344 glue->musb = musb; in omap2430_probe()
488 struct musb *musb = glue_to_musb(glue); in omap2430_runtime_suspend() local
511 struct musb *musb = glue_to_musb(glue); in omap2430_runtime_resume() local
537 struct musb *musb = glue_to_musb(glue); in omap2430_suspend() local
[all …]
A Dmpfs.c52 static void mpfs_musb_set_vbus(struct musb *musb, int is_on) in mpfs_musb_set_vbus() argument
94 struct musb *musb = timer_container_of(musb, t, in otg_timer() local
165 if (musb->is_active || (musb->a_wait_bcon == 0 && in mpfs_musb_try_idle()
190 struct musb *musb = __hci; in mpfs_musb_interrupt() local
195 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in mpfs_musb_interrupt()
196 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in mpfs_musb_interrupt()
198 if (musb->int_usb || musb->int_tx || musb->int_rx) { in mpfs_musb_interrupt()
200 musb_writew(musb->mregs, MUSB_INTRTX, musb->int_tx); in mpfs_musb_interrupt()
201 musb_writew(musb->mregs, MUSB_INTRRX, musb->int_rx); in mpfs_musb_interrupt()
214 static int mpfs_musb_init(struct musb *musb) in mpfs_musb_init() argument
[all …]
A Dda8xx.c86 static void da8xx_musb_enable(struct musb *musb) in da8xx_musb_enable() argument
105 static void da8xx_musb_disable(struct musb *musb) in da8xx_musb_disable() argument
117 static void da8xx_musb_set_vbus(struct musb *musb, int is_on) in da8xx_musb_set_vbus() argument
126 struct musb *musb = timer_container_of(musb, t, in otg_timer() local
204 if (musb->is_active || (musb->a_wait_bcon == 0 && in da8xx_musb_try_idle()
225 static int da8xx_babble_recover(struct musb *musb) in da8xx_babble_recover() argument
234 struct musb *musb = hci; in da8xx_musb_interrupt() local
318 if (musb->int_tx || musb->int_rx || musb->int_usb) in da8xx_musb_interrupt()
357 static int da8xx_musb_init(struct musb *musb) in da8xx_musb_init() argument
419 static int da8xx_musb_exit(struct musb *musb) in da8xx_musb_exit() argument
[all …]
A Dmusb_host.h62 extern void musb_root_disconnect(struct musb *musb);
64 extern void musb_host_resume_root_hub(struct musb *musb);
65 extern void musb_host_poke_root_hub(struct musb *musb);
67 extern void musb_port_reset(struct musb *musb, bool do_reset);
75 static inline irqreturn_t musb_h_ep0_irq(struct musb *musb) in musb_h_ep0_irq() argument
80 static inline int musb_host_alloc(struct musb *musb) in musb_host_alloc() argument
90 static inline void musb_host_cleanup(struct musb *musb) {} in musb_host_cleanup() argument
91 static inline void musb_host_free(struct musb *musb) {} in musb_host_free() argument
92 static inline void musb_host_tx(struct musb *musb, u8 epnum) {} in musb_host_tx() argument
93 static inline void musb_host_rx(struct musb *musb, u8 epnum) {} in musb_host_rx() argument
[all …]
A Dmusb_dsps.c136 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() argument
281 struct musb *musb = timer_container_of(musb, t, dev_timer); in otg_timer() local
316 struct musb *musb = hci; in dsps_interrupt() local
389 if (musb->int_tx || musb->int_rx || musb->int_usb) in dsps_interrupt()
425 static int dsps_musb_init(struct musb *musb) in dsps_musb_init() argument
643 struct musb *musb = c->musb; in dsps_dma_controller_callback() local
764 glue->musb = musb; in dsps_create_musb_pdev()
826 struct musb *musb = platform_get_drvdata(glue->musb); in dsps_vbus_threaded_irq() local
972 struct musb *musb = platform_get_drvdata(glue->musb); in dsps_suspend() local
[all …]
A Dmusb_gadget.h28 static inline irqreturn_t musb_g_ep0_irq(struct musb *musb) in musb_g_ep0_irq() argument
33 static inline void musb_g_tx(struct musb *musb, u8 epnum) {} in musb_g_tx() argument
34 static inline void musb_g_rx(struct musb *musb, u8 epnum) {} in musb_g_rx() argument
35 static inline void musb_g_reset(struct musb *musb) {} in musb_g_reset() argument
36 static inline void musb_g_suspend(struct musb *musb) {} in musb_g_suspend() argument
37 static inline void musb_g_resume(struct musb *musb) {} in musb_g_resume() argument
38 static inline void musb_g_wakeup(struct musb *musb) {} in musb_g_wakeup() argument
39 static inline void musb_g_disconnect(struct musb *musb) {} in musb_g_disconnect() argument
41 static inline int musb_gadget_setup(struct musb *musb) in musb_gadget_setup() argument
57 struct musb *musb; member
[all …]
A Djz4740.c23 struct musb *musb; member
32 struct musb *musb = __hci; in jz4740_musb_interrupt() local
39 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in jz4740_musb_interrupt()
40 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in jz4740_musb_interrupt()
41 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in jz4740_musb_interrupt()
51 if (musb->int_usb || musb->int_tx || musb->int_rx) in jz4740_musb_interrupt()
103 static int jz4740_musb_init(struct musb *musb) in jz4740_musb_init() argument
114 glue->musb = musb; in jz4740_musb_init()
178 static int jz4740_musb_exit(struct musb *musb) in jz4740_musb_exit() argument
255 if (!musb) { in jz4740_probe()
[all …]
A Dmusb_host.c89 struct musb *musb = ep->musb; in musb_h_tx_flush_fifo() local
1612 struct musb *musb = hw_ep->musb; in musb_rx_dma_in_inventra_cppi41() local
1994 struct musb *musb, in musb_schedule() argument
2311 struct musb *musb = ep->musb; in musb_cleanup_urb() local
2475 struct musb *musb = hcd_to_musb(hcd); in musb_h_get_frame_number() local
2482 struct musb *musb = hcd_to_musb(hcd); in musb_h_start() local
2500 struct musb *musb = hcd_to_musb(hcd); in musb_bus_suspend() local
2537 struct musb *musb = hcd_to_musb(hcd); in musb_bus_resume() local
2625 struct musb *musb = hcd_to_musb(hcd); in musb_map_urb_for_dma() local
2650 struct musb *musb = hcd_to_musb(hcd); in musb_unmap_urb_for_dma() local
[all …]
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
204 musb_load_testpacket(musb); in musb_test_mode_write()
234 struct musb *musb = s->private; in musb_softconnect_show() local
238 switch (musb_get_state(musb)) { in musb_softconnect_show()
267 struct musb *musb = s->private; in musb_softconnect_write() local
280 musb_root_disconnect(musb); in musb_softconnect_write()
324 void musb_init_debugfs(struct musb *musb) in musb_init_debugfs() argument
329 musb->debugfs_root = root; in musb_init_debugfs()
[all …]
A Dmusb_regs.h282 static inline void musb_write_rxfunaddr(struct musb *musb, u8 epnum, in musb_write_rxfunaddr() argument
290 static inline void musb_write_rxhubaddr(struct musb *musb, u8 epnum, in musb_write_rxhubaddr() argument
297 static inline void musb_write_rxhubport(struct musb *musb, u8 epnum, in musb_write_rxhubport() argument
304 static inline void musb_write_txfunaddr(struct musb *musb, u8 epnum, in musb_write_txfunaddr() argument
312 static inline void musb_write_txhubaddr(struct musb *musb, u8 epnum, in musb_write_txhubaddr() argument
326 static inline u8 musb_read_rxfunaddr(struct musb *musb, u8 epnum) in musb_read_rxfunaddr() argument
332 static inline u8 musb_read_rxhubaddr(struct musb *musb, u8 epnum) in musb_read_rxhubaddr() argument
338 static inline u8 musb_read_rxhubport(struct musb *musb, u8 epnum) in musb_read_rxhubport() argument
344 static inline u8 musb_read_txfunaddr(struct musb *musb, u8 epnum) in musb_read_txfunaddr() argument
350 static inline u8 musb_read_txhubaddr(struct musb *musb, u8 epnum) in musb_read_txhubaddr() argument
[all …]
A Dmusb_dma.h53 #define musb_dma_ux500(musb) (musb->ops->quirks & MUSB_DMA_UX500) argument
59 #define musb_dma_cppi41(musb) (musb->ops->quirks & MUSB_DMA_CPPI41) argument
65 #define tusb_dma_omap(musb) (musb->ops->quirks & MUSB_DMA_TUSB_OMAP) argument
71 #define musb_dma_inventra(musb) (musb->ops->quirks & MUSB_DMA_INVENTRA) argument
77 #define is_cppi_enabled(musb) musb_dma_cppi41(musb) argument
154 struct musb *musb; member
170 extern void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit);
191 musbhs_dma_controller_create(struct musb *musb, void __iomem *base);
198 tusb_dma_controller_create(struct musb *musb, void __iomem *base);
202 cppi41_dma_controller_create(struct musb *musb, void __iomem *base);
[all …]
A Dmediatek.c44 struct musb *musb; member
68 struct musb *musb = glue->musb; in mtk_otg_switch_set() local
153 struct musb *musb = __hci; in generic_interrupt() local
157 musb->int_rx = musb_clearw(musb->mregs, MUSB_INTRRX); in generic_interrupt()
166 if (musb->int_usb || musb->int_tx || musb->int_rx) in generic_interrupt()
177 struct musb *musb = (struct musb *)dev_id; in mtk_musb_interrupt() local
255 static int mtk_musb_init(struct musb *musb) in mtk_musb_init() argument
261 glue->musb = musb; in mtk_musb_init()
305 struct musb *musb = qh->hw_ep->musb; in mtk_musb_get_toggle() local
315 struct musb *musb = qh->hw_ep->musb; in mtk_musb_set_toggle() local
[all …]
A Dsunxi.c82 struct musb *musb; member
106 struct musb *musb = glue->musb; in sunxi_musb_work() local
176 struct musb *musb = __hci; in sunxi_musb_interrupt() local
191 musb->int_tx = readw(musb->mregs + SUNXI_MUSB_INTRTX); in sunxi_musb_interrupt()
195 musb->int_rx = readw(musb->mregs + SUNXI_MUSB_INTRRX); in sunxi_musb_interrupt()
222 static int sunxi_musb_init(struct musb *musb) in sunxi_musb_init() argument
277 static int sunxi_musb_exit(struct musb *musb) in sunxi_musb_exit() argument
299 static void sunxi_musb_enable(struct musb *musb) in sunxi_musb_enable() argument
303 glue->musb = musb; in sunxi_musb_enable()
312 static void sunxi_musb_disable(struct musb *musb) in sunxi_musb_disable() argument
[all …]
A Dmusb_cppi41.c73 struct musb *musb = hw_ep->musb; in update_rx_toggle() local
103 struct musb *musb = hw_ep->musb; in musb_is_tx_fifo_empty() local
120 struct musb *musb = hw_ep->musb; in cppi41_trans_done() local
189 struct musb *musb; in cppi41_recheck_tx_req() local
227 struct musb *musb = hw_ep->musb; in cppi41_dma_callback() local
343 struct musb *musb = controller->controller.musb; in cppi41_set_dma_mode() local
370 struct musb *musb = controller->controller.musb; in da8xx_set_dma_mode() local
420 struct musb *musb = cppi41_channel->controller->controller.musb; in cppi41_configure_channel() local
559 struct musb *musb = controller->controller.musb; in cppi41_is_compatible() local
577 struct musb *musb = controller->controller.musb; in cppi41_dma_channel_abort() local
[all …]
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
285 dev_dbg(musb->controller, in tusb_omap_dma_program()
428 struct musb *musb; in tusb_omap_dma_allocate() local
434 musb = tusb_dma->controller.musb; in tusb_omap_dma_allocate()
455 chdat->musb = tusb_dma->controller.musb; in tusb_omap_dma_allocate()
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() argument
[all …]
A Dmusb_trace.h27 TP_PROTO(struct musb *musb, struct va_format *vaf),
41 TP_PROTO(struct musb *musb, u8 devctl, const char *desc),
154 TP_PROTO(struct musb *musb),
155 TP_ARGS(musb),
175 TP_PROTO(struct musb *musb, struct urb *urb),
207 TP_PROTO(struct musb *musb, struct urb *urb),
212 TP_PROTO(struct musb *musb, struct urb *urb),
217 TP_PROTO(struct musb *musb, struct urb *urb),
222 TP_PROTO(struct musb *musb, struct urb *urb),
227 TP_PROTO(struct musb *musb, struct urb *urb),
[all …]
A Dmusbhsdma.c78 struct musb *musb = controller->private_data; in dma_controller_stop() local
83 dev_err(musb->controller, in dma_controller_stop()
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
290 musb_dbg(musb, "spurious DMA irq"); in dma_controller_irq()
394 dma_controller_alloc(struct musb *musb, void __iomem *base) in dma_controller_alloc() argument
403 controller->private_data = musb; in dma_controller_alloc()
414 musbhs_dma_controller_create(struct musb *musb, void __iomem *base) in musbhs_dma_controller_create() argument
[all …]
A Dux500_dma.c56 struct musb *musb = hw_ep->musb; in ux500_dma_callback() local
62 spin_lock_irqsave(&musb->lock, flags); in ux500_dma_callback()
82 struct musb *musb = ux500_channel->controller->private_data; in ux500_configure_channel() local
86 dev_dbg(musb->controller, in ux500_configure_channel()
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
270 struct device *dev = musb->controller; in ux500_dma_controller_start()
358 ux500_dma_controller_create(struct musb *musb, void __iomem *base) in ux500_dma_controller_create() argument
[all …]

Completed in 95 milliseconds

12