Lines Matching refs:phy

101 		err = ds->drv->port_enable(ds, p->port, p->phy);  in dsa_slave_open()
109 if (p->phy) in dsa_slave_open()
110 phy_start(p->phy); in dsa_slave_open()
133 if (p->phy) in dsa_slave_close()
134 phy_stop(p->phy); in dsa_slave_close()
147 ds->drv->port_disable(ds, p->port, p->phy); in dsa_slave_close()
381 if (p->phy != NULL) in dsa_slave_ioctl()
382 return phy_mii_ioctl(p->phy, ifr, cmd); in dsa_slave_ioctl()
636 if (p->phy != NULL) { in dsa_slave_get_settings()
637 err = phy_read_status(p->phy); in dsa_slave_get_settings()
639 err = phy_ethtool_gset(p->phy, cmd); in dsa_slave_get_settings()
650 if (p->phy != NULL) in dsa_slave_set_settings()
651 return phy_ethtool_sset(p->phy, cmd); in dsa_slave_set_settings()
690 if (p->phy != NULL) in dsa_slave_nway_reset()
691 return genphy_restart_aneg(p->phy); in dsa_slave_nway_reset()
700 if (p->phy != NULL) { in dsa_slave_get_link()
701 genphy_update_link(p->phy); in dsa_slave_get_link()
702 return p->phy->link; in dsa_slave_get_link()
827 ret = ds->drv->set_eee(ds, p->port, p->phy, e); in dsa_slave_set_eee()
831 if (p->phy) in dsa_slave_set_eee()
832 ret = phy_ethtool_set_eee(p->phy, e); in dsa_slave_set_eee()
850 if (p->phy) in dsa_slave_get_eee()
851 ret = phy_ethtool_get_eee(p->phy, e); in dsa_slave_get_eee()
959 if (p->old_link != p->phy->link) { in dsa_slave_adjust_link()
961 p->old_link = p->phy->link; in dsa_slave_adjust_link()
964 if (p->old_duplex != p->phy->duplex) { in dsa_slave_adjust_link()
966 p->old_duplex = p->phy->duplex; in dsa_slave_adjust_link()
969 if (p->old_pause != p->phy->pause) { in dsa_slave_adjust_link()
971 p->old_pause = p->phy->pause; in dsa_slave_adjust_link()
975 ds->drv->adjust_link(ds, p->port, p->phy); in dsa_slave_adjust_link()
978 phy_print_status(p->phy); in dsa_slave_adjust_link()
1000 p->phy = ds->slave_mii_bus->phy_map[addr]; in dsa_slave_phy_connect()
1001 if (!p->phy) { in dsa_slave_phy_connect()
1008 p->phy_interface = p->phy->interface; in dsa_slave_phy_connect()
1009 phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, in dsa_slave_phy_connect()
1064 p->phy = of_phy_connect(slave_dev, phy_dn, in dsa_slave_phy_setup()
1071 if (p->phy && phy_is_fixed) in dsa_slave_phy_setup()
1072 fixed_phy_set_link_update(p->phy, dsa_slave_fixed_link_update); in dsa_slave_phy_setup()
1077 if (!p->phy) { in dsa_slave_phy_setup()
1085 p->phy->addr, p->phy->drv->name); in dsa_slave_phy_setup()
1104 if (p->phy) { in dsa_slave_suspend()
1105 phy_stop(p->phy); in dsa_slave_suspend()
1109 phy_suspend(p->phy); in dsa_slave_suspend()
1121 if (p->phy) { in dsa_slave_resume()
1122 phy_resume(p->phy); in dsa_slave_resume()
1123 phy_start(p->phy); in dsa_slave_resume()
1204 phy_disconnect(p->phy); in dsa_slave_create()