Lines Matching refs:pdev
38 * @pdev: pointer to PCI handle
40 static void tc_dwc_g210_pci_remove(struct pci_dev *pdev)
42 struct ufs_hba *hba = pci_get_drvdata(pdev);
44 pm_runtime_forbid(&pdev->dev);
45 pm_runtime_get_noresume(&pdev->dev);
51 * @pdev: pointer to PCI device handle
57 tc_dwc_g210_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
71 dev_err(&pdev->dev, "test chip version not specified\n");
75 err = pcim_enable_device(pdev);
77 dev_err(&pdev->dev, "pcim_enable_device failed\n");
81 pci_set_master(pdev);
83 err = pcim_iomap_regions(pdev, 1 << 0, UFSHCD);
85 dev_err(&pdev->dev, "request and iomap failed\n");
89 mmio_base = pcim_iomap_table(pdev)[0];
91 err = ufshcd_alloc_host(&pdev->dev, &hba);
93 dev_err(&pdev->dev, "Allocation failed\n");
99 err = ufshcd_init(hba, mmio_base, pdev->irq);
101 dev_err(&pdev->dev, "Initialization failed\n");
105 pm_runtime_put_noidle(&pdev->dev);
106 pm_runtime_allow(&pdev->dev);