Lines Matching refs:epio
89 void __iomem *epio = ep->regs; in musb_h_tx_flush_fifo() local
93 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_tx_flush_fifo()
96 musb_writew(epio, MUSB_TXCSR, csr); in musb_h_tx_flush_fifo()
97 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_tx_flush_fifo()
123 void __iomem *epio = ep->regs; in musb_h_ep0_flush_fifo() local
129 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_ep0_flush_fifo()
132 musb_writew(epio, MUSB_TXCSR, MUSB_CSR0_FLUSHFIFO); in musb_h_ep0_flush_fifo()
133 csr = musb_readw(epio, MUSB_TXCSR); in musb_h_ep0_flush_fifo()
141 musb_writew(epio, MUSB_TXCSR, 0); in musb_h_ep0_flush_fifo()
293 void __iomem *epio = qh->hw_ep->regs; in musb_save_toggle() local
302 csr = musb_readw(epio, MUSB_RXCSR) & MUSB_RXCSR_H_DATATOGGLE; in musb_save_toggle()
304 csr = musb_readw(epio, MUSB_TXCSR) & MUSB_TXCSR_H_DATATOGGLE; in musb_save_toggle()
434 void __iomem *epio = hw_ep->regs; in musb_host_packet_rx() local
440 rx_count = musb_readw(epio, MUSB_RXCOUNT); in musb_host_packet_rx()
502 csr = musb_readw(epio, MUSB_RXCSR); in musb_host_packet_rx()
511 musb_writew(epio, MUSB_RXCSR, csr); in musb_host_packet_rx()
590 void __iomem *epio = hw_ep->regs; in musb_tx_dma_set_mode_mentor() local
597 csr = musb_readw(epio, MUSB_TXCSR); in musb_tx_dma_set_mode_mentor()
620 musb_writew(epio, MUSB_TXCSR, csr); in musb_tx_dma_set_mode_mentor()
669 void __iomem *epio = hw_ep->regs; in musb_tx_dma_program() local
675 csr = musb_readw(epio, MUSB_TXCSR); in musb_tx_dma_program()
677 musb_writew(epio, MUSB_TXCSR, csr | MUSB_TXCSR_H_WZC_BITS); in musb_tx_dma_program()
696 void __iomem *epio = hw_ep->regs; in musb_ep_program() local
714 csr = musb_readw(epio, MUSB_TXCSR); in musb_ep_program()
716 musb_writew(epio, MUSB_TXCSR, csr); in musb_ep_program()
743 csr = musb_readw(epio, MUSB_TXCSR); in musb_ep_program()
783 musb_writew(epio, MUSB_TXCSR, csr); in musb_ep_program()
786 musb_writew(epio, MUSB_TXCSR, csr); in musb_ep_program()
787 csr = musb_readw(epio, MUSB_TXCSR); in musb_ep_program()
804 musb_writeb(epio, MUSB_TXTYPE, qh->type_reg); in musb_ep_program()
808 musb_writew(epio, MUSB_TXMAXP, packet_sz in musb_ep_program()
811 musb_writew(epio, MUSB_TXMAXP, in musb_ep_program()
815 musb_writeb(epio, MUSB_TXINTERVAL, qh->intv_reg); in musb_ep_program()
817 musb_writeb(epio, MUSB_NAKLIMIT0, qh->intv_reg); in musb_ep_program()
819 musb_writeb(epio, MUSB_TYPE0, in musb_ep_program()
933 void __iomem *epio = ep->regs; in musb_bulk_nak_timeout() local
946 rx_csr = musb_readw(epio, MUSB_RXCSR); in musb_bulk_nak_timeout()
949 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_bulk_nak_timeout()
951 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_bulk_nak_timeout()
958 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_bulk_nak_timeout()
961 musb_writew(epio, MUSB_TXCSR, tx_csr); in musb_bulk_nak_timeout()
1087 void __iomem *epio = hw_ep->regs; in musb_h_ep0_irq() local
1096 csr = musb_readw(epio, MUSB_CSR0); in musb_h_ep0_irq()
1098 ? musb_readb(epio, MUSB_COUNT0) in musb_h_ep0_irq()
1130 musb_writew(epio, MUSB_CSR0, 0); in musb_h_ep0_irq()
1144 musb_writew(epio, MUSB_CSR0, csr); in musb_h_ep0_irq()
1146 musb_writew(epio, MUSB_CSR0, csr); in musb_h_ep0_irq()
1151 musb_writeb(epio, MUSB_NAKLIMIT0, 0); in musb_h_ep0_irq()
1154 musb_writew(epio, MUSB_CSR0, 0); in musb_h_ep0_irq()
1191 musb_writew(epio, MUSB_CSR0, csr); in musb_h_ep0_irq()
1229 void __iomem *epio = hw_ep->regs; in musb_host_tx() local
1238 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1282 musb_writew(epio, MUSB_TXCSR, in musb_host_tx()
1308 musb_writew(epio, MUSB_TXCSR, tx_csr); in musb_host_tx()
1310 musb_writew(epio, MUSB_TXCSR, tx_csr); in musb_host_tx()
1311 musb_writeb(epio, MUSB_TXINTERVAL, 0); in musb_host_tx()
1348 tx_csr &= musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1352 musb_writew(epio, MUSB_TXCSR, in musb_host_tx()
1357 musb_writew(epio, MUSB_TXCSR, in musb_host_tx()
1366 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1493 musb_writew(epio, MUSB_TXCSR, in musb_host_tx()
1506 void __iomem *epio = hw_ep->regs; in musb_rx_dma_iso_cppi41() local
1516 val = musb_readw(epio, MUSB_RXCSR); in musb_rx_dma_iso_cppi41()
1577 void __iomem *epio = hw_ep->regs; in musb_rx_dma_inventra_cppi41() local
1616 val = musb_readw(epio, MUSB_RXCSR); in musb_rx_dma_inventra_cppi41()
1618 musb_writew(epio, MUSB_RXCSR, MUSB_RXCSR_H_WZC_BITS | val); in musb_rx_dma_inventra_cppi41()
1648 void __iomem *epio = hw_ep->regs; in musb_rx_dma_in_inventra_cppi41() local
1654 rx_count = musb_readw(epio, MUSB_RXCOUNT); in musb_rx_dma_in_inventra_cppi41()
1703 val = musb_readw(epio, MUSB_RXCSR); in musb_rx_dma_in_inventra_cppi41()
1716 musb_writew(epio, MUSB_RXCSR, MUSB_RXCSR_H_WZC_BITS | val); in musb_rx_dma_in_inventra_cppi41()
1730 val = musb_readw(epio, MUSB_RXCSR); in musb_rx_dma_in_inventra_cppi41()
1734 musb_writew(epio, MUSB_RXCSR, val); in musb_rx_dma_in_inventra_cppi41()
1769 void __iomem *epio = hw_ep->regs; in musb_host_rx() local
1787 rx_csr = musb_readw(epio, MUSB_RXCSR); in musb_host_rx()
1796 epnum, val, musb_readw(epio, MUSB_RXCOUNT)); in musb_host_rx()
1815 musb_writeb(epio, MUSB_RXINTERVAL, 0); in musb_host_rx()
1818 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_host_rx()
1842 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_host_rx()
1865 musb_writeb(epio, MUSB_RXINTERVAL, 0); in musb_host_rx()
1901 musb_writew(epio, MUSB_RXCSR, in musb_host_rx()
1920 musb_readw(epio, MUSB_RXCSR), in musb_host_rx()
1921 musb_readw(epio, MUSB_RXCOUNT)); in musb_host_rx()
1938 musb_writew(epio, MUSB_RXCSR, val); in musb_host_rx()
1947 epnum, musb_readw(epio, MUSB_RXCOUNT), in musb_host_rx()
2339 void __iomem *epio = ep->regs; in musb_cleanup_urb() local
2370 csr = musb_readw(epio, MUSB_TXCSR); in musb_cleanup_urb()
2377 musb_writew(epio, MUSB_TXCSR, csr); in musb_cleanup_urb()
2379 musb_writew(epio, MUSB_TXCSR, csr); in musb_cleanup_urb()
2381 csr = musb_readw(epio, MUSB_TXCSR); in musb_cleanup_urb()