Lines Matching refs:tbiphy
1351 struct phy_device *tbiphy; in adjust_enet_interface() local
1356 tbiphy = of_phy_find_device(ug_info->tbi_node); in adjust_enet_interface()
1357 if (!tbiphy) in adjust_enet_interface()
1360 value = phy_read(tbiphy, ENET_TBI_MII_CR); in adjust_enet_interface()
1362 phy_write(tbiphy, ENET_TBI_MII_CR, value); in adjust_enet_interface()
1364 put_device(&tbiphy->mdio.dev); in adjust_enet_interface()
1663 struct phy_device *tbiphy; in uec_configure_serdes() local
1671 tbiphy = of_phy_find_device(ug_info->tbi_node); in uec_configure_serdes()
1672 if (!tbiphy) { in uec_configure_serdes()
1683 if (phy_read(tbiphy, ENET_TBI_MII_SR) & TBISR_LSTATUS) { in uec_configure_serdes()
1684 put_device(&tbiphy->mdio.dev); in uec_configure_serdes()
1689 phy_write(tbiphy, ENET_TBI_MII_ANA, TBIANA_SETTINGS); in uec_configure_serdes()
1691 phy_write(tbiphy, ENET_TBI_MII_TBICON, TBICON_CLK_SELECT); in uec_configure_serdes()
1693 phy_write(tbiphy, ENET_TBI_MII_CR, TBICR_SETTINGS); in uec_configure_serdes()
1695 put_device(&tbiphy->mdio.dev); in uec_configure_serdes()