Lines Matching refs:mdiodev
300 static int dsa_loop_drv_probe(struct mdio_device *mdiodev) in dsa_loop_drv_probe() argument
302 struct dsa_loop_pdata *pdata = mdiodev->dev.platform_data; in dsa_loop_drv_probe()
310 ds = devm_kzalloc(&mdiodev->dev, sizeof(*ds), GFP_KERNEL); in dsa_loop_drv_probe()
314 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe()
317 ps = devm_kzalloc(&mdiodev->dev, sizeof(*ps), GFP_KERNEL); in dsa_loop_drv_probe()
327 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe()
330 ps->bus = mdiodev->bus; in dsa_loop_drv_probe()
332 dev_set_drvdata(&mdiodev->dev, ds); in dsa_loop_drv_probe()
336 dev_info(&mdiodev->dev, "%s: 0x%0x\n", in dsa_loop_drv_probe()
342 static void dsa_loop_drv_remove(struct mdio_device *mdiodev) in dsa_loop_drv_remove() argument
344 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in dsa_loop_drv_remove()
356 static void dsa_loop_drv_shutdown(struct mdio_device *mdiodev) in dsa_loop_drv_shutdown() argument
358 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in dsa_loop_drv_shutdown()
365 dev_set_drvdata(&mdiodev->dev, NULL); in dsa_loop_drv_shutdown()