Lines Matching defs:mdiodev
216 static void phy_mdio_device_free(struct mdio_device *mdiodev)
220 phydev = container_of(mdiodev, struct phy_device, mdio);
230 static void phy_mdio_device_remove(struct mdio_device *mdiodev)
234 phydev = container_of(mdiodev, struct phy_device, mdio);
753 struct mdio_device *mdiodev;
761 mdiodev = &dev->mdio;
762 mdiodev->dev.parent = &bus->dev;
763 mdiodev->dev.bus = &mdio_bus_type;
764 mdiodev->dev.type = &mdio_bus_phy_type;
765 mdiodev->bus = bus;
766 mdiodev->bus_match = phy_bus_match;
767 mdiodev->addr = addr;
768 mdiodev->flags = MDIO_DEVICE_FLAG_PHY;
769 mdiodev->device_free = phy_mdio_device_free;
770 mdiodev->device_remove = phy_mdio_device_remove;
771 mdiodev->reset_state = -1;
790 dev_set_name(&mdiodev->dev, PHY_ID_FMT, bus->id, addr);
791 device_initialize(&mdiodev->dev);
834 put_device(&mdiodev->dev);
3612 struct mdio_device *mdiodev;
3614 mdiodev = fwnode_mdio_find_device(phy_fwnode);
3615 if (!mdiodev)
3618 if (mdiodev->flags & MDIO_DEVICE_FLAG_PHY)
3619 return to_phy_device(&mdiodev->dev);
3621 put_device(&mdiodev->dev);
3851 * as this bypasses our checks that the mdiodev that is being matched