Lines Matching refs:mdiodev
255 static void phy_mdio_device_free(struct mdio_device *mdiodev)
259 phydev = container_of(mdiodev, struct phy_device, mdio);
269 static void phy_mdio_device_remove(struct mdio_device *mdiodev)
273 phydev = container_of(mdiodev, struct phy_device, mdio);
650 struct mdio_device *mdiodev;
658 mdiodev = &dev->mdio;
659 mdiodev->dev.parent = &bus->dev;
660 mdiodev->dev.bus = &mdio_bus_type;
661 mdiodev->dev.type = &mdio_bus_phy_type;
662 mdiodev->bus = bus;
663 mdiodev->bus_match = phy_bus_match;
664 mdiodev->addr = addr;
665 mdiodev->flags = MDIO_DEVICE_FLAG_PHY;
666 mdiodev->device_free = phy_mdio_device_free;
667 mdiodev->device_remove = phy_mdio_device_remove;
668 mdiodev->reset_state = -1;
687 dev_set_name(&mdiodev->dev, PHY_ID_FMT, bus->id, addr);
688 device_initialize(&mdiodev->dev);
724 put_device(&mdiodev->dev);
3390 struct mdio_device *mdiodev;
3392 mdiodev = fwnode_mdio_find_device(phy_fwnode);
3393 if (!mdiodev)
3396 if (mdiodev->flags & MDIO_DEVICE_FLAG_PHY)
3397 return to_phy_device(&mdiodev->dev);
3399 put_device(&mdiodev->dev);
3612 * as this bypasses our checks that the mdiodev that is being matched