Lines Matching refs:musb
33 struct musb *musb; member
48 if (!is_host_active(cppi41_channel->controller->musb)) in save_rx_toggle()
60 struct musb *musb = hw_ep->musb; in update_rx_toggle() local
66 if (!is_host_active(musb)) in update_rx_toggle()
69 musb_ep_select(musb->mregs, hw_ep->epnum); in update_rx_toggle()
81 musb_dbg(cppi41_channel->controller->musb, in update_rx_toggle()
91 struct musb *musb = hw_ep->musb; in musb_is_tx_fifo_empty() local
92 void __iomem *epio = musb->endpoints[epnum].regs; in musb_is_tx_fifo_empty()
95 musb_ep_select(musb->mregs, hw_ep->epnum); in musb_is_tx_fifo_empty()
107 struct musb *musb = hw_ep->musb; in cppi41_trans_done() local
126 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
132 musb_dma_completion(musb, hw_ep->epnum, cppi41_channel->is_tx); in cppi41_trans_done()
164 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
176 struct musb *musb; in cppi41_recheck_tx_req() local
182 musb = controller->musb; in cppi41_recheck_tx_req()
184 spin_lock_irqsave(&musb->lock, flags); in cppi41_recheck_tx_req()
204 spin_unlock_irqrestore(&musb->lock, flags); in cppi41_recheck_tx_req()
214 struct musb *musb = hw_ep->musb; in cppi41_dma_callback() local
221 spin_lock_irqsave(&musb->lock, flags); in cppi41_dma_callback()
238 if (is_host_active(musb)) in cppi41_dma_callback()
274 if (is_host_active(musb)) { in cppi41_dma_callback()
275 if (musb->port1_status & USB_PORT_STAT_HIGH_SPEED) in cppi41_dma_callback()
278 if (musb->g.speed == USB_SPEED_HIGH) in cppi41_dma_callback()
308 spin_unlock_irqrestore(&musb->lock, flags); in cppi41_dma_callback()
340 musb_writel(controller->musb->ctrl_base, USB_CTRL_TX_MODE, in cppi41_set_dma_mode()
344 musb_writel(controller->musb->ctrl_base, USB_CTRL_RX_MODE, in cppi41_set_dma_mode()
364 musb_writel(controller->musb->ctrl_base, USB_CTRL_AUTOREQ, new_mode); in cppi41_set_autoreq_mode()
375 struct musb *musb = cppi41_channel->controller->musb; in cppi41_configure_channel() local
394 musb_writel(musb->ctrl_base, in cppi41_configure_channel()
404 musb_writel(musb->ctrl_base, in cppi41_configure_channel()
488 if (is_host_active(cppi41_channel->controller->musb)) { in cppi41_dma_channel_program()
513 struct musb *musb = controller->musb; in cppi41_is_compatible() local
515 if (is_host_active(musb)) { in cppi41_is_compatible()
531 struct musb *musb = controller->musb; in cppi41_dma_channel_abort() local
576 musb_writel(musb->ctrl_base, USB_TDOWN, tdbit); in cppi41_dma_channel_abort()
581 musb_writel(musb->ctrl_base, USB_TDOWN, tdbit); in cppi41_dma_channel_abort()
616 struct musb *musb = controller->musb; in cppi41_dma_controller_start() local
617 struct device *dev = musb->controller; in cppi41_dma_controller_start()
694 cppi41_dma_controller_create(struct musb *musb, void __iomem *base) in cppi41_dma_controller_create() argument
699 if (!musb->controller->parent->of_node) { in cppi41_dma_controller_create()
700 dev_err(musb->controller, "Need DT for the DMA engine.\n"); in cppi41_dma_controller_create()
711 controller->musb = musb; in cppi41_dma_controller_create()