Lines Matching full:csr

56 	u16 csr;  in save_rx_toggle()  local
64 csr = musb_readw(cppi41_channel->hw_ep->regs, MUSB_RXCSR); in save_rx_toggle()
65 toggle = csr & MUSB_RXCSR_H_DATATOGGLE ? 1 : 0; in save_rx_toggle()
74 u16 csr; in update_rx_toggle() local
83 csr = musb_readw(hw_ep->regs, MUSB_RXCSR); in update_rx_toggle()
84 toggle = csr & MUSB_RXCSR_H_DATATOGGLE ? 1 : 0; in update_rx_toggle()
92 csr |= MUSB_RXCSR_H_DATATOGGLE | MUSB_RXCSR_H_WR_DATATOGGLE; in update_rx_toggle()
93 musb_writew(cppi41_channel->hw_ep->regs, MUSB_RXCSR, csr); in update_rx_toggle()
105 u16 csr; in musb_is_tx_fifo_empty() local
108 csr = musb_readw(epio, MUSB_TXCSR); in musb_is_tx_fifo_empty()
109 if (csr & MUSB_TXCSR_TXPKTRDY) in musb_is_tx_fifo_empty()
122 u16 csr; in cppi41_trans_done() local
140 csr = MUSB_TXCSR_MODE | MUSB_TXCSR_TXPKTRDY; in cppi41_trans_done()
141 musb_writew(epio, MUSB_TXCSR, csr); in cppi41_trans_done()
178 csr = musb_readw(epio, MUSB_RXCSR); in cppi41_trans_done()
179 csr |= MUSB_RXCSR_H_REQPKT; in cppi41_trans_done()
180 musb_writew(epio, MUSB_RXCSR, csr); in cppi41_trans_done()
582 u16 csr; in cppi41_dma_channel_abort() local
592 csr = musb_readw(epio, MUSB_TXCSR); in cppi41_dma_channel_abort()
593 csr &= ~MUSB_TXCSR_DMAENAB; in cppi41_dma_channel_abort()
594 musb_writew(epio, MUSB_TXCSR, csr); in cppi41_dma_channel_abort()
601 csr = musb_readw(epio, MUSB_RXCSR); in cppi41_dma_channel_abort()
602 csr &= ~(MUSB_RXCSR_H_REQPKT | MUSB_RXCSR_DMAENAB); in cppi41_dma_channel_abort()
603 musb_writew(epio, MUSB_RXCSR, csr); in cppi41_dma_channel_abort()
608 csr = musb_readw(epio, MUSB_RXCSR); in cppi41_dma_channel_abort()
609 if (csr & MUSB_RXCSR_RXPKTRDY) { in cppi41_dma_channel_abort()
610 csr |= MUSB_RXCSR_FLUSHFIFO; in cppi41_dma_channel_abort()
611 musb_writew(epio, MUSB_RXCSR, csr); in cppi41_dma_channel_abort()
612 musb_writew(epio, MUSB_RXCSR, csr); in cppi41_dma_channel_abort()
634 csr = musb_readw(epio, MUSB_TXCSR); in cppi41_dma_channel_abort()
635 if (csr & MUSB_TXCSR_TXPKTRDY) { in cppi41_dma_channel_abort()
636 csr |= MUSB_TXCSR_FLUSHFIFO; in cppi41_dma_channel_abort()
637 musb_writew(epio, MUSB_TXCSR, csr); in cppi41_dma_channel_abort()