Lines Matching defs:phy
12 #include <linux/phy.h>
61 struct phy_device *phy,
71 rc = driver_deferred_probe_check_state(&phy->mdio.dev);
76 phy->irq = rc;
79 phy->irq = mdio->irq[addr];
86 &phy->mdio.reset_assert_delay);
88 &phy->mdio.reset_deassert_delay);
94 device_set_node(&phy->mdio.dev, child);
96 /* All data is now stored in the phy struct;
99 rc = phy_device_register(phy);
101 device_set_node(&phy->mdio.dev, NULL);
106 dev_dbg(&mdio->dev, "registered phy %p fwnode at address %i\n",
117 struct phy_device *phy;
132 is_c45 = fwnode_device_is_compatible(child, "ethernet-phy-ieee802.3-c45");
134 phy = get_phy_device(bus, addr, is_c45);
136 phy = phy_device_create(bus, addr, phy_id, 0, NULL);
137 if (IS_ERR(phy)) {
138 rc = PTR_ERR(phy);
143 phy->irq = bus->irq[addr];
148 phy->mdio.dev.fwnode = fwnode_handle_get(child);
150 /* All data is now stored in the phy struct, so register it */
151 rc = phy_device_register(phy);
153 phy->mdio.dev.fwnode = NULL;
158 rc = fwnode_mdiobus_phy_device_register(bus, phy, child, addr);
163 phy->psec = psec;
165 /* phy->mii_ts may already be defined by the PHY driver. A
170 phy->mii_ts = mii_ts;
175 phy_device_free(phy);