Lines Matching refs:csr0
121 w = readw(&musbr->ep[0].ep0.csr0); in musb_db_regs()
212 u16 csr0; in musb_peri_ep0_stall() local
214 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_stall()
215 csr0 |= MUSB_CSR0_P_SENDSTALL; in musb_peri_ep0_stall()
216 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0_stall()
223 u16 csr0; in musb_peri_ep0_ack_req() local
225 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_ack_req()
226 csr0 |= MUSB_CSR0_P_SVDRXPKTRDY; in musb_peri_ep0_ack_req()
227 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0_ack_req()
232 u16 csr0; in musb_ep0_tx_ready() local
234 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_ep0_tx_ready()
235 csr0 |= MUSB_CSR0_TXPKTRDY; in musb_ep0_tx_ready()
236 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_ep0_tx_ready()
241 u16 csr0; in musb_ep0_tx_ready_and_last() local
243 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_ep0_tx_ready_and_last()
244 csr0 |= (MUSB_CSR0_TXPKTRDY | MUSB_CSR0_P_DATAEND); in musb_ep0_tx_ready_and_last()
245 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_ep0_tx_ready_and_last()
250 u16 csr0; in musb_peri_ep0_last() local
252 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_last()
253 csr0 |= MUSB_CSR0_P_DATAEND; in musb_peri_ep0_last()
254 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0_last()
368 u16 csr0; in musb_peri_ep0_idle() local
395 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_idle()
397 if (!(MUSB_CSR0_RXPKTRDY & csr0)) in musb_peri_ep0_idle()
458 u16 csr0; in musb_peri_ep0_rx() local
477 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_rx()
478 if (!(MUSB_CSR0_RXPKTRDY & csr0)) in musb_peri_ep0_rx()
537 u16 csr0; in musb_peri_ep0_tx() local
541 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_tx()
544 if (csr0 & MUSB_CSR0_TXPKTRDY) in musb_peri_ep0_tx()
581 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_tx()
582 if (!(csr0 & MUSB_CSR0_TXPKTRDY)) in musb_peri_ep0_tx()
598 u16 csr0; in musb_peri_ep0() local
603 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0()
606 if (MUSB_CSR0_P_SENTSTALL & csr0) { in musb_peri_ep0()
607 csr0 &= ~MUSB_CSR0_P_SENTSTALL; in musb_peri_ep0()
608 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0()
611 if (MUSB_CSR0_P_SETUPEND & csr0) { in musb_peri_ep0()
612 csr0 |= MUSB_CSR0_P_SVDSETUPEND; in musb_peri_ep0()
613 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0()