Lines Matching full:rx_csr
907 u16 rx_csr, tx_csr; in musb_bulk_nak_timeout() local
919 rx_csr = musb_readw(epio, MUSB_RXCSR); in musb_bulk_nak_timeout()
920 rx_csr |= MUSB_RXCSR_H_WZC_BITS; in musb_bulk_nak_timeout()
921 rx_csr &= ~MUSB_RXCSR_H_REQPKT; in musb_bulk_nak_timeout()
922 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_bulk_nak_timeout()
923 rx_csr &= ~MUSB_RXCSR_DATAERROR; in musb_bulk_nak_timeout()
924 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_bulk_nak_timeout()
1738 u16 rx_csr, val; in musb_host_rx() local
1752 rx_csr = musb_readw(epio, MUSB_RXCSR); in musb_host_rx()
1753 val = rx_csr; in musb_host_rx()
1770 if (rx_csr & MUSB_RXCSR_H_RXSTALL) { in musb_host_rx()
1776 } else if (rx_csr & MUSB_RXCSR_H_ERROR) { in musb_host_rx()
1788 rx_csr &= ~MUSB_RXCSR_H_ERROR; in musb_host_rx()
1789 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_host_rx()
1791 } else if (rx_csr & MUSB_RXCSR_DATAERROR) { in musb_host_rx()
1811 rx_csr |= MUSB_RXCSR_H_WZC_BITS; in musb_host_rx()
1812 rx_csr &= ~MUSB_RXCSR_DATAERROR; in musb_host_rx()
1813 musb_writew(epio, MUSB_RXCSR, rx_csr); in musb_host_rx()
1821 } else if (rx_csr & MUSB_RXCSR_INCOMPRX) { in musb_host_rx()
1843 ERR("RX%d dma busy, csr %04x\n", epnum, rx_csr); in musb_host_rx()
1854 (rx_csr & MUSB_RXCSR_H_REQPKT)) { in musb_host_rx()
1867 musb_dbg(musb, "RXCSR%d %04x, reqpkt, len %zu%s", epnum, rx_csr, in musb_host_rx()
1869 rx_csr &= ~MUSB_RXCSR_H_REQPKT; in musb_host_rx()
1873 MUSB_RXCSR_H_WZC_BITS | rx_csr); in musb_host_rx()
1876 if (dma && (rx_csr & MUSB_RXCSR_DMAENAB)) { in musb_host_rx()
1899 if (unlikely(!(rx_csr & MUSB_RXCSR_RXPKTRDY))) { in musb_host_rx()