Lines Matching refs:tibase
157 void __iomem *tibase; in cppi_controller_start() local
176 tibase = controller->tibase; in cppi_controller_start()
186 tx = tibase + DAVINCI_TXCPPI_STATERAM_OFFSET(i); in cppi_controller_start()
196 rx = tibase + DAVINCI_RXCPPI_STATERAM_OFFSET(i); in cppi_controller_start()
202 musb_writel(tibase, DAVINCI_TXCPPI_INTENAB_REG, in cppi_controller_start()
204 musb_writel(tibase, DAVINCI_RXCPPI_INTENAB_REG, in cppi_controller_start()
208 musb_writel(tibase, DAVINCI_TXCPPI_CTRL_REG, DAVINCI_DMA_CTRL_ENABLE); in cppi_controller_start()
209 musb_writel(tibase, DAVINCI_RXCPPI_CTRL_REG, DAVINCI_DMA_CTRL_ENABLE); in cppi_controller_start()
212 musb_writel(tibase, DAVINCI_RNDIS_REG, 0); in cppi_controller_start()
213 musb_writel(tibase, DAVINCI_AUTOREQ_REG, 0); in cppi_controller_start()
224 void __iomem *tibase; in cppi_controller_stop() local
230 tibase = controller->tibase; in cppi_controller_stop()
232 musb_writel(tibase, DAVINCI_TXCPPI_INTCLR_REG, in cppi_controller_stop()
234 musb_writel(tibase, DAVINCI_RXCPPI_INTCLR_REG, in cppi_controller_stop()
251 musb_writel(tibase, DAVINCI_TXCPPI_CTRL_REG, DAVINCI_DMA_CTRL_DISABLE); in cppi_controller_stop()
252 musb_writel(tibase, DAVINCI_RXCPPI_CTRL_REG, DAVINCI_DMA_CTRL_DISABLE); in cppi_controller_stop()
263 static inline void core_rxirq_disable(void __iomem *tibase, unsigned epnum) in core_rxirq_disable() argument
265 musb_writel(tibase, DAVINCI_USB_INT_MASK_CLR_REG, 1 << (epnum + 8)); in core_rxirq_disable()
268 static inline void core_rxirq_enable(void __iomem *tibase, unsigned epnum) in core_rxirq_enable() argument
270 musb_writel(tibase, DAVINCI_USB_INT_MASK_SET_REG, 1 << (epnum + 8)); in core_rxirq_enable()
287 void __iomem *tibase; in cppi_channel_allocate() local
291 tibase = controller->tibase; in cppi_channel_allocate()
312 core_rxirq_disable(tibase, ep->epnum); in cppi_channel_allocate()
333 void __iomem *tibase; in cppi_channel_release() local
338 tibase = c->controller->tibase; in cppi_channel_release()
343 core_rxirq_enable(tibase, c->index + 1); in cppi_channel_release()
364 musb_readl(c->controller->tibase, in cppi_dump_rx()
411 void __iomem *tibase, int is_rndis) in cppi_rndis_update() argument
415 u32 value = musb_readl(tibase, DAVINCI_RNDIS_REG); in cppi_rndis_update()
424 musb_writel(tibase, DAVINCI_RNDIS_REG, value); in cppi_rndis_update()
454 void __iomem *tibase, int onepacket, unsigned n_bds) in cppi_autoreq_update() argument
463 tmp = musb_readl(tibase, DAVINCI_AUTOREQ_REG); in cppi_autoreq_update()
484 musb_writel(tibase, DAVINCI_AUTOREQ_REG, val); in cppi_autoreq_update()
486 tmp = musb_readl(tibase, DAVINCI_AUTOREQ_REG); in cppi_autoreq_update()
770 void __iomem *tibase = musb->ctrl_base; in cppi_next_rx_segment() local
809 n_bds = cppi_autoreq_update(rx, tibase, onepacket, n_bds); in cppi_next_rx_segment()
822 musb_readl(tibase, in cppi_next_rx_segment()
895 core_rxirq_enable(tibase, rx->index + 1); in cppi_next_rx_segment()
909 i = musb_readl(tibase, in cppi_next_rx_segment()
914 musb_writel(tibase, in cppi_next_rx_segment()
918 musb_writel(tibase, in cppi_next_rx_segment()
922 i = musb_readl(tibase, in cppi_next_rx_segment()
928 musb_writel(tibase, in cppi_next_rx_segment()
1145 void __iomem *tibase; in cppi_interrupt() local
1155 tibase = musb->ctrl_base; in cppi_interrupt()
1157 tx = musb_readl(tibase, DAVINCI_TXCPPI_MASKED_REG); in cppi_interrupt()
1158 rx = musb_readl(tibase, DAVINCI_RXCPPI_MASKED_REG); in cppi_interrupt()
1283 core_rxirq_disable(tibase, index + 1); in cppi_interrupt()
1289 musb_writel(tibase, DAVINCI_CPPI_EOI_REG, 0); in cppi_interrupt()
1312 controller->tibase = mregs - DAVINCI_BASE_OFFSET; in cppi_dma_controller_create()
1377 void __iomem *tibase; in cppi_channel_abort() local
1405 tibase = controller->tibase; in cppi_channel_abort()
1425 value = musb_readl(tibase, DAVINCI_TXCPPI_TEAR_REG); in cppi_channel_abort()
1427 musb_writel(tibase, DAVINCI_TXCPPI_TEAR_REG, cppi_ch->index); in cppi_channel_abort()
1469 core_rxirq_disable(tibase, cppi_ch->index + 1); in cppi_channel_abort()
1473 value = musb_readl(tibase, DAVINCI_AUTOREQ_REG); in cppi_channel_abort()
1475 musb_writel(tibase, DAVINCI_AUTOREQ_REG, value); in cppi_channel_abort()