Lines Matching refs:pdev
85 static int orinoco_tmd_init_one(struct pci_dev *pdev, in orinoco_tmd_init_one() argument
96 err = pci_enable_device(pdev); in orinoco_tmd_init_one()
101 pccard_ioaddr = pci_resource_start(pdev, 2); in orinoco_tmd_init_one()
102 pccard_iolen = pci_resource_len(pdev, 2); in orinoco_tmd_init_one()
110 addr = pci_resource_start(pdev, 1); in orinoco_tmd_init_one()
132 pdev->slot_name, pdev->irq, pccard_ioaddr); in orinoco_tmd_init_one()
136 pci_set_drvdata(pdev, dev); in orinoco_tmd_init_one()
138 err = request_irq(pdev->irq, orinoco_interrupt, SA_SHIRQ, dev->name, in orinoco_tmd_init_one()
142 pdev->irq); in orinoco_tmd_init_one()
146 dev->irq = pdev->irq; in orinoco_tmd_init_one()
168 pci_disable_device(pdev); in orinoco_tmd_init_one()
173 static void __devexit orinoco_tmd_remove_one(struct pci_dev *pdev) in orinoco_tmd_remove_one() argument
175 struct net_device *dev = pci_get_drvdata(pdev); in orinoco_tmd_remove_one()
185 pci_set_drvdata(pdev, NULL); in orinoco_tmd_remove_one()
189 release_region(pci_resource_start(pdev, 2), pci_resource_len(pdev, 2)); in orinoco_tmd_remove_one()
191 pci_disable_device(pdev); in orinoco_tmd_remove_one()