Lines Matching refs:cpmac_read
143 #define cpmac_read(base, reg) (readl((void __iomem *)(base) + (reg))) macro
223 printk(" %08x", cpmac_read(priv->regs, i)); in cpmac_dump_regs()
269 while (cpmac_read(bus->priv, CPMAC_MDIO_ACCESS(0)) & MDIO_BUSY) in cpmac_mdio_read()
273 while ((val = cpmac_read(bus->priv, CPMAC_MDIO_ACCESS(0))) & MDIO_BUSY) in cpmac_mdio_read()
282 while (cpmac_read(bus->priv, CPMAC_MDIO_ACCESS(0)) & MDIO_BUSY) in cpmac_mdio_write()
315 mbp = cpmac_read(priv->regs, CPMAC_MBP); in cpmac_set_multicast_list()
517 cpmac_read(priv->regs, CPMAC_RX_PTR(0)), in cpmac_poll()
518 cpmac_read(priv->regs, CPMAC_RX_ACK(0))); in cpmac_poll()
619 cpmac_read(priv->regs, CPMAC_RX_CONTROL) & ~1); in cpmac_hw_stop()
621 cpmac_read(priv->regs, CPMAC_TX_CONTROL) & ~1); in cpmac_hw_stop()
631 cpmac_read(priv->regs, CPMAC_MAC_CONTROL) & ~MAC_MII); in cpmac_hw_stop()
667 cpmac_read(priv->regs, CPMAC_RX_CONTROL) | 1); in cpmac_hw_start()
669 cpmac_read(priv->regs, CPMAC_TX_CONTROL) | 1); in cpmac_hw_start()
671 cpmac_read(priv->regs, CPMAC_MAC_CONTROL) | MAC_MII | in cpmac_hw_start()
736 u32 macstatus = cpmac_read(priv->regs, CPMAC_MAC_STATUS); in cpmac_check_status()
776 status = cpmac_read(priv->regs, CPMAC_MAC_INT_VECTOR); in cpmac_irq()
1204 mask = cpmac_read(cpmac_mii->priv, CPMAC_MDIO_ALIVE); in cpmac_init()