Lines Matching refs:pdev

26 static inline bool is_intel_quark_x1000(struct pci_dev *pdev)  in is_intel_quark_x1000()  argument
28 return pdev->vendor == PCI_VENDOR_ID_INTEL && in is_intel_quark_x1000()
29 pdev->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC; in is_intel_quark_x1000()
45 static inline bool is_bypassed_id(struct pci_dev *pdev) in is_bypassed_id() argument
47 return !!pci_match_id(bypass_pci_id_table, pdev); in is_bypassed_id()
60 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument
69 retval = pci_set_mwi(pdev); in ehci_pci_reinit()
74 if (is_intel_quark_x1000(pdev)) { in ehci_pci_reinit()
90 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_setup() local
105 switch (pdev->vendor) { in ehci_pci_setup()
108 if (pdev->device == 0x01b5) { in ehci_pci_setup()
122 switch (pdev->device) { in ehci_pci_setup()
127 if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(31)) < 0) in ehci_pci_setup()
136 if (pdev->revision < 0xa4) in ehci_pci_setup()
142 if (pdev->device == PCI_DEVICE_ID_INTEL_CE4100_USB) in ehci_pci_setup()
146 if (pdev->device == PCI_DEVICE_ID_TDI_EHCI) in ehci_pci_setup()
154 if (pdev->device == 0x7463) { in ehci_pci_setup()
167 if (pdev->device == 0x7808) { in ehci_pci_setup()
173 if (pdev->device == 0x3104 && (pdev->revision & 0xf0) == 0x60) { in ehci_pci_setup()
180 pci_read_config_byte(pdev, 0x4b, &tmp); in ehci_pci_setup()
183 pci_write_config_byte(pdev, 0x4b, tmp | 0x20); in ehci_pci_setup()
198 if (pdev->device == 0x4396) { in ehci_pci_setup()
205 if ((pdev->device == 0x4386 || pdev->device == 0x4396) && in ehci_pci_setup()
209 pci_read_config_byte(pdev, 0x53, &tmp); in ehci_pci_setup()
210 pci_write_config_byte(pdev, 0x53, tmp | (1<<3)); in ehci_pci_setup()
220 if (pdev->device == 0xa239) { in ehci_pci_setup()
228 temp = pci_find_capability(pdev, PCI_CAP_ID_DBG); in ehci_pci_setup()
230 pci_read_config_dword(pdev, temp, &temp); in ehci_pci_setup()
252 switch (pdev->vendor) { in ehci_pci_setup()
259 switch (pdev->device) { in ehci_pci_setup()
284 switch (pdev->vendor) { in ehci_pci_setup()
297 if (pdev->vendor == PCI_VENDOR_ID_STMICRO in ehci_pci_setup()
298 && pdev->device == PCI_DEVICE_ID_STMICRO_USB_HOST) in ehci_pci_setup()
300 else if (pdev->vendor == PCI_VENDOR_ID_HUAWEI in ehci_pci_setup()
301 && pdev->device == 0xa239) in ehci_pci_setup()
304 pci_read_config_byte(pdev, 0x60, &ehci->sbrn); in ehci_pci_setup()
311 if (!device_can_wakeup(&pdev->dev)) { in ehci_pci_setup()
314 pci_read_config_word(pdev, 0x62, &port_wake); in ehci_pci_setup()
316 dev_warn(&pdev->dev, "Enabling legacy PCI PM\n"); in ehci_pci_setup()
317 device_set_wakeup_capable(&pdev->dev, 1); in ehci_pci_setup()
322 if (ehci->no_selective_suspend && device_can_wakeup(&pdev->dev)) in ehci_pci_setup()
326 retval = ehci_pci_reinit(ehci, pdev); in ehci_pci_setup()
347 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_resume() local
350 (void) ehci_pci_reinit(ehci, pdev); in ehci_pci_resume()
368 static int ehci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) in ehci_pci_probe() argument
370 if (is_bypassed_id(pdev)) in ehci_pci_probe()
372 return usb_hcd_pci_probe(pdev, id, &ehci_pci_hc_driver); in ehci_pci_probe()
375 static void ehci_pci_remove(struct pci_dev *pdev) in ehci_pci_remove() argument
377 pci_clear_mwi(pdev); in ehci_pci_remove()
378 usb_hcd_pci_remove(pdev); in ehci_pci_remove()