Lines Matching refs:mdiodev
292 static int b53_mdio_probe(struct mdio_device *mdiodev) in b53_mdio_probe() argument
301 if (mdiodev->addr != BRCM_PSEUDO_PHY_ADDR && mdiodev->addr != 0) { in b53_mdio_probe()
302 dev_err(&mdiodev->dev, "leaving address %d to PHY\n", in b53_mdio_probe()
303 mdiodev->addr); in b53_mdio_probe()
308 phy_id = mdiobus_read(mdiodev->bus, 0, 2) << 16; in b53_mdio_probe()
309 phy_id |= mdiobus_read(mdiodev->bus, 0, 3); in b53_mdio_probe()
320 dev_err(&mdiodev->dev, "Unsupported device: 0x%08x\n", phy_id); in b53_mdio_probe()
332 strcmp(mdiodev->bus->name, "sf2 user mii")) in b53_mdio_probe()
335 dev = b53_switch_alloc(&mdiodev->dev, &b53_mdio_ops, mdiodev->bus); in b53_mdio_probe()
341 dev->bus = mdiodev->bus; in b53_mdio_probe()
343 dev_set_drvdata(&mdiodev->dev, dev); in b53_mdio_probe()
347 return dev_err_probe(&mdiodev->dev, ret, in b53_mdio_probe()
353 static void b53_mdio_remove(struct mdio_device *mdiodev) in b53_mdio_remove() argument
355 struct b53_device *dev = dev_get_drvdata(&mdiodev->dev); in b53_mdio_remove()
363 static void b53_mdio_shutdown(struct mdio_device *mdiodev) in b53_mdio_shutdown() argument
365 struct b53_device *dev = dev_get_drvdata(&mdiodev->dev); in b53_mdio_shutdown()
372 dev_set_drvdata(&mdiodev->dev, NULL); in b53_mdio_shutdown()