Lines Matching refs:phy_state
37 int phy_state; in upd60620_read_status() local
40 phy_state = phy_read(phydev, MII_BMSR); in upd60620_read_status()
41 if (phy_state < 0) in upd60620_read_status()
42 return phy_state; in upd60620_read_status()
49 if (phy_state & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS)) { in upd60620_read_status()
50 phy_state = phy_read(phydev, PHY_PHYSCR); in upd60620_read_status()
51 if (phy_state < 0) in upd60620_read_status()
52 return phy_state; in upd60620_read_status()
54 if (phy_state & (PHY_PHYSCR_10MB | PHY_PHYSCR_100MB)) { in upd60620_read_status()
59 if (phy_state & PHY_PHYSCR_100MB) in upd60620_read_status()
61 if (phy_state & PHY_PHYSCR_DUPLEX) in upd60620_read_status()
64 phy_state = phy_read(phydev, MII_LPA); in upd60620_read_status()
65 if (phy_state < 0) in upd60620_read_status()
66 return phy_state; in upd60620_read_status()
69 phy_state); in upd60620_read_status()