Lines Matching refs:mdiodev
51 static void phy_mdio_device_free(struct mdio_device *mdiodev) in phy_mdio_device_free() argument
55 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free()
64 static void phy_mdio_device_remove(struct mdio_device *mdiodev) in phy_mdio_device_remove() argument
68 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove()
408 struct mdio_device *mdiodev; in phy_device_create() local
415 mdiodev = &dev->mdio; in phy_device_create()
416 mdiodev->dev.parent = &bus->dev; in phy_device_create()
417 mdiodev->dev.bus = &mdio_bus_type; in phy_device_create()
418 mdiodev->dev.type = &mdio_bus_phy_type; in phy_device_create()
419 mdiodev->bus = bus; in phy_device_create()
420 mdiodev->bus_match = phy_bus_match; in phy_device_create()
421 mdiodev->addr = addr; in phy_device_create()
422 mdiodev->flags = MDIO_DEVICE_FLAG_PHY; in phy_device_create()
423 mdiodev->device_free = phy_mdio_device_free; in phy_device_create()
424 mdiodev->device_remove = phy_mdio_device_remove; in phy_device_create()
440 dev_set_name(&mdiodev->dev, PHY_ID_FMT, bus->id, addr); in phy_device_create()
460 device_initialize(&mdiodev->dev); in phy_device_create()