Lines Matching refs:phy_dev
135 struct phy_device *phy_dev; member
902 struct phy_device *phy = lp->phy_dev; in xemaclite_adjust_link()
933 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in xemaclite_open()
936 if (!lp->phy_dev) { in xemaclite_open()
942 lp->phy_dev->supported &= (PHY_BASIC_FEATURES); in xemaclite_open()
943 lp->phy_dev->advertising = lp->phy_dev->supported; in xemaclite_open()
946 phy_write(lp->phy_dev, MII_CTRL1000, 0); in xemaclite_open()
949 phy_write(lp->phy_dev, MII_ADVERTISE, ADVERTISE_ALL | in xemaclite_open()
953 bmcr = phy_read(lp->phy_dev, MII_BMCR); in xemaclite_open()
955 phy_write(lp->phy_dev, MII_BMCR, bmcr); in xemaclite_open()
957 phy_start(lp->phy_dev); in xemaclite_open()
968 if (lp->phy_dev) in xemaclite_open()
969 phy_disconnect(lp->phy_dev); in xemaclite_open()
970 lp->phy_dev = NULL; in xemaclite_open()
1000 if (lp->phy_dev) in xemaclite_close()
1001 phy_disconnect(lp->phy_dev); in xemaclite_close()
1002 lp->phy_dev = NULL; in xemaclite_close()