Lines Matching refs:serdes_phy
179 if (!mac->serdes_phy) in dpaa2_mac_config()
188 err = phy_set_mode_ext(mac->serdes_phy, PHY_MODE_ETHERNET, state->interface); in dpaa2_mac_config()
323 if (!mac->serdes_phy) in dpaa2_mac_set_supported_interfaces()
334 err = phy_validate(mac->serdes_phy, PHY_MODE_ETHERNET, intf, NULL); in dpaa2_mac_set_supported_interfaces()
346 if (mac->serdes_phy) in dpaa2_mac_start()
347 phy_power_on(mac->serdes_phy); in dpaa2_mac_start()
358 if (mac->serdes_phy) in dpaa2_mac_stop()
359 phy_power_off(mac->serdes_phy); in dpaa2_mac_stop()
366 struct phy *serdes_phy = NULL; in dpaa2_mac_connect() local
386 serdes_phy = of_phy_get(to_of_node(dpmac_node), NULL); in dpaa2_mac_connect()
388 if (serdes_phy == ERR_PTR(-ENODEV)) in dpaa2_mac_connect()
389 serdes_phy = NULL; in dpaa2_mac_connect()
390 else if (IS_ERR(serdes_phy)) in dpaa2_mac_connect()
391 return PTR_ERR(serdes_phy); in dpaa2_mac_connect()
393 phy_init(serdes_phy); in dpaa2_mac_connect()
395 mac->serdes_phy = serdes_phy; in dpaa2_mac_connect()
462 of_phy_put(mac->serdes_phy); in dpaa2_mac_disconnect()
463 mac->serdes_phy = NULL; in dpaa2_mac_disconnect()