Lines Matching refs:pdev
44 struct pci_dev *pdev; member
53 unsigned int func = PCI_FUNC(info->pdev->devfn); in stmmac_pci_find_phy_addr()
96 struct pci_dev *pdev = info->pdev; in quark_default_data() local
107 plat->bus_id = PCI_DEVID(pdev->bus->number, pdev->devfn); in quark_default_data()
161 static int stmmac_pci_probe(struct pci_dev *pdev, in stmmac_pci_probe() argument
170 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); in stmmac_pci_probe()
174 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, in stmmac_pci_probe()
180 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), in stmmac_pci_probe()
186 ret = pcim_enable_device(pdev); in stmmac_pci_probe()
188 dev_err(&pdev->dev, "%s: ERROR: failed to enable device\n", in stmmac_pci_probe()
195 if (pci_resource_len(pdev, i) == 0) in stmmac_pci_probe()
197 ret = pcim_iomap_regions(pdev, BIT(i), pci_name(pdev)); in stmmac_pci_probe()
203 pci_set_master(pdev); in stmmac_pci_probe()
206 info->pdev = pdev; in stmmac_pci_probe()
215 pci_enable_msi(pdev); in stmmac_pci_probe()
218 res.addr = pcim_iomap_table(pdev)[i]; in stmmac_pci_probe()
219 res.wol_irq = pdev->irq; in stmmac_pci_probe()
220 res.irq = pdev->irq; in stmmac_pci_probe()
222 return stmmac_dvr_probe(&pdev->dev, plat, &res); in stmmac_pci_probe()
232 static void stmmac_pci_remove(struct pci_dev *pdev) in stmmac_pci_remove() argument
234 struct net_device *ndev = pci_get_drvdata(pdev); in stmmac_pci_remove()
242 struct pci_dev *pdev = to_pci_dev(dev); in stmmac_pci_suspend() local
243 struct net_device *ndev = pci_get_drvdata(pdev); in stmmac_pci_suspend()
250 struct pci_dev *pdev = to_pci_dev(dev); in stmmac_pci_resume() local
251 struct net_device *ndev = pci_get_drvdata(pdev); in stmmac_pci_resume()