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