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 (pci_set_consistent_dma_mask(pdev, in ehci_pci_setup()
137 if (pdev->revision < 0xa4) in ehci_pci_setup()
143 if (pdev->device == PCI_DEVICE_ID_INTEL_CE4100_USB) in ehci_pci_setup()
147 if (pdev->device == PCI_DEVICE_ID_TDI_EHCI) in ehci_pci_setup()
155 if (pdev->device == 0x7463) { in ehci_pci_setup()
168 if (pdev->device == 0x7808) { in ehci_pci_setup()
174 if (pdev->device == 0x3104 && (pdev->revision & 0xf0) == 0x60) { in ehci_pci_setup()
181 pci_read_config_byte(pdev, 0x4b, &tmp); in ehci_pci_setup()
184 pci_write_config_byte(pdev, 0x4b, tmp | 0x20); in ehci_pci_setup()
199 if (pdev->device == 0x4396) { in ehci_pci_setup()
206 if ((pdev->device == 0x4386 || pdev->device == 0x4396) && in ehci_pci_setup()
210 pci_read_config_byte(pdev, 0x53, &tmp); in ehci_pci_setup()
211 pci_write_config_byte(pdev, 0x53, tmp | (1<<3)); in ehci_pci_setup()
222 temp = pci_find_capability(pdev, PCI_CAP_ID_DBG); in ehci_pci_setup()
224 pci_read_config_dword(pdev, temp, &temp); in ehci_pci_setup()
246 switch (pdev->vendor) { in ehci_pci_setup()
253 switch (pdev->device) { in ehci_pci_setup()
278 switch (pdev->vendor) { in ehci_pci_setup()
291 if (pdev->vendor == PCI_VENDOR_ID_STMICRO in ehci_pci_setup()
292 && pdev->device == PCI_DEVICE_ID_STMICRO_USB_HOST) in ehci_pci_setup()
295 pci_read_config_byte(pdev, 0x60, &ehci->sbrn); in ehci_pci_setup()
302 if (!device_can_wakeup(&pdev->dev)) { in ehci_pci_setup()
305 pci_read_config_word(pdev, 0x62, &port_wake); in ehci_pci_setup()
307 dev_warn(&pdev->dev, "Enabling legacy PCI PM\n"); in ehci_pci_setup()
308 device_set_wakeup_capable(&pdev->dev, 1); in ehci_pci_setup()
313 if (ehci->no_selective_suspend && device_can_wakeup(&pdev->dev)) in ehci_pci_setup()
317 retval = ehci_pci_reinit(ehci, pdev); in ehci_pci_setup()
338 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_resume() local
341 (void) ehci_pci_reinit(ehci, pdev); in ehci_pci_resume()
359 static int ehci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) in ehci_pci_probe() argument
361 if (is_bypassed_id(pdev)) in ehci_pci_probe()
363 return usb_hcd_pci_probe(pdev, id); in ehci_pci_probe()
366 static void ehci_pci_remove(struct pci_dev *pdev) in ehci_pci_remove() argument
368 pci_clear_mwi(pdev); in ehci_pci_remove()
369 usb_hcd_pci_remove(pdev); in ehci_pci_remove()