Lines Matching refs:musb

61 	if (!is_host_active(cppi41_channel->controller->controller.musb))  in save_rx_toggle()
73 struct musb *musb = hw_ep->musb; in update_rx_toggle() local
79 if (!is_host_active(musb)) in update_rx_toggle()
82 musb_ep_select(musb->mregs, hw_ep->epnum); in update_rx_toggle()
94 musb_dbg(musb, "Restoring DATA1 toggle."); in update_rx_toggle()
103 struct musb *musb = hw_ep->musb; in musb_is_tx_fifo_empty() local
104 void __iomem *epio = musb->endpoints[epnum].regs; in musb_is_tx_fifo_empty()
107 musb_ep_select(musb->mregs, hw_ep->epnum); in musb_is_tx_fifo_empty()
120 struct musb *musb = hw_ep->musb; in cppi41_trans_done() local
139 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
145 musb_dma_completion(musb, hw_ep->epnum, cppi41_channel->is_tx); in cppi41_trans_done()
177 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
189 struct musb *musb; in cppi41_recheck_tx_req() local
195 musb = controller->controller.musb; in cppi41_recheck_tx_req()
197 spin_lock_irqsave(&musb->lock, flags); in cppi41_recheck_tx_req()
216 spin_unlock_irqrestore(&musb->lock, flags); in cppi41_recheck_tx_req()
227 struct musb *musb = hw_ep->musb; in cppi41_dma_callback() local
241 spin_lock_irqsave(&musb->lock, flags); in cppi41_dma_callback()
258 if (is_host_active(musb)) in cppi41_dma_callback()
292 if (is_host_active(musb)) { in cppi41_dma_callback()
293 if (musb->port1_status & USB_PORT_STAT_HIGH_SPEED) in cppi41_dma_callback()
296 if (musb->g.speed == USB_SPEED_HIGH) in cppi41_dma_callback()
326 spin_unlock_irqrestore(&musb->lock, flags); in cppi41_dma_callback()
343 struct musb *musb = controller->controller.musb; in cppi41_set_dma_mode() local
359 musb_writel(musb->ctrl_base, USB_CTRL_TX_MODE, new_mode); in cppi41_set_dma_mode()
362 musb_writel(musb->ctrl_base, USB_CTRL_RX_MODE, new_mode); in cppi41_set_dma_mode()
370 struct musb *musb = controller->controller.musb; in da8xx_set_dma_mode() local
388 musb_writel(musb->ctrl_base, DA8XX_USB_MODE, new_mode); in da8xx_set_dma_mode()
407 musb_writel(controller->controller.musb->ctrl_base, in cppi41_set_autoreq_mode()
420 struct musb *musb = cppi41_channel->controller->controller.musb; in cppi41_configure_channel() local
439 musb_writel(musb->ctrl_base, in cppi41_configure_channel()
449 musb_writel(musb->ctrl_base, in cppi41_configure_channel()
534 if (is_host_active(cppi41_channel->controller->controller.musb)) { in cppi41_dma_channel_program()
559 struct musb *musb = controller->controller.musb; in cppi41_is_compatible() local
561 if (is_host_active(musb)) { in cppi41_is_compatible()
577 struct musb *musb = controller->controller.musb; in cppi41_dma_channel_abort() local
617 if (musb->ops->quirks & MUSB_DA8XX) in cppi41_dma_channel_abort()
626 musb_writel(musb->ctrl_base, controller->tdown_reg, in cppi41_dma_channel_abort()
632 musb_writel(musb->ctrl_base, controller->tdown_reg, tdbit); in cppi41_dma_channel_abort()
667 struct musb *musb = controller->controller.musb; in cppi41_dma_controller_start() local
668 struct device *dev = musb->controller; in cppi41_dma_controller_start()
748 cppi41_dma_controller_create(struct musb *musb, void __iomem *base) in cppi41_dma_controller_create() argument
754 if (!musb->controller->parent->of_node) { in cppi41_dma_controller_create()
755 dev_err(musb->controller, "Need DT for the DMA engine.\n"); in cppi41_dma_controller_create()
772 controller->controller.musb = musb; in cppi41_dma_controller_create()
774 if (musb->ops->quirks & MUSB_DA8XX) { in cppi41_dma_controller_create()