Lines Matching refs:pdev
39 static inline bool is_intel_quark_x1000(struct pci_dev *pdev) in is_intel_quark_x1000() argument
41 return pdev->vendor == PCI_VENDOR_ID_INTEL && in is_intel_quark_x1000()
42 pdev->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC; in is_intel_quark_x1000()
58 static inline bool is_bypassed_id(struct pci_dev *pdev) in is_bypassed_id() argument
60 return !!pci_match_id(bypass_pci_id_table, pdev); in is_bypassed_id()
73 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument
82 retval = pci_set_mwi(pdev); in ehci_pci_reinit()
87 if (is_intel_quark_x1000(pdev)) { in ehci_pci_reinit()
103 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_setup() local
118 switch (pdev->vendor) { in ehci_pci_setup()
121 if (pdev->device == 0x01b5) { in ehci_pci_setup()
135 switch (pdev->device) { in ehci_pci_setup()
140 if (pci_set_consistent_dma_mask(pdev, in ehci_pci_setup()
150 if (pdev->revision < 0xa4) in ehci_pci_setup()
156 if (pdev->device == PCI_DEVICE_ID_INTEL_CE4100_USB) in ehci_pci_setup()
160 if (pdev->device == PCI_DEVICE_ID_TDI_EHCI) in ehci_pci_setup()
168 if (pdev->device == 0x7463) { in ehci_pci_setup()
181 if (pdev->device == 0x7808) { in ehci_pci_setup()
187 if (pdev->device == 0x3104 && (pdev->revision & 0xf0) == 0x60) { in ehci_pci_setup()
194 pci_read_config_byte(pdev, 0x4b, &tmp); in ehci_pci_setup()
197 pci_write_config_byte(pdev, 0x4b, tmp | 0x20); in ehci_pci_setup()
212 if (pdev->device == 0x4396) { in ehci_pci_setup()
219 if ((pdev->device == 0x4386 || pdev->device == 0x4396) && in ehci_pci_setup()
223 pci_read_config_byte(pdev, 0x53, &tmp); in ehci_pci_setup()
224 pci_write_config_byte(pdev, 0x53, tmp | (1<<3)); in ehci_pci_setup()
235 temp = pci_find_capability(pdev, PCI_CAP_ID_DBG); in ehci_pci_setup()
237 pci_read_config_dword(pdev, temp, &temp); in ehci_pci_setup()
259 switch (pdev->vendor) { in ehci_pci_setup()
267 switch (pdev->device) { in ehci_pci_setup()
292 switch (pdev->vendor) { in ehci_pci_setup()
305 if (pdev->vendor == PCI_VENDOR_ID_STMICRO in ehci_pci_setup()
306 && pdev->device == PCI_DEVICE_ID_STMICRO_USB_HOST) in ehci_pci_setup()
309 pci_read_config_byte(pdev, 0x60, &ehci->sbrn); in ehci_pci_setup()
316 if (!device_can_wakeup(&pdev->dev)) { in ehci_pci_setup()
319 pci_read_config_word(pdev, 0x62, &port_wake); in ehci_pci_setup()
321 dev_warn(&pdev->dev, "Enabling legacy PCI PM\n"); in ehci_pci_setup()
322 device_set_wakeup_capable(&pdev->dev, 1); in ehci_pci_setup()
327 if (ehci->no_selective_suspend && device_can_wakeup(&pdev->dev)) in ehci_pci_setup()
331 retval = ehci_pci_reinit(ehci, pdev); in ehci_pci_setup()
352 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_resume() local
355 (void) ehci_pci_reinit(ehci, pdev); in ehci_pci_resume()
373 static int ehci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) in ehci_pci_probe() argument
375 if (is_bypassed_id(pdev)) in ehci_pci_probe()
377 return usb_hcd_pci_probe(pdev, id); in ehci_pci_probe()