Lines Matching refs:tbiphy
1375 struct phy_device *tbiphy; in adjust_enet_interface() local
1380 tbiphy = of_phy_find_device(ug_info->tbi_node); in adjust_enet_interface()
1381 if (!tbiphy) in adjust_enet_interface()
1384 value = phy_read(tbiphy, ENET_TBI_MII_CR); in adjust_enet_interface()
1386 phy_write(tbiphy, ENET_TBI_MII_CR, value); in adjust_enet_interface()
1388 put_device(&tbiphy->dev); in adjust_enet_interface()
1687 struct phy_device *tbiphy; in uec_configure_serdes() local
1695 tbiphy = of_phy_find_device(ug_info->tbi_node); in uec_configure_serdes()
1696 if (!tbiphy) { in uec_configure_serdes()
1707 if (phy_read(tbiphy, ENET_TBI_MII_SR) & TBISR_LSTATUS) { in uec_configure_serdes()
1708 put_device(&tbiphy->dev); in uec_configure_serdes()
1713 phy_write(tbiphy, ENET_TBI_MII_ANA, TBIANA_SETTINGS); in uec_configure_serdes()
1715 phy_write(tbiphy, ENET_TBI_MII_TBICON, TBICON_CLK_SELECT); in uec_configure_serdes()
1717 phy_write(tbiphy, ENET_TBI_MII_CR, TBICR_SETTINGS); in uec_configure_serdes()
1719 put_device(&tbiphy->dev); in uec_configure_serdes()