Lines Matching defs:dev
55 np = dev_of_node(&pdev->dev);
62 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL);
66 plat->mdio_bus_data = devm_kzalloc(&pdev->dev,
74 dev_info(&pdev->dev, "Found MDIO subnode\n");
78 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), GFP_KERNEL);
87 dev_err(&pdev->dev, "%s: ERROR: failed to enable device\n", __func__);
105 phy_mode = device_get_phy_mode(&pdev->dev);
107 dev_err(&pdev->dev, "phy_mode not found\n");
124 dev_err(&pdev->dev, "IRQ macirq not found\n");
131 dev_info(&pdev->dev, "IRQ eth_wake_irq not found, using macirq\n");
137 dev_err(&pdev->dev, "IRQ eth_lpi not found\n");
142 ret = stmmac_dvr_probe(&pdev->dev, plat, &res);
159 struct net_device *ndev = dev_get_drvdata(&pdev->dev);
164 stmmac_dvr_remove(&pdev->dev);
177 static int __maybe_unused loongson_dwmac_suspend(struct device *dev)
179 struct pci_dev *pdev = to_pci_dev(dev);
182 ret = stmmac_suspend(dev);
195 static int __maybe_unused loongson_dwmac_resume(struct device *dev)
197 struct pci_dev *pdev = to_pci_dev(dev);
209 return stmmac_resume(dev);