Lines Matching refs:dev
93 dev_err(&bus->dev, "MII_MGMT read failed\n"); in xgene_mdio_rgmii_read()
120 dev_err(&bus->dev, "MII_MGMT write failed\n"); in xgene_mdio_rgmii_write()
151 dev_err(pdata->dev, "Failed to release memory from shutdown\n"); in xgene_enet_ecc_init()
168 if (pdata->dev->of_node) { in xgene_mdio_reset()
177 acpi_evaluate_object(ACPI_HANDLE(pdata->dev), in xgene_mdio_reset()
184 if (pdata->dev->of_node) in xgene_mdio_reset()
327 struct device *dev = &pdev->dev; in xgene_mdio_probe() local
334 of_id = of_match_device(xgene_mdio_of_match, &pdev->dev); in xgene_mdio_probe()
341 acpi_id = acpi_match_device(xgene_mdio_acpi_match, &pdev->dev); in xgene_mdio_probe()
350 pdata = devm_kzalloc(dev, sizeof(struct xgene_mdio_pdata), GFP_KERNEL); in xgene_mdio_probe()
354 pdata->dev = dev; in xgene_mdio_probe()
366 if (dev->of_node) { in xgene_mdio_probe()
367 pdata->clk = devm_clk_get(dev, NULL); in xgene_mdio_probe()
369 dev_err(dev, "Unable to retrieve clk\n"); in xgene_mdio_probe()
400 mdio_bus->parent = dev; in xgene_mdio_probe()
403 if (dev->of_node) { in xgene_mdio_probe()
404 ret = of_mdiobus_register(mdio_bus, dev->of_node); in xgene_mdio_probe()
413 acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_HANDLE(dev), 1, in xgene_mdio_probe()
429 if (dev->of_node) in xgene_mdio_probe()
439 struct device *dev = &pdev->dev; in xgene_mdio_remove() local
444 if (dev->of_node) in xgene_mdio_remove()