Lines Matching defs:pdev
762 static int tc35815_init_one(struct pci_dev *pdev,
773 dev_printk(KERN_DEBUG, &pdev->dev,
778 if (!pdev->irq) {
779 dev_warn(&pdev->dev, "no IRQ assigned.\n");
788 SET_NETDEV_DEV(dev, &pdev->dev);
793 rc = pcim_enable_device(pdev);
796 rc = pcim_iomap_regions(pdev, 1 << 1, MODNAME);
799 pci_set_master(pdev);
800 ioaddr = pcim_iomap_table(pdev)[1];
808 dev->irq = pdev->irq;
814 lp->pci_dev = pdev;
818 pci_set_drvdata(pdev, dev);
825 dev_warn(&pdev->dev, "not valid ether addr\n");
854 static void tc35815_remove_one(struct pci_dev *pdev)
856 struct net_device *dev = pci_get_drvdata(pdev);
2110 static int tc35815_suspend(struct pci_dev *pdev, pm_message_t state)
2112 struct net_device *dev = pci_get_drvdata(pdev);
2116 pci_save_state(pdev);
2125 pci_set_power_state(pdev, PCI_D3hot);
2129 static int tc35815_resume(struct pci_dev *pdev)
2131 struct net_device *dev = pci_get_drvdata(pdev);
2133 pci_restore_state(pdev);
2136 pci_set_power_state(pdev, PCI_D0);