Lines Matching refs:musb
30 struct musb *musb; member
66 dev_dbg(chdat->musb->controller, "ep%i dmareq0 is busy for ep%i\n", in tusb_omap_use_shared_dmareq()
102 struct musb *musb = chdat->musb; in tusb_omap_dma_cb() local
103 struct device *dev = musb->controller; in tusb_omap_dma_cb()
106 void __iomem *mbase = musb->mregs; in tusb_omap_dma_cb()
109 spin_lock_irqsave(&musb->lock, flags); in tusb_omap_dma_cb()
111 dev_dbg(musb->controller, "ep%i %s dma callback\n", in tusb_omap_dma_cb()
123 dev_dbg(musb->controller, "Corrupt %s XFR_SIZE: 0x%08lx\n", in tusb_omap_dma_cb()
131 dev_dbg(musb->controller, "DMA remaining %lu/%u\n", remaining, chdat->transfer_len); in tusb_omap_dma_cb()
137 dev_dbg(musb->controller, "Using PIO for remaining %lu bytes\n", pio); in tusb_omap_dma_cb()
158 musb_dma_completion(musb, chdat->epnum, chdat->tx); in tusb_omap_dma_cb()
169 dev_dbg(musb->controller, "terminating short tx packet\n"); in tusb_omap_dma_cb()
178 spin_unlock_irqrestore(&musb->lock, flags); in tusb_omap_dma_cb()
186 struct musb *musb = chdat->musb; in tusb_omap_dma_program() local
187 struct device *dev = musb->controller; in tusb_omap_dma_program()
189 void __iomem *mbase = musb->mregs; in tusb_omap_dma_program()
226 dev_dbg(musb->controller, "Busy %s dma, not using: %08x\n", in tusb_omap_dma_program()
241 dev_dbg(musb->controller, "could not get dma for ep%i\n", chdat->epnum); in tusb_omap_dma_program()
285 dev_dbg(musb->controller, in tusb_omap_dma_program()
299 dev_err(musb->controller, "DMA slave config failed: %d\n", ret); in tusb_omap_dma_program()
307 dev_err(musb->controller, "DMA prep_slave_single failed\n"); in tusb_omap_dma_program()
315 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()
438 dev_dbg(musb->controller, "Not allowing DMA for ep0 %s\n", tx ? "tx" : "rx"); in tusb_omap_dma_allocate()
455 chdat->musb = tusb_dma->controller.musb; in tusb_omap_dma_allocate()
482 dev_dbg(musb->controller, "ep%i %s dma: %s dmareq%i\n", in tusb_omap_dma_allocate()
493 dev_dbg(musb->controller, "ep%i: Could not get a DMA channel\n", chdat->epnum); in tusb_omap_dma_allocate()
502 struct musb *musb = chdat->musb; in tusb_omap_dma_release() local
504 dev_dbg(musb->controller, "Release for ep%i\n", chdat->epnum); in tusb_omap_dma_release()
538 struct musb *musb = tusb_dma->controller.musb; in tusb_omap_allocate_dma_pool() local
554 dma_data->chan = dma_request_chan(musb->controller, in tusb_omap_allocate_dma_pool()
557 dev_err(musb->controller, in tusb_omap_allocate_dma_pool()
583 tusb_dma_controller_create(struct musb *musb, void __iomem *base) in tusb_dma_controller_create() argument
585 void __iomem *tbase = musb->ctrl_base; in tusb_dma_controller_create()
591 musb_writel(musb->ctrl_base, TUSB_DMA_INT_MASK, 0x7fffffff); in tusb_dma_controller_create()
592 musb_writel(musb->ctrl_base, TUSB_DMA_EP_MAP, 0); in tusb_dma_controller_create()
603 tusb_dma->controller.musb = musb; in tusb_dma_controller_create()
604 tusb_dma->tbase = musb->ctrl_base; in tusb_dma_controller_create()
611 if (musb->tusb_revision >= TUSB_REV_30) in tusb_dma_controller_create()