Lines Matching refs:phy

100 		err = ds->drv->port_enable(ds, p->port, p->phy);  in dsa_slave_open()
108 if (p->phy) in dsa_slave_open()
109 phy_start(p->phy); in dsa_slave_open()
132 if (p->phy) in dsa_slave_close()
133 phy_stop(p->phy); in dsa_slave_close()
146 ds->drv->port_disable(ds, p->port, p->phy); in dsa_slave_close()
305 if (p->phy != NULL) in dsa_slave_ioctl()
306 return phy_mii_ioctl(p->phy, ifr, cmd); in dsa_slave_ioctl()
424 if (p->phy != NULL) { in dsa_slave_get_settings()
425 err = phy_read_status(p->phy); in dsa_slave_get_settings()
427 err = phy_ethtool_gset(p->phy, cmd); in dsa_slave_get_settings()
438 if (p->phy != NULL) in dsa_slave_set_settings()
439 return phy_ethtool_sset(p->phy, cmd); in dsa_slave_set_settings()
478 if (p->phy != NULL) in dsa_slave_nway_reset()
479 return genphy_restart_aneg(p->phy); in dsa_slave_nway_reset()
488 if (p->phy != NULL) { in dsa_slave_get_link()
489 genphy_update_link(p->phy); in dsa_slave_get_link()
490 return p->phy->link; in dsa_slave_get_link()
615 ret = ds->drv->set_eee(ds, p->port, p->phy, e); in dsa_slave_set_eee()
619 if (p->phy) in dsa_slave_set_eee()
620 ret = phy_ethtool_set_eee(p->phy, e); in dsa_slave_set_eee()
638 if (p->phy) in dsa_slave_get_eee()
639 ret = phy_ethtool_get_eee(p->phy, e); in dsa_slave_get_eee()
689 if (p->old_link != p->phy->link) { in dsa_slave_adjust_link()
691 p->old_link = p->phy->link; in dsa_slave_adjust_link()
694 if (p->old_duplex != p->phy->duplex) { in dsa_slave_adjust_link()
696 p->old_duplex = p->phy->duplex; in dsa_slave_adjust_link()
699 if (p->old_pause != p->phy->pause) { in dsa_slave_adjust_link()
701 p->old_pause = p->phy->pause; in dsa_slave_adjust_link()
705 ds->drv->adjust_link(ds, p->port, p->phy); in dsa_slave_adjust_link()
708 phy_print_status(p->phy); in dsa_slave_adjust_link()
730 p->phy = ds->slave_mii_bus->phy_map[addr]; in dsa_slave_phy_connect()
731 if (!p->phy) in dsa_slave_phy_connect()
736 p->phy_interface = p->phy->interface; in dsa_slave_phy_connect()
737 phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, in dsa_slave_phy_connect()
789 p->phy = of_phy_connect(slave_dev, phy_dn, in dsa_slave_phy_setup()
796 if (p->phy && phy_is_fixed) in dsa_slave_phy_setup()
797 fixed_phy_set_link_update(p->phy, dsa_slave_fixed_link_update); in dsa_slave_phy_setup()
802 if (!p->phy) { in dsa_slave_phy_setup()
808 p->phy->addr, p->phy->drv->name); in dsa_slave_phy_setup()
820 if (p->phy) { in dsa_slave_suspend()
821 phy_stop(p->phy); in dsa_slave_suspend()
825 phy_suspend(p->phy); in dsa_slave_suspend()
837 if (p->phy) { in dsa_slave_resume()
838 phy_resume(p->phy); in dsa_slave_resume()
839 phy_start(p->phy); in dsa_slave_resume()
915 phy_disconnect(p->phy); in dsa_slave_create()