Lines Matching refs:tx_csr
935 u16 rx_csr, tx_csr; in musb_bulk_nak_timeout() local
958 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_bulk_nak_timeout()
959 tx_csr |= MUSB_TXCSR_H_WZC_BITS; in musb_bulk_nak_timeout()
960 tx_csr &= ~MUSB_TXCSR_H_NAKTIMEOUT; in musb_bulk_nak_timeout()
961 musb_writew(epio, MUSB_TXCSR, tx_csr); in musb_bulk_nak_timeout()
1225 u16 tx_csr; in musb_host_tx() local
1238 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1242 musb_dbg(musb, "extra TX%d ready, csr %04x", epnum, tx_csr); in musb_host_tx()
1249 musb_dbg(musb, "OUT/TX%d end, csr %04x%s", epnum, tx_csr, in musb_host_tx()
1253 if (tx_csr & MUSB_TXCSR_H_RXSTALL) { in musb_host_tx()
1260 } else if (tx_csr & MUSB_TXCSR_H_ERROR) { in musb_host_tx()
1266 } else if (tx_csr & MUSB_TXCSR_H_NAKTIMEOUT) { in musb_host_tx()
1300 tx_csr &= ~(MUSB_TXCSR_AUTOSET 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()
1318 musb_dbg(musb, "extra TX%d ready, csr %04x", epnum, tx_csr); in musb_host_tx()
1331 if (tx_csr & MUSB_TXCSR_DMAMODE) { in musb_host_tx()
1348 tx_csr &= musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1349 if (tx_csr & MUSB_TXCSR_TXPKTRDY) { in musb_host_tx()
1350 tx_csr &= ~(MUSB_TXCSR_DMAENAB | in musb_host_tx()
1353 tx_csr | MUSB_TXCSR_H_WZC_BITS); in musb_host_tx()
1355 tx_csr &= ~(MUSB_TXCSR_DMAMODE | in musb_host_tx()
1358 tx_csr | MUSB_TXCSR_H_WZC_BITS); in musb_host_tx()
1366 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1376 if (tx_csr & (MUSB_TXCSR_FIFONOTEMPTY | MUSB_TXCSR_TXPKTRDY)) { in musb_host_tx()
1379 tx_csr); in musb_host_tx()
1444 } else if (tx_csr & MUSB_TXCSR_DMAENAB) { in musb_host_tx()