Lines Matching refs:csr

243 				u16			csr;  in service_zero_data_request()  local
266 csr = musb_readw(regs, MUSB_TXCSR); in service_zero_data_request()
267 csr |= MUSB_TXCSR_CLRDATATOG | in service_zero_data_request()
269 csr &= ~(MUSB_TXCSR_P_SENDSTALL | in service_zero_data_request()
272 musb_writew(regs, MUSB_TXCSR, csr); in service_zero_data_request()
274 csr = musb_readw(regs, MUSB_RXCSR); in service_zero_data_request()
275 csr |= MUSB_RXCSR_CLRDATATOG | in service_zero_data_request()
277 csr &= ~(MUSB_RXCSR_P_SENDSTALL | in service_zero_data_request()
279 musb_writew(regs, MUSB_RXCSR, csr); in service_zero_data_request()
403 u16 csr; in service_zero_data_request() local
421 csr = musb_readw(regs, MUSB_TXCSR); in service_zero_data_request()
422 if (csr & MUSB_TXCSR_FIFONOTEMPTY) in service_zero_data_request()
423 csr |= MUSB_TXCSR_FLUSHFIFO; in service_zero_data_request()
424 csr |= MUSB_TXCSR_P_SENDSTALL in service_zero_data_request()
427 musb_writew(regs, MUSB_TXCSR, csr); in service_zero_data_request()
429 csr = musb_readw(regs, MUSB_RXCSR); in service_zero_data_request()
430 csr |= MUSB_RXCSR_P_SENDSTALL in service_zero_data_request()
434 musb_writew(regs, MUSB_RXCSR, csr); in service_zero_data_request()
465 u16 count, csr; in ep0_rxstate() local
487 csr = MUSB_CSR0_P_SVDRXPKTRDY; in ep0_rxstate()
490 csr |= MUSB_CSR0_P_DATAEND; in ep0_rxstate()
494 csr = MUSB_CSR0_P_SVDRXPKTRDY | MUSB_CSR0_P_SENDSTALL; in ep0_rxstate()
501 musb->ackpend = csr; in ep0_rxstate()
508 musb_writew(regs, MUSB_CSR0, csr); in ep0_rxstate()
522 u16 csr = MUSB_CSR0_TXPKTRDY; in ep0_txstate() local
546 csr |= MUSB_CSR0_P_DATAEND; in ep0_txstate()
556 musb->ackpend = csr; in ep0_txstate()
565 musb_writew(regs, MUSB_CSR0, csr); in ep0_txstate()
643 u16 csr; in musb_g_ep0_irq() local
650 csr = musb_readw(regs, MUSB_CSR0); in musb_g_ep0_irq()
654 csr, len, decode_ep0stage(musb->ep0_state)); in musb_g_ep0_irq()
656 if (csr & MUSB_CSR0_P_DATAEND) { in musb_g_ep0_irq()
665 if (csr & MUSB_CSR0_P_SENTSTALL) { in musb_g_ep0_irq()
667 csr & ~MUSB_CSR0_P_SENTSTALL); in musb_g_ep0_irq()
670 csr = musb_readw(regs, MUSB_CSR0); in musb_g_ep0_irq()
674 if (csr & MUSB_CSR0_P_SETUPEND) { in musb_g_ep0_irq()
689 csr = musb_readw(regs, MUSB_CSR0); in musb_g_ep0_irq()
701 if ((csr & MUSB_CSR0_TXPKTRDY) == 0) { in musb_g_ep0_irq()
709 if (csr & MUSB_CSR0_RXPKTRDY) { in musb_g_ep0_irq()
754 if (csr & MUSB_CSR0_RXPKTRDY) in musb_g_ep0_irq()
774 if (csr & MUSB_CSR0_RXPKTRDY) { in musb_g_ep0_irq()
843 handled, csr, in musb_g_ep0_irq()
997 u16 csr; in musb_g_ep0_halt() local
1016 csr = musb->ackpend; in musb_g_ep0_halt()
1026 csr = musb_readw(regs, MUSB_CSR0); in musb_g_ep0_halt()
1035 csr |= MUSB_CSR0_P_SENDSTALL; in musb_g_ep0_halt()
1036 musb_writew(regs, MUSB_CSR0, csr); in musb_g_ep0_halt()