Lines Matching refs:tx_csr
1106 u16 tx_csr; in musb_host_tx() local
1119 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1123 dev_dbg(musb->controller, "extra TX%d ready, csr %04x\n", epnum, tx_csr); in musb_host_tx()
1129 dev_dbg(musb->controller, "OUT/TX%d end, csr %04x%s\n", epnum, tx_csr, in musb_host_tx()
1133 if (tx_csr & MUSB_TXCSR_H_RXSTALL) { in musb_host_tx()
1140 } else if (tx_csr & MUSB_TXCSR_H_ERROR) { in musb_host_tx()
1146 } else if (tx_csr & MUSB_TXCSR_H_NAKTIMEOUT) { in musb_host_tx()
1174 tx_csr &= ~(MUSB_TXCSR_AUTOSET in musb_host_tx()
1182 musb_writew(epio, MUSB_TXCSR, tx_csr); in musb_host_tx()
1184 musb_writew(epio, MUSB_TXCSR, tx_csr); in musb_host_tx()
1192 dev_dbg(musb->controller, "extra TX%d ready, csr %04x\n", epnum, tx_csr); in musb_host_tx()
1205 if (tx_csr & MUSB_TXCSR_DMAMODE) { in musb_host_tx()
1222 tx_csr &= musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1223 if (tx_csr & MUSB_TXCSR_TXPKTRDY) { in musb_host_tx()
1224 tx_csr &= ~(MUSB_TXCSR_DMAENAB | in musb_host_tx()
1227 tx_csr | MUSB_TXCSR_H_WZC_BITS); in musb_host_tx()
1229 tx_csr &= ~(MUSB_TXCSR_DMAMODE | in musb_host_tx()
1232 tx_csr | MUSB_TXCSR_H_WZC_BITS); in musb_host_tx()
1240 tx_csr = musb_readw(epio, MUSB_TXCSR); in musb_host_tx()
1250 if (tx_csr & (MUSB_TXCSR_FIFONOTEMPTY | MUSB_TXCSR_TXPKTRDY)) { in musb_host_tx()
1252 "CSR %04x\n", tx_csr); in musb_host_tx()
1319 } else if (tx_csr & MUSB_TXCSR_DMAENAB) { in musb_host_tx()