Lines Matching defs:device

7  * This file provides helper functions for extracting PHY device information
8 * out of the OpenFirmware device tree and using it to populate an mii_bus.
11 #include <linux/device.h>
31 static int of_get_phy_id(struct device_node *device, u32 *phy_id)
33 return fwnode_get_phy_id(of_fwnode_handle(device), phy_id);
62 /* Associate the OF node with the device structure so it
77 dev_dbg(&mdio->dev, "registered mdio device %pOFn at address %i\n",
111 * A device which is not a phy is expected to have a compatible string
112 * indicating what sort of device it is.
142 * __of_mdiobus_register - Register mii_bus and create PHYs from the device tree
165 * the device tree are populated after the bus has been registered */
196 "MDIO device at address %d is missing.\n",
244 * of_mdio_find_device - Given a device tree node, find the mdio_device
245 * @np: pointer to the mdio_device's device tree node
248 * struct device refcount incremented by one, or NULL on failure.
259 * @phy_np: Pointer to the phy's device tree node
262 * struct device refcount incremented by one, or NULL on failure.
271 * of_phy_connect - Connect to the phy described in the device tree
273 * @phy_np: Pointer to device tree node for the PHY
274 * @hndlr: Link state callback for the network device
279 * struct device refcount incremented by one, or NULL on failure. The
306 * - Get phy node and connect to the phy described in the device tree
308 * @np: Pointer to device tree node for the net_device claiming the phy
309 * @hndlr: Link state callback for the network device
312 * struct device refcount incremented by one, or NULL on failure. The
354 * Ethernet device.