Lines Matching refs:pdev

32 static irqreturn_t ci13xxx_pci_irq(int irq, void *pdev)  in ci13xxx_pci_irq()  argument
35 dev_err(&((struct pci_dev *)pdev)->dev, "Invalid IRQ0 usage!"); in ci13xxx_pci_irq()
54 static int __devinit ci13xxx_pci_probe(struct pci_dev *pdev, in ci13xxx_pci_probe() argument
63 retval = pci_enable_device(pdev); in ci13xxx_pci_probe()
67 if (!pdev->irq) { in ci13xxx_pci_probe()
68 dev_err(&pdev->dev, "No IRQ, check BIOS/PCI setup!"); in ci13xxx_pci_probe()
73 retval = pci_request_regions(pdev, UDC_DRIVER_NAME); in ci13xxx_pci_probe()
78 regs = pci_iomap(pdev, 0, 0); in ci13xxx_pci_probe()
80 dev_err(&pdev->dev, "Error mapping memory!"); in ci13xxx_pci_probe()
84 pci_set_drvdata(pdev, (__force void *)regs); in ci13xxx_pci_probe()
86 pci_set_master(pdev); in ci13xxx_pci_probe()
87 pci_try_set_mwi(pdev); in ci13xxx_pci_probe()
89 retval = udc_probe(&ci13xxx_pci_udc_driver, &pdev->dev, regs); in ci13xxx_pci_probe()
95 retval = request_irq(pdev->irq, ci13xxx_pci_irq, IRQF_SHARED, in ci13xxx_pci_probe()
96 UDC_DRIVER_NAME, pdev); in ci13xxx_pci_probe()
105 pci_iounmap(pdev, regs); in ci13xxx_pci_probe()
107 pci_release_regions(pdev); in ci13xxx_pci_probe()
109 pci_disable_device(pdev); in ci13xxx_pci_probe()
122 static void __devexit ci13xxx_pci_remove(struct pci_dev *pdev) in ci13xxx_pci_remove() argument
124 free_irq(pdev->irq, pdev); in ci13xxx_pci_remove()
126 pci_iounmap(pdev, (__force void __iomem *)pci_get_drvdata(pdev)); in ci13xxx_pci_remove()
127 pci_release_regions(pdev); in ci13xxx_pci_remove()
128 pci_disable_device(pdev); in ci13xxx_pci_remove()