• Home
  • Raw
  • Download

Lines Matching refs:phy_addr

38 	int phy_addr;  member
44 static int ftgmac100_mdiobus_read(struct eth_device *dev, int phy_addr, in ftgmac100_mdiobus_read() argument
56 phycr |= FTGMAC100_PHYCR_PHYAD(phy_addr) in ftgmac100_mdiobus_read()
79 static int ftgmac100_mdiobus_write(struct eth_device *dev, int phy_addr, in ftgmac100_mdiobus_write() argument
92 phycr |= FTGMAC100_PHYCR_PHYAD(phy_addr) in ftgmac100_mdiobus_write()
106 "phy_addr: %x\n", phy_addr); in ftgmac100_mdiobus_write()
143 ftgmac100_phy_write(dev, priv->phy_addr, MII_ADVERTISE, adv); in ftgmac100_phy_reset()
147 ftgmac100_phy_write(dev, priv->phy_addr, in ftgmac100_phy_reset()
151 ftgmac100_phy_read(dev, priv->phy_addr, MII_BMSR, &status); in ftgmac100_phy_reset()
173 int phy_addr; in ftgmac100_phy_init() local
179 for (phy_addr = 0; phy_addr < CONFIG_PHY_MAX_ADDR; phy_addr++) { in ftgmac100_phy_init()
181 ftgmac100_phy_read(dev, phy_addr, MII_PHYSID1, &phy_id); in ftgmac100_phy_init()
189 dev->name, phy_addr); in ftgmac100_phy_init()
190 priv->phy_addr = phy_addr; in ftgmac100_phy_init()
200 ftgmac100_phy_read(dev, priv->phy_addr, MII_BMSR, &status); in ftgmac100_phy_init()
207 ftgmac100_phy_read(dev, priv->phy_addr, in ftgmac100_phy_init()
222 ftgmac100_phy_read(dev, priv->phy_addr, in ftgmac100_phy_init()
238 ftgmac100_phy_read(dev, priv->phy_addr, MII_ADVERTISE, &adv); in ftgmac100_phy_init()
239 ftgmac100_phy_read(dev, priv->phy_addr, MII_LPA, &lpa); in ftgmac100_phy_init()
262 ftgmac100_phy_read(dev, priv->phy_addr, MII_STAT1000, &stat_ge); in ftgmac100_update_link_speed()
265 ftgmac100_phy_read(dev, priv->phy_addr, MII_BMSR, &stat_fe); in ftgmac100_update_link_speed()