Lines Matching refs:phy_dev
756 struct phy_device *phy_dev = NULL; in hns_nic_init_phy() local
762 phy_dev = of_phy_connect(ndev, h->phy_node, in hns_nic_init_phy()
765 phy_dev = of_phy_attach(ndev, h->phy_node, 0, h->phy_if); in hns_nic_init_phy()
767 if (unlikely(!phy_dev) || IS_ERR(phy_dev)) in hns_nic_init_phy()
768 return !phy_dev ? -ENODEV : PTR_ERR(phy_dev); in hns_nic_init_phy()
770 phy_dev->supported &= h->if_support; in hns_nic_init_phy()
771 phy_dev->advertising = phy_dev->supported; in hns_nic_init_phy()
774 phy_dev->autoneg = false; in hns_nic_init_phy()
776 priv->phy = phy_dev; in hns_nic_init_phy()
1062 struct phy_device *phy_dev = priv->phy; in hns_nic_do_ioctl() local
1067 if (!phy_dev) in hns_nic_do_ioctl()
1070 return phy_mii_ioctl(phy_dev, ifr, cmd); in hns_nic_do_ioctl()