Lines Matching refs:pdev
121 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_msix_sync_irqs() local
124 synchronize_irq(pci_irq_vector(pdev, 0)); in xhci_msix_sync_irqs()
132 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_cleanup_msix() local
137 free_irq(pci_irq_vector(pdev, 0), xhci_to_hcd(xhci)); in xhci_cleanup_msix()
138 pci_free_irq_vectors(pdev); in xhci_cleanup_msix()
145 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_try_enable_msi() local
169 xhci->nvecs = pci_alloc_irq_vectors(pdev, 1, xhci->nvecs, in xhci_try_enable_msi()
177 ret = request_irq(pci_irq_vector(pdev, 0), xhci_msi_irq, 0, "xhci_hcd", in xhci_try_enable_msi()
183 hcd->msix_enabled = pdev->msix_enabled; in xhci_try_enable_msi()
188 pdev->msix_enabled ? "MSI-X" : "MSI"); in xhci_try_enable_msi()
189 pci_free_irq_vectors(pdev); in xhci_try_enable_msi()
192 if (!pdev->irq) { in xhci_try_enable_msi()
202 ret = request_irq(pdev->irq, &usb_hcd_irq, IRQF_SHARED, hcd->irq_descr, hcd); in xhci_try_enable_msi()
204 xhci_err(xhci, "request interrupt %d failed\n", pdev->irq); in xhci_try_enable_msi()
207 hcd->irq = pdev->irq; in xhci_try_enable_msi()
235 static int xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) in xhci_pci_reinit() argument
244 if (!pci_set_mwi(pdev)) in xhci_pci_reinit()
253 struct pci_dev *pdev = to_pci_dev(dev); in xhci_pci_quirks() local
256 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
257 (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK || in xhci_pci_quirks()
258 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1400)) { in xhci_pci_quirks()
259 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks()
260 pdev->revision == 0x0) { in xhci_pci_quirks()
265 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks()
266 pdev->revision == 0x4) { in xhci_pci_quirks()
271 pdev->revision); in xhci_pci_quirks()
273 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK) in xhci_pci_quirks()
283 pdev->revision); in xhci_pci_quirks()
286 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
287 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1009) in xhci_pci_quirks()
290 if (pdev->vendor == PCI_VENDOR_ID_NEC) in xhci_pci_quirks()
293 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
294 (pdev->device == PCI_DEVICE_ID_AMD_ARIEL_TYPEC_XHCI || in xhci_pci_quirks()
295 pdev->device == PCI_DEVICE_ID_AMD_ARIEL_TYPEA_XHCI || in xhci_pci_quirks()
296 pdev->device == PCI_DEVICE_ID_AMD_STARSHIP_XHCI || in xhci_pci_quirks()
297 pdev->device == PCI_DEVICE_ID_AMD_FIREFLIGHT_15D4_XHCI || in xhci_pci_quirks()
298 pdev->device == PCI_DEVICE_ID_AMD_FIREFLIGHT_15D5_XHCI || in xhci_pci_quirks()
299 pdev->device == PCI_DEVICE_ID_AMD_RAVEN_15E0_XHCI || in xhci_pci_quirks()
300 pdev->device == PCI_DEVICE_ID_AMD_RAVEN_15E1_XHCI || in xhci_pci_quirks()
301 pdev->device == PCI_DEVICE_ID_AMD_RAVEN2_XHCI)) in xhci_pci_quirks()
304 if (pdev->vendor == PCI_VENDOR_ID_ATI && in xhci_pci_quirks()
305 pdev->device == PCI_DEVICE_ID_ATI_NAVI10_7316_XHCI) in xhci_pci_quirks()
308 if (pdev->vendor == PCI_VENDOR_ID_AMD && xhci->hci_version == 0x96) in xhci_pci_quirks()
312 if (pdev->vendor == PCI_VENDOR_ID_AMD && usb_amd_quirk_pll_check()) in xhci_pci_quirks()
315 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
316 (pdev->device == 0x145c || in xhci_pci_quirks()
317 pdev->device == 0x15e0 || in xhci_pci_quirks()
318 pdev->device == 0x15e1 || in xhci_pci_quirks()
319 pdev->device == 0x43bb)) in xhci_pci_quirks()
322 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
323 (pdev->device == 0x15e0 || pdev->device == 0x15e1)) in xhci_pci_quirks()
326 if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5) { in xhci_pci_quirks()
331 if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x43f7) in xhci_pci_quirks()
334 if ((pdev->vendor == PCI_VENDOR_ID_AMD) && in xhci_pci_quirks()
335 ((pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4) || in xhci_pci_quirks()
336 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_3) || in xhci_pci_quirks()
337 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_2) || in xhci_pci_quirks()
338 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_1))) in xhci_pci_quirks()
341 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
342 pdev->device == PCI_DEVICE_ID_AMD_RENOIR_XHCI) in xhci_pci_quirks()
345 if (pdev->vendor == PCI_VENDOR_ID_INTEL) { in xhci_pci_quirks()
350 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
351 pdev->device == PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI) { in xhci_pci_quirks()
365 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
366 (pdev->device == PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI || in xhci_pci_quirks()
367 pdev->device == PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP_XHCI)) { in xhci_pci_quirks()
371 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
372 (pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
373 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_XHCI || in xhci_pci_quirks()
374 pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
375 pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_M_XHCI || in xhci_pci_quirks()
376 pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_B_XHCI || in xhci_pci_quirks()
377 pdev->device == PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI || in xhci_pci_quirks()
378 pdev->device == PCI_DEVICE_ID_INTEL_DENVERTON_XHCI || in xhci_pci_quirks()
379 pdev->device == PCI_DEVICE_ID_INTEL_COMET_LAKE_XHCI)) { in xhci_pci_quirks()
382 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
383 pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI) in xhci_pci_quirks()
385 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
386 (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
387 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
388 pdev->device == PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI)) in xhci_pci_quirks()
390 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
391 (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
392 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
393 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_XHCI || in xhci_pci_quirks()
394 pdev->device == PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI || in xhci_pci_quirks()
395 pdev->device == PCI_DEVICE_ID_INTEL_DENVERTON_XHCI)) in xhci_pci_quirks()
398 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
399 (pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_PCH_XHCI || in xhci_pci_quirks()
400 pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI || in xhci_pci_quirks()
401 pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI)) in xhci_pci_quirks()
404 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
405 (pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_2C_XHCI || in xhci_pci_quirks()
406 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_4C_XHCI || in xhci_pci_quirks()
407 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_XHCI || in xhci_pci_quirks()
408 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_2C_XHCI || in xhci_pci_quirks()
409 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_4C_XHCI || in xhci_pci_quirks()
410 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_2C_XHCI || in xhci_pci_quirks()
411 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_XHCI || in xhci_pci_quirks()
412 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_DD_XHCI || in xhci_pci_quirks()
413 pdev->device == PCI_DEVICE_ID_INTEL_ICE_LAKE_XHCI || in xhci_pci_quirks()
414 pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI || in xhci_pci_quirks()
415 pdev->device == PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI)) in xhci_pci_quirks()
418 if (pdev->vendor == PCI_VENDOR_ID_ETRON && in xhci_pci_quirks()
419 (pdev->device == PCI_DEVICE_ID_ETRON_EJ168 || in xhci_pci_quirks()
420 pdev->device == PCI_DEVICE_ID_ETRON_EJ188)) { in xhci_pci_quirks()
427 if (pdev->vendor == PCI_VENDOR_ID_RENESAS && in xhci_pci_quirks()
428 pdev->device == 0x0014) { in xhci_pci_quirks()
431 if (pdev->vendor == PCI_VENDOR_ID_RENESAS && in xhci_pci_quirks()
432 pdev->device == 0x0015) { in xhci_pci_quirks()
436 if (pdev->vendor == PCI_VENDOR_ID_VIA) in xhci_pci_quirks()
439 if (pdev->vendor == PCI_VENDOR_ID_PHYTIUM && in xhci_pci_quirks()
440 pdev->device == PCI_DEVICE_ID_PHYTIUM_XHCI) in xhci_pci_quirks()
444 if (pdev->vendor == PCI_VENDOR_ID_VIA && in xhci_pci_quirks()
445 pdev->device == 0x3432) in xhci_pci_quirks()
448 if (pdev->vendor == PCI_VENDOR_ID_VIA && pdev->device == PCI_DEVICE_ID_VIA_VL805) { in xhci_pci_quirks()
453 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
454 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) { in xhci_pci_quirks()
462 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
463 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) { in xhci_pci_quirks()
466 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
467 (pdev->device == PCI_DEVICE_ID_ASMEDIA_1142_XHCI || in xhci_pci_quirks()
468 pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI || in xhci_pci_quirks()
469 pdev->device == PCI_DEVICE_ID_ASMEDIA_3242_XHCI)) in xhci_pci_quirks()
472 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
473 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) in xhci_pci_quirks()
476 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
477 pdev->device == PCI_DEVICE_ID_ASMEDIA_3042_XHCI) in xhci_pci_quirks()
480 if (pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241) in xhci_pci_quirks()
483 if ((pdev->vendor == PCI_VENDOR_ID_BROADCOM || in xhci_pci_quirks()
484 pdev->vendor == PCI_VENDOR_ID_CAVIUM) && in xhci_pci_quirks()
485 pdev->device == 0x9026) in xhci_pci_quirks()
488 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
489 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_2 || in xhci_pci_quirks()
490 pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4)) in xhci_pci_quirks()
493 if (pdev->vendor == PCI_VENDOR_ID_ZHAOXIN) { in xhci_pci_quirks()
497 if (pdev->device == 0x9202) { in xhci_pci_quirks()
502 if (pdev->device == 0x9203) in xhci_pci_quirks()
506 if (pdev->vendor == PCI_VENDOR_ID_CDNS && in xhci_pci_quirks()
507 pdev->device == PCI_DEVICE_ID_CDNS_USBSSP) in xhci_pci_quirks()
569 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_setup() local
586 xhci_pme_acpi_rtd3_enable(pdev); in xhci_pci_setup()
588 pci_read_config_byte(pdev, XHCI_SBRN_OFFSET, &sbrn); in xhci_pci_setup()
592 return xhci_pci_reinit(xhci, pdev); in xhci_pci_setup()
796 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_suspend() local
804 pci_d3cold_disable(pdev); in xhci_pci_suspend()
810 pci_d3cold_disable(pdev); in xhci_pci_suspend()
836 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_resume() local
860 if (pdev->vendor == PCI_VENDOR_ID_INTEL) in xhci_pci_resume()
861 usb_enable_intel_xhci_ports(pdev); in xhci_pci_resume()
924 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_shutdown() local
931 pci_set_power_state(pdev, PCI_D3hot); in xhci_pci_shutdown()