Lines Matching defs:dev
189 struct pci_dev *dev = NULL;
197 while ( (dev = pci_get_class(PCI_CLASS_OTHERS << 16, dev))) {
199 if (!pci_match_id(applicom_pci_tbl, dev))
202 if (pci_enable_device(dev))
205 RamIO = ioremap_nocache(pci_resource_start(dev, 0), LEN_RAM_IO);
210 (unsigned long long)pci_resource_start(dev, 0));
211 pci_disable_device(dev);
216 applicom_pci_devnames[dev->device-1],
217 (unsigned long long)pci_resource_start(dev, 0),
218 dev->irq);
220 boardno = ac_register_board(pci_resource_start(dev, 0),
225 pci_disable_device(dev);
229 if (request_irq(dev->irq, &ac_interrupt, IRQF_SHARED, "Applicom PCI", &dummy)) {
230 printk(KERN_INFO "Could not allocate IRQ %d for PCI Applicom device.\n", dev->irq);
232 pci_disable_device(dev);
241 apbs[boardno - 1].irq = dev->irq;