Lines Matching refs:mdiodev
290 static int b53_mdio_probe(struct mdio_device *mdiodev) in b53_mdio_probe() argument
299 if (mdiodev->addr != BRCM_PSEUDO_PHY_ADDR && mdiodev->addr != 0) { in b53_mdio_probe()
300 dev_err(&mdiodev->dev, "leaving address %d to PHY\n", in b53_mdio_probe()
301 mdiodev->addr); in b53_mdio_probe()
306 phy_id = mdiobus_read(mdiodev->bus, 0, 2) << 16; in b53_mdio_probe()
307 phy_id |= mdiobus_read(mdiodev->bus, 0, 3); in b53_mdio_probe()
317 dev_err(&mdiodev->dev, "Unsupported device: 0x%08x\n", phy_id); in b53_mdio_probe()
329 strcmp(mdiodev->bus->name, "sf2 slave mii")) in b53_mdio_probe()
332 dev = b53_switch_alloc(&mdiodev->dev, &b53_mdio_ops, mdiodev->bus); in b53_mdio_probe()
338 dev->bus = mdiodev->bus; in b53_mdio_probe()
340 dev_set_drvdata(&mdiodev->dev, dev); in b53_mdio_probe()
344 dev_err(&mdiodev->dev, "failed to register switch: %i\n", ret); in b53_mdio_probe()
351 static void b53_mdio_remove(struct mdio_device *mdiodev) in b53_mdio_remove() argument
353 struct b53_device *dev = dev_get_drvdata(&mdiodev->dev); in b53_mdio_remove()
361 static void b53_mdio_shutdown(struct mdio_device *mdiodev) in b53_mdio_shutdown() argument
363 struct b53_device *dev = dev_get_drvdata(&mdiodev->dev); in b53_mdio_shutdown()
370 dev_set_drvdata(&mdiodev->dev, NULL); in b53_mdio_shutdown()