Lines Matching defs:pdev
721 struct pci_dev *pdev;
725 pdev = tp->pci_dev;
728 pci_iounmap (pdev, tp->mmio_addr);
731 pci_release_regions (pdev);
754 static struct net_device *rtl8139_init_board(struct pci_dev *pdev)
756 struct device *d = &pdev->dev;
773 assert (pdev != NULL);
780 SET_NETDEV_DEV(dev, &pdev->dev);
783 tp->pci_dev = pdev;
786 rc = pci_enable_device (pdev);
791 rc = pci_request_regions (pdev, DRV_NAME);
795 pci_set_master (pdev);
804 io_len = pci_resource_len(pdev, bar);
808 if (!(pci_resource_flags(pdev, bar) & res[bar].mask)) {
821 ioaddr = pci_iomap(pdev, bar, 0);
839 dev_err(&pdev->dev, "Chip not responding, ignoring board\n");
854 dev_dbg(&pdev->dev, "unknown chip version, assuming RTL-8139\n");
855 dev_dbg(&pdev->dev, "TxConfig = 0x%x\n", RTL_R32 (TxConfig));
896 pci_disable_device (pdev);
943 static int rtl8139_init_one(struct pci_dev *pdev,
953 assert (pdev != NULL);
969 if (pdev->vendor == PCI_VENDOR_ID_REALTEK &&
970 pdev->device == PCI_DEVICE_ID_REALTEK_8139 && pdev->revision >= 0x20) {
971 dev_info(&pdev->dev,
973 pdev->vendor, pdev->device, pdev->revision);
977 if (pdev->vendor == PCI_VENDOR_ID_REALTEK &&
978 pdev->device == PCI_DEVICE_ID_REALTEK_8139 &&
979 pdev->subsystem_vendor == PCI_VENDOR_ID_ATHEROS &&
980 pdev->subsystem_device == PCI_DEVICE_ID_REALTEK_8139) {
985 dev = rtl8139_init_board (pdev);
1044 pci_set_drvdata (pdev, dev);
1048 ioaddr, dev->dev_addr, pdev->irq);
1110 pci_disable_device (pdev);
1115 static void rtl8139_remove_one(struct pci_dev *pdev)
1117 struct net_device *dev = pci_get_drvdata (pdev);
1127 pci_disable_device (pdev);