Lines Matching refs:csr0

118 	w = readw(&musbr->ep[0].ep0.csr0);  in musb_db_regs()
209 u16 csr0; in musb_peri_ep0_stall() local
211 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_stall()
212 csr0 |= MUSB_CSR0_P_SENDSTALL; in musb_peri_ep0_stall()
213 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0_stall()
220 u16 csr0; in musb_peri_ep0_ack_req() local
222 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_ack_req()
223 csr0 |= MUSB_CSR0_P_SVDRXPKTRDY; in musb_peri_ep0_ack_req()
224 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0_ack_req()
229 u16 csr0; in musb_ep0_tx_ready() local
231 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_ep0_tx_ready()
232 csr0 |= MUSB_CSR0_TXPKTRDY; in musb_ep0_tx_ready()
233 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_ep0_tx_ready()
238 u16 csr0; in musb_ep0_tx_ready_and_last() local
240 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_ep0_tx_ready_and_last()
241 csr0 |= (MUSB_CSR0_TXPKTRDY | MUSB_CSR0_P_DATAEND); in musb_ep0_tx_ready_and_last()
242 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_ep0_tx_ready_and_last()
247 u16 csr0; in musb_peri_ep0_last() local
249 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_last()
250 csr0 |= MUSB_CSR0_P_DATAEND; in musb_peri_ep0_last()
251 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0_last()
365 u16 csr0; in musb_peri_ep0_idle() local
392 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_idle()
394 if (!(MUSB_CSR0_RXPKTRDY & csr0)) in musb_peri_ep0_idle()
455 u16 csr0; in musb_peri_ep0_rx() local
474 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_rx()
475 if (!(MUSB_CSR0_RXPKTRDY & csr0)) in musb_peri_ep0_rx()
534 u16 csr0; in musb_peri_ep0_tx() local
538 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_tx()
541 if (csr0 & MUSB_CSR0_TXPKTRDY) in musb_peri_ep0_tx()
578 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0_tx()
579 if (!(csr0 & MUSB_CSR0_TXPKTRDY)) in musb_peri_ep0_tx()
595 u16 csr0; in musb_peri_ep0() local
600 csr0 = readw(&musbr->ep[0].ep0.csr0); in musb_peri_ep0()
603 if (MUSB_CSR0_P_SENTSTALL & csr0) { in musb_peri_ep0()
604 csr0 &= ~MUSB_CSR0_P_SENTSTALL; in musb_peri_ep0()
605 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0()
608 if (MUSB_CSR0_P_SETUPEND & csr0) { in musb_peri_ep0()
609 csr0 |= MUSB_CSR0_P_SVDSETUPEND; in musb_peri_ep0()
610 writew(csr0, &musbr->ep[0].ep0.csr0); in musb_peri_ep0()