Lines Matching refs:mdiodev
206 static void phy_mdio_device_free(struct mdio_device *mdiodev) in phy_mdio_device_free() argument
210 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free()
219 static void phy_mdio_device_remove(struct mdio_device *mdiodev) in phy_mdio_device_remove() argument
223 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove()
580 struct mdio_device *mdiodev; in phy_device_create() local
588 mdiodev = &dev->mdio; in phy_device_create()
589 mdiodev->dev.parent = &bus->dev; in phy_device_create()
590 mdiodev->dev.bus = &mdio_bus_type; in phy_device_create()
591 mdiodev->dev.type = &mdio_bus_phy_type; in phy_device_create()
592 mdiodev->bus = bus; in phy_device_create()
593 mdiodev->bus_match = phy_bus_match; in phy_device_create()
594 mdiodev->addr = addr; in phy_device_create()
595 mdiodev->flags = MDIO_DEVICE_FLAG_PHY; in phy_device_create()
596 mdiodev->device_free = phy_mdio_device_free; in phy_device_create()
597 mdiodev->device_remove = phy_mdio_device_remove; in phy_device_create()
613 dev_set_name(&mdiodev->dev, PHY_ID_FMT, bus->id, addr); in phy_device_create()
648 device_initialize(&mdiodev->dev); in phy_device_create()