Lines Matching refs:phydev
16 int tn2020_config(struct phy_device *phydev) in tn2020_config() argument
18 if (phydev->port == PORT_FIBRE) { in tn2020_config()
30 phy_hwversion = (phy_read(phydev, 30, 32) >> 12) & 0xf; in tn2020_config()
32 phy_write(phydev, 30, 93, 2); in tn2020_config()
33 phy_write(phydev, MDIO_MMD_AN, MDIO_CTRL1, restart_an); in tn2020_config()
35 phy_write(phydev, 30, 93, 1); in tn2020_config()
42 int tn2020_startup(struct phy_device *phydev) in tn2020_startup() argument
57 int reg = phy_read(phydev, MDIO_MMD_PHYXS, MDIO_PHYXS_LNSTAT); in tn2020_startup()
60 "address %u\n", phydev->addr); in tn2020_startup()
73 "align.\n", phydev->addr); in tn2020_startup()
76 if (phydev->port != PORT_FIBRE) in tn2020_startup()
77 return gen10g_startup(phydev); in tn2020_startup()
84 phydev->link = 1; in tn2020_startup()
87 phydev->speed = SPEED_10000; in tn2020_startup()
88 phydev->duplex = DUPLEX_FULL; in tn2020_startup()