Lines Matching refs:mdiodev
244 static void phy_mdio_device_free(struct mdio_device *mdiodev) in phy_mdio_device_free() argument
248 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free()
258 static void phy_mdio_device_remove(struct mdio_device *mdiodev) in phy_mdio_device_remove() argument
262 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove()
639 struct mdio_device *mdiodev; in phy_device_create() local
647 mdiodev = &dev->mdio; in phy_device_create()
648 mdiodev->dev.parent = &bus->dev; in phy_device_create()
649 mdiodev->dev.bus = &mdio_bus_type; in phy_device_create()
650 mdiodev->dev.type = &mdio_bus_phy_type; in phy_device_create()
651 mdiodev->bus = bus; in phy_device_create()
652 mdiodev->bus_match = phy_bus_match; in phy_device_create()
653 mdiodev->addr = addr; in phy_device_create()
654 mdiodev->flags = MDIO_DEVICE_FLAG_PHY; in phy_device_create()
655 mdiodev->device_free = phy_mdio_device_free; in phy_device_create()
656 mdiodev->device_remove = phy_mdio_device_remove; in phy_device_create()
675 dev_set_name(&mdiodev->dev, PHY_ID_FMT, bus->id, addr); in phy_device_create()
676 device_initialize(&mdiodev->dev); in phy_device_create()
712 put_device(&mdiodev->dev); in phy_device_create()
3205 struct mdio_device *mdiodev; in fwnode_phy_find_device() local
3207 mdiodev = fwnode_mdio_find_device(phy_fwnode); in fwnode_phy_find_device()
3208 if (!mdiodev) in fwnode_phy_find_device()
3211 if (mdiodev->flags & MDIO_DEVICE_FLAG_PHY) in fwnode_phy_find_device()
3212 return to_phy_device(&mdiodev->dev); in fwnode_phy_find_device()
3214 put_device(&mdiodev->dev); in fwnode_phy_find_device()