Lines Matching refs:mii_reg
161 unsigned int mii_reg; in rtl8211x_parse_status() local
163 mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MIIM_RTL8211x_PHY_STATUS); in rtl8211x_parse_status()
165 if (!(mii_reg & MIIM_RTL8211x_PHYSTAT_SPDDONE)) { in rtl8211x_parse_status()
171 while (!(mii_reg & MIIM_RTL8211x_PHYSTAT_SPDDONE)) { in rtl8211x_parse_status()
182 mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, in rtl8211x_parse_status()
188 if (mii_reg & MIIM_RTL8211x_PHYSTAT_LINK) in rtl8211x_parse_status()
194 if (mii_reg & MIIM_RTL8211x_PHYSTAT_DUPLEX) in rtl8211x_parse_status()
199 speed = (mii_reg & MIIM_RTL8211x_PHYSTAT_SPEED); in rtl8211x_parse_status()
218 unsigned int mii_reg; in rtl8211f_parse_status() local
222 mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, MIIM_RTL8211F_PHY_STATUS); in rtl8211f_parse_status()
225 while (!(mii_reg & MIIM_RTL8211F_PHYSTAT_LINK)) { in rtl8211f_parse_status()
235 mii_reg = phy_read(phydev, MDIO_DEVAD_NONE, in rtl8211f_parse_status()
239 if (mii_reg & MIIM_RTL8211F_PHYSTAT_DUPLEX) in rtl8211f_parse_status()
244 speed = (mii_reg & MIIM_RTL8211F_PHYSTAT_SPEED); in rtl8211f_parse_status()