Lines Matching refs:mr0
211 r = in_be32(&p->mr0); in emac_tx_enable()
213 out_be32(&p->mr0, r | EMAC_MR0_TXE); in emac_tx_enable()
223 r = in_be32(&p->mr0); in emac_tx_disable()
226 out_be32(&p->mr0, r & ~EMAC_MR0_TXE); in emac_tx_disable()
227 while (!(in_be32(&p->mr0) & EMAC_MR0_TXI) && n) { in emac_tx_disable()
246 r = in_be32(&p->mr0); in emac_rx_enable()
251 while (!(r = in_be32(&p->mr0) & EMAC_MR0_RXI) && n) { in emac_rx_enable()
259 out_be32(&p->mr0, r | EMAC_MR0_RXE); in emac_rx_enable()
272 r = in_be32(&p->mr0); in emac_rx_disable()
275 out_be32(&p->mr0, r & ~EMAC_MR0_RXE); in emac_rx_disable()
276 while (!(in_be32(&p->mr0) & EMAC_MR0_RXI) && n) { in emac_rx_disable()
324 r = in_be32(&p->mr0); in emac_rx_disable_async()
326 out_be32(&p->mr0, r & ~EMAC_MR0_RXE); in emac_rx_disable_async()
378 out_be32(&p->mr0, EMAC_MR0_SRST); in emac_reset()
379 while ((in_be32(&p->mr0) & EMAC_MR0_SRST) && n) in emac_reset()