Lines Matching refs:pcidev
25 static int xlgmac_probe(struct pci_dev *pcidev, const struct pci_device_id *id) in xlgmac_probe() argument
27 struct device *dev = &pcidev->dev; in xlgmac_probe()
31 ret = pcim_enable_device(pcidev); in xlgmac_probe()
38 if (pci_resource_len(pcidev, i) == 0) in xlgmac_probe()
40 ret = pcim_iomap_regions(pcidev, BIT(i), XLGMAC_DRV_NAME); in xlgmac_probe()
46 pci_set_master(pcidev); in xlgmac_probe()
49 res.irq = pcidev->irq; in xlgmac_probe()
50 res.addr = pcim_iomap_table(pcidev)[i]; in xlgmac_probe()
52 return xlgmac_drv_probe(&pcidev->dev, &res); in xlgmac_probe()
55 static void xlgmac_remove(struct pci_dev *pcidev) in xlgmac_remove() argument
57 xlgmac_drv_remove(&pcidev->dev); in xlgmac_remove()