Lines Matching defs:phy

21 #include <linux/phy.h>
29 /* Extract the clause 22 phy ID from the compatible string of the form
30 * ethernet-phy-idAAAA.BBBB */
36 int of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device *phy,
39 return fwnode_mdiobus_phy_device_register(mdio, phy,
104 * Return true if the child node is for a phy. It must either:
105 * o Compatible string of "ethernet-phy-idX.X"
106 * o Compatible string of "ethernet-phy-ieee802.3-c45"
107 * o Compatible string of "ethernet-phy-ieee802.3-c22"
111 * A device which is not a phy is expected to have a compatible string
121 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c45"))
124 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c22"))
181 /* Loop over the child nodes and register a phy_device for each phy */
217 dev_info(&mdio->dev, "scan phy %pOFn at address %i\n",
259 * @phy_np: Pointer to the phy's device tree node
271 * of_phy_connect - Connect to the phy described in the device tree
272 * @dev: pointer to net_device claiming the phy
287 struct phy_device *phy = of_phy_find_device(phy_np);
290 if (!phy)
293 phy->dev_flags |= flags;
295 ret = phy_connect_direct(dev, phy, hndlr, iface);
298 put_device(&phy->mdio.dev);
300 return ret ? NULL : phy;
306 * - Get phy node and connect to the phy described in the device tree
307 * @dev: pointer to net_device claiming the phy
308 * @np: Pointer to device tree node for the net_device claiming the phy
321 struct phy_device *phy;
335 phy_np = of_parse_phandle(np, "phy-handle", 0);
340 phy = of_phy_connect(dev, phy_np, hndlr, 0, iface);
344 return phy;