Lines Matching refs:phy_dev
339 struct phy_device *phy_dev = dev->phydev; in ax_handle_link_change() local
342 if (phy_dev->link && ((ax->speed != phy_dev->speed) || in ax_handle_link_change()
343 (ax->duplex != phy_dev->duplex))) { in ax_handle_link_change()
345 ax->speed = phy_dev->speed; in ax_handle_link_change()
346 ax->duplex = phy_dev->duplex; in ax_handle_link_change()
350 if (phy_dev->link != ax->link) { in ax_handle_link_change()
351 if (!phy_dev->link) { in ax_handle_link_change()
355 ax->link = phy_dev->link; in ax_handle_link_change()
361 phy_print_status(phy_dev); in ax_handle_link_change()
367 struct phy_device *phy_dev = NULL; in ax_mii_probe() local
371 phy_dev = phy_find_first(ax->mii_bus); in ax_mii_probe()
372 if (!phy_dev) { in ax_mii_probe()
377 ret = phy_connect_direct(dev, phy_dev, ax_handle_link_change, in ax_mii_probe()
384 phy_set_max_speed(phy_dev, SPEED_100); in ax_mii_probe()
387 phy_dev->drv->name, phydev_name(phy_dev), phy_dev->irq); in ax_mii_probe()
564 struct phy_device *phy_dev = dev->phydev; in ax_ioctl() local
569 if (!phy_dev) in ax_ioctl()
572 return phy_mii_ioctl(phy_dev, req, cmd); in ax_ioctl()