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()
422 void __iomem *epio = hw_ep->regs; in musb_host_packet_rx() local
428 rx_count = musb_readw(epio, MUSB_RXCOUNT); in musb_host_packet_rx()
490 csr = musb_readw(epio, MUSB_RXCSR); in musb_host_packet_rx()
499 musb_writew(epio, MUSB_RXCSR, csr); in musb_host_packet_rx()
577 void __iomem *epio = hw_ep->regs; in musb_tx_dma_set_mode_mentor() local
584 csr = musb_readw(epio, MUSB_TXCSR); in musb_tx_dma_set_mode_mentor()
607 musb_writew(epio, MUSB_TXCSR, csr); in musb_tx_dma_set_mode_mentor()
651 void __iomem *epio = hw_ep->regs; in musb_tx_dma_program() local
657 csr = musb_readw(epio, MUSB_TXCSR); in musb_tx_dma_program()
659 musb_writew(epio, MUSB_TXCSR, csr | MUSB_TXCSR_H_WZC_BITS); in musb_tx_dma_program()
678 void __iomem *epio = hw_ep->regs; in musb_ep_program() local
696 csr = musb_readw(epio, MUSB_TXCSR); in musb_ep_program()
698 musb_writew(epio, MUSB_TXCSR, csr); in musb_ep_program()
725 csr = musb_readw(epio, MUSB_TXCSR); in musb_ep_program()
760 musb_writew(epio, MUSB_TXCSR, csr); in musb_ep_program()
763 musb_writew(epio, MUSB_TXCSR, csr); in musb_ep_program()
764 csr = musb_readw(epio, MUSB_TXCSR); in musb_ep_program()
781 musb_writeb(epio, MUSB_TXTYPE, qh->type_reg); in musb_ep_program()
785 musb_writew(epio, MUSB_TXMAXP, packet_sz in musb_ep_program()
788 musb_writew(epio, MUSB_TXMAXP, in musb_ep_program()
792 musb_writeb(epio, MUSB_TXINTERVAL, qh->intv_reg); in musb_ep_program()
794 musb_writeb(epio, MUSB_NAKLIMIT0, qh->intv_reg); in musb_ep_program()
796 musb_writeb(epio, MUSB_TYPE0, in musb_ep_program()
905 void __iomem *epio = ep->regs; in musb_bulk_nak_timeout() local
919 rx_csr = musb_readw(epio, MUSB_RXCSR); in musb_bulk_nak_timeout()
922 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_bulk_nak_timeout()
924 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_bulk_nak_timeout()
931 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_bulk_nak_timeout()
934 musb_writew(epio, MUSB_TXCSR, tx_csr); in musb_bulk_nak_timeout()
1061 void __iomem *epio = hw_ep->regs; in musb_h_ep0_irq() local
1070 csr = musb_readw(epio, MUSB_CSR0); in musb_h_ep0_irq()
1072 ? musb_readb(epio, MUSB_COUNT0) in musb_h_ep0_irq()
1104 musb_writew(epio, MUSB_CSR0, 0); in musb_h_ep0_irq()
1118 musb_writew(epio, MUSB_CSR0, csr); in musb_h_ep0_irq()
1120 musb_writew(epio, MUSB_CSR0, csr); in musb_h_ep0_irq()
1125 musb_writeb(epio, MUSB_NAKLIMIT0, 0); in musb_h_ep0_irq()
1128 musb_writew(epio, MUSB_CSR0, 0); in musb_h_ep0_irq()
1165 musb_writew(epio, MUSB_CSR0, csr); in musb_h_ep0_irq()
1203 void __iomem *epio = hw_ep->regs; in musb_host_tx() local
1212 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1256 musb_writew(epio, MUSB_TXCSR, in musb_host_tx()
1282 musb_writew(epio, MUSB_TXCSR, tx_csr); in musb_host_tx()
1284 musb_writew(epio, MUSB_TXCSR, tx_csr); in musb_host_tx()
1285 musb_writeb(epio, MUSB_TXINTERVAL, 0); in musb_host_tx()
1322 tx_csr &= musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1326 musb_writew(epio, MUSB_TXCSR, in musb_host_tx()
1331 musb_writew(epio, MUSB_TXCSR, in musb_host_tx()
1340 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1458 musb_writew(epio, MUSB_TXCSR, in musb_host_tx()
1471 void __iomem *epio = hw_ep->regs; in musb_rx_dma_iso_cppi41() local
1481 val = musb_readw(epio, MUSB_RXCSR); in musb_rx_dma_iso_cppi41()
1542 void __iomem *epio = hw_ep->regs; in musb_rx_dma_inventra_cppi41() local
1581 val = musb_readw(epio, MUSB_RXCSR); in musb_rx_dma_inventra_cppi41()
1583 musb_writew(epio, MUSB_RXCSR, MUSB_RXCSR_H_WZC_BITS | val); in musb_rx_dma_inventra_cppi41()
1613 void __iomem *epio = hw_ep->regs; in musb_rx_dma_in_inventra_cppi41() local
1619 rx_count = musb_readw(epio, MUSB_RXCOUNT); in musb_rx_dma_in_inventra_cppi41()
1668 val = musb_readw(epio, MUSB_RXCSR); in musb_rx_dma_in_inventra_cppi41()
1681 musb_writew(epio, MUSB_RXCSR, MUSB_RXCSR_H_WZC_BITS | val); in musb_rx_dma_in_inventra_cppi41()
1695 val = musb_readw(epio, MUSB_RXCSR); in musb_rx_dma_in_inventra_cppi41()
1699 musb_writew(epio, MUSB_RXCSR, val); in musb_rx_dma_in_inventra_cppi41()
1734 void __iomem *epio = hw_ep->regs; in musb_host_rx() local
1752 rx_csr = musb_readw(epio, MUSB_RXCSR); in musb_host_rx()
1761 epnum, val, musb_readw(epio, MUSB_RXCOUNT)); in musb_host_rx()
1786 musb_writeb(epio, MUSB_RXINTERVAL, 0); in musb_host_rx()
1789 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_host_rx()
1813 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_host_rx()
1836 musb_writeb(epio, MUSB_RXINTERVAL, 0); in musb_host_rx()
1872 musb_writew(epio, MUSB_RXCSR, in musb_host_rx()
1891 musb_readw(epio, MUSB_RXCSR), in musb_host_rx()
1892 musb_readw(epio, MUSB_RXCOUNT)); in musb_host_rx()
1909 musb_writew(epio, MUSB_RXCSR, val); in musb_host_rx()
1918 epnum, musb_readw(epio, MUSB_RXCOUNT), in musb_host_rx()
2312 void __iomem *epio = ep->regs; in musb_cleanup_urb() local
2343 csr = musb_readw(epio, MUSB_TXCSR); in musb_cleanup_urb()
2350 musb_writew(epio, MUSB_TXCSR, csr); in musb_cleanup_urb()
2352 musb_writew(epio, MUSB_TXCSR, csr); in musb_cleanup_urb()
2354 csr = musb_readw(epio, MUSB_TXCSR); in musb_cleanup_urb()