Lines Matching refs:pdev

59 	dev = &c->pdev->dev;  in i2o_pci_free()
74 pci_release_regions(c->pdev); in i2o_pci_free()
89 struct pci_dev *pdev = c->pdev; in i2o_pci_alloc() local
90 struct device *dev = &pdev->dev; in i2o_pci_alloc()
93 if (pci_request_regions(pdev, OSM_DESCRIPTION)) { in i2o_pci_alloc()
100 if (!(pci_resource_flags(pdev, i) & IORESOURCE_IO)) { in i2o_pci_alloc()
102 c->base.phys = pci_resource_start(pdev, i); in i2o_pci_alloc()
103 c->base.len = pci_resource_len(pdev, i); in i2o_pci_alloc()
109 if (pdev->device == 0xa501) { in i2o_pci_alloc()
110 if (pdev->subsystem_device >= 0xc032 && in i2o_pci_alloc()
111 pdev->subsystem_device <= 0xc03b) { in i2o_pci_alloc()
122 c->in_queue.phys = pci_resource_start(pdev, i); in i2o_pci_alloc()
123 c->in_queue.len = pci_resource_len(pdev, i); in i2o_pci_alloc()
174 if (pdev->vendor == PCI_VENDOR_ID_MOTOROLA && pdev->device == 0x18c0) { in i2o_pci_alloc()
218 pci_set_drvdata(pdev, c); in i2o_pci_alloc()
271 struct pci_dev *pdev = c->pdev; in i2o_pci_irq_enable() local
276 if (pdev->irq) { in i2o_pci_irq_enable()
277 rc = request_irq(pdev->irq, i2o_pci_interrupt, IRQF_SHARED, in i2o_pci_irq_enable()
281 "\n", c->name, pdev->irq); in i2o_pci_irq_enable()
288 printk(KERN_INFO "%s: Installed at IRQ %d\n", c->name, pdev->irq); in i2o_pci_irq_enable()
303 if (c->pdev->irq > 0) in i2o_pci_irq_disable()
304 free_irq(c->pdev->irq, c); in i2o_pci_irq_disable()
318 static int __devinit i2o_pci_probe(struct pci_dev *pdev, in i2o_pci_probe() argument
327 if ((pdev->class & 0xff) > 1) { in i2o_pci_probe()
329 "(skipping).\n", pci_name(pdev)); in i2o_pci_probe()
333 if ((rc = pci_enable_device(pdev))) { in i2o_pci_probe()
335 pci_name(pdev)); in i2o_pci_probe()
339 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { in i2o_pci_probe()
341 pci_name(pdev)); in i2o_pci_probe()
346 pci_set_master(pdev); in i2o_pci_probe()
351 pci_name(pdev)); in i2o_pci_probe()
356 pci_name(pdev)); in i2o_pci_probe()
358 c->pdev = pdev; in i2o_pci_probe()
359 c->device.parent = &pdev->dev; in i2o_pci_probe()
362 if (pdev->vendor == PCI_VENDOR_ID_NCR && pdev->device == 0x0630) { in i2o_pci_probe()
368 if (pdev->subsystem_vendor == PCI_VENDOR_ID_PROMISE) { in i2o_pci_probe()
373 i960 = pci_get_slot(c->pdev->bus, in i2o_pci_probe()
374 PCI_DEVFN(PCI_SLOT(c->pdev->devfn), 0)); in i2o_pci_probe()
385 if (pdev->subsystem_vendor == PCI_VENDOR_ID_DPT) in i2o_pci_probe()
389 if (pdev->vendor == PCI_VENDOR_ID_DPT) { in i2o_pci_probe()
391 if (pdev->device == 0xa511) in i2o_pci_probe()
394 if (pdev->subsystem_device == 0xc05a) { in i2o_pci_probe()
402 if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) in i2o_pci_probe()
444 pci_disable_device(pdev); in i2o_pci_probe()
456 static void __devexit i2o_pci_remove(struct pci_dev *pdev) in i2o_pci_remove() argument
459 c = pci_get_drvdata(pdev); in i2o_pci_remove()
465 pci_disable_device(pdev); in i2o_pci_remove()