Searched refs:phycr (Results 1 – 3 of 3) sorted by relevance
792 unsigned int phycr; in ftmac100_mdio_read() local795 phycr = FTMAC100_PHYCR_PHYAD(phy_id) | in ftmac100_mdio_read()799 iowrite32(phycr, priv->base + FTMAC100_OFFSET_PHYCR); in ftmac100_mdio_read()802 phycr = ioread32(priv->base + FTMAC100_OFFSET_PHYCR); in ftmac100_mdio_read()804 if ((phycr & FTMAC100_PHYCR_MIIRD) == 0) in ftmac100_mdio_read()805 return phycr & FTMAC100_PHYCR_MIIRDATA; in ftmac100_mdio_read()818 unsigned int phycr; in ftmac100_mdio_write() local821 phycr = FTMAC100_PHYCR_PHYAD(phy_id) | in ftmac100_mdio_write()828 iowrite32(phycr, priv->base + FTMAC100_OFFSET_PHYCR); in ftmac100_mdio_write()831 phycr = ioread32(priv->base + FTMAC100_OFFSET_PHYCR); in ftmac100_mdio_write()[all …]
1002 unsigned int phycr; in ftgmac100_mdiobus_read() local1005 phycr = ioread32(priv->base + FTGMAC100_OFFSET_PHYCR); in ftgmac100_mdiobus_read()1008 phycr &= FTGMAC100_PHYCR_MDC_CYCTHR_MASK; in ftgmac100_mdiobus_read()1010 phycr |= FTGMAC100_PHYCR_PHYAD(phy_addr) | in ftgmac100_mdiobus_read()1014 iowrite32(phycr, priv->base + FTGMAC100_OFFSET_PHYCR); in ftgmac100_mdiobus_read()1017 phycr = ioread32(priv->base + FTGMAC100_OFFSET_PHYCR); in ftgmac100_mdiobus_read()1019 if ((phycr & FTGMAC100_PHYCR_MIIRD) == 0) { in ftgmac100_mdiobus_read()1038 unsigned int phycr; in ftgmac100_mdiobus_write() local1042 phycr = ioread32(priv->base + FTGMAC100_OFFSET_PHYCR); in ftgmac100_mdiobus_write()1045 phycr &= FTGMAC100_PHYCR_MDC_CYCTHR_MASK; in ftgmac100_mdiobus_write()[all …]
64 u32 phycr; /* PHY Control */ member