Lines Matching refs:pdev
57 static int ci_hdrc_pci_probe(struct pci_dev *pdev, in ci_hdrc_pci_probe() argument
66 dev_err(&pdev->dev, "device doesn't provide driver data\n"); in ci_hdrc_pci_probe()
70 ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); in ci_hdrc_pci_probe()
74 retval = pcim_enable_device(pdev); in ci_hdrc_pci_probe()
78 if (!pdev->irq) { in ci_hdrc_pci_probe()
79 dev_err(&pdev->dev, "No IRQ, check BIOS/PCI setup!"); in ci_hdrc_pci_probe()
83 pci_set_master(pdev); in ci_hdrc_pci_probe()
84 pci_try_set_mwi(pdev); in ci_hdrc_pci_probe()
92 res[0].start = pci_resource_start(pdev, 0); in ci_hdrc_pci_probe()
93 res[0].end = pci_resource_end(pdev, 0); in ci_hdrc_pci_probe()
95 res[1].start = pdev->irq; in ci_hdrc_pci_probe()
98 ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata); in ci_hdrc_pci_probe()
100 dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n"); in ci_hdrc_pci_probe()
105 pci_set_drvdata(pdev, ci); in ci_hdrc_pci_probe()
118 static void ci_hdrc_pci_remove(struct pci_dev *pdev) in ci_hdrc_pci_remove() argument
120 struct ci_hdrc_pci *ci = pci_get_drvdata(pdev); in ci_hdrc_pci_remove()