Lines Matching refs:pdev

97 		struct pci_dev *pdev = to_pci_dev(hcd->self.controller);  in xhci_msix_sync_irqs()  local
101 synchronize_irq(pci_irq_vector(pdev, i)); in xhci_msix_sync_irqs()
109 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_cleanup_msix() local
119 free_irq(pci_irq_vector(pdev, i), xhci_to_hcd(xhci)); in xhci_cleanup_msix()
121 free_irq(pci_irq_vector(pdev, 0), xhci_to_hcd(xhci)); in xhci_cleanup_msix()
124 pci_free_irq_vectors(pdev); in xhci_cleanup_msix()
137 struct pci_dev *pdev = to_pci_dev(xhci_to_hcd(xhci)->self.controller); in xhci_setup_msi() local
139 ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSI); in xhci_setup_msi()
146 ret = request_irq(pdev->irq, xhci_msi_irq, in xhci_setup_msi()
151 pci_free_irq_vectors(pdev); in xhci_setup_msi()
164 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_setup_msix() local
176 ret = pci_alloc_irq_vectors(pdev, xhci->msix_count, xhci->msix_count, in xhci_setup_msix()
185 ret = request_irq(pci_irq_vector(pdev, i), xhci_msi_irq, 0, in xhci_setup_msix()
197 free_irq(pci_irq_vector(pdev, i), xhci_to_hcd(xhci)); in xhci_setup_msix()
198 pci_free_irq_vectors(pdev); in xhci_setup_msix()
205 struct pci_dev *pdev; in xhci_try_enable_msi() local
208 pdev = to_pci_dev(xhci_to_hcd(xhci)->self.controller); in xhci_try_enable_msi()
231 if (!pdev->irq) { in xhci_try_enable_msi()
242 ret = request_irq(pdev->irq, &usb_hcd_irq, IRQF_SHARED, in xhci_try_enable_msi()
246 pdev->irq); in xhci_try_enable_msi()
249 hcd->irq = pdev->irq; in xhci_try_enable_msi()
277 static int xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) in xhci_pci_reinit() argument
286 if (!pci_set_mwi(pdev)) in xhci_pci_reinit()
295 struct pci_dev *pdev = to_pci_dev(dev); in xhci_pci_quirks() local
299 id = pci_match_id(to_pci_driver(pdev->dev.driver)->id_table, pdev); in xhci_pci_quirks()
307 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
308 (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK || in xhci_pci_quirks()
309 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1400)) { in xhci_pci_quirks()
310 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks()
311 pdev->revision == 0x0) { in xhci_pci_quirks()
316 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks()
317 pdev->revision == 0x4) { in xhci_pci_quirks()
322 pdev->revision); in xhci_pci_quirks()
324 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK) in xhci_pci_quirks()
334 pdev->revision); in xhci_pci_quirks()
338 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
339 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1009) in xhci_pci_quirks()
342 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
343 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1100) in xhci_pci_quirks()
346 if (pdev->vendor == PCI_VENDOR_ID_NEC) in xhci_pci_quirks()
349 if (pdev->vendor == PCI_VENDOR_ID_AMD && xhci->hci_version == 0x96) in xhci_pci_quirks()
353 if (pdev->vendor == PCI_VENDOR_ID_AMD && usb_amd_quirk_pll_check()) in xhci_pci_quirks()
356 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
357 (pdev->device == 0x145c || in xhci_pci_quirks()
358 pdev->device == 0x15e0 || in xhci_pci_quirks()
359 pdev->device == 0x15e1 || in xhci_pci_quirks()
360 pdev->device == 0x43bb)) in xhci_pci_quirks()
363 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
364 (pdev->device == 0x15e0 || pdev->device == 0x15e1)) in xhci_pci_quirks()
367 if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5) { in xhci_pci_quirks()
372 if (pdev->vendor == PCI_VENDOR_ID_AMD) in xhci_pci_quirks()
375 if ((pdev->vendor == PCI_VENDOR_ID_AMD) && in xhci_pci_quirks()
376 ((pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4) || in xhci_pci_quirks()
377 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_3) || in xhci_pci_quirks()
378 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_2) || in xhci_pci_quirks()
379 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_1))) in xhci_pci_quirks()
382 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
383 pdev->device == PCI_DEVICE_ID_AMD_RENOIR_XHCI) in xhci_pci_quirks()
386 if (pdev->vendor == PCI_VENDOR_ID_INTEL) { in xhci_pci_quirks()
391 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
392 pdev->device == PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI) { in xhci_pci_quirks()
406 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
407 (pdev->device == PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI || in xhci_pci_quirks()
408 pdev->device == PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP_XHCI)) { in xhci_pci_quirks()
412 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
413 (pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
414 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_XHCI || in xhci_pci_quirks()
415 pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
416 pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_M_XHCI || in xhci_pci_quirks()
417 pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_B_XHCI || in xhci_pci_quirks()
418 pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI || in xhci_pci_quirks()
419 pdev->device == PCI_DEVICE_ID_INTEL_DNV_XHCI || in xhci_pci_quirks()
420 pdev->device == PCI_DEVICE_ID_INTEL_CML_XHCI)) { in xhci_pci_quirks()
423 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
424 pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI) in xhci_pci_quirks()
426 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
427 (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
428 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
429 pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI)) in xhci_pci_quirks()
431 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
432 (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
433 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
434 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_XHCI || in xhci_pci_quirks()
435 pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI || in xhci_pci_quirks()
436 pdev->device == PCI_DEVICE_ID_INTEL_DNV_XHCI)) in xhci_pci_quirks()
439 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
440 (pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI || in xhci_pci_quirks()
441 pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI)) in xhci_pci_quirks()
444 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
445 (pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_2C_XHCI || in xhci_pci_quirks()
446 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_4C_XHCI || in xhci_pci_quirks()
447 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_XHCI || in xhci_pci_quirks()
448 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_2C_XHCI || in xhci_pci_quirks()
449 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_4C_XHCI || in xhci_pci_quirks()
450 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_2C_XHCI || in xhci_pci_quirks()
451 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_XHCI || in xhci_pci_quirks()
452 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_DD_XHCI || in xhci_pci_quirks()
453 pdev->device == PCI_DEVICE_ID_INTEL_ICE_LAKE_XHCI || in xhci_pci_quirks()
454 pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI || in xhci_pci_quirks()
455 pdev->device == PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI)) in xhci_pci_quirks()
458 if (pdev->vendor == PCI_VENDOR_ID_ETRON && in xhci_pci_quirks()
459 pdev->device == PCI_DEVICE_ID_EJ168) { in xhci_pci_quirks()
464 if (pdev->vendor == PCI_VENDOR_ID_RENESAS && in xhci_pci_quirks()
465 pdev->device == 0x0014) { in xhci_pci_quirks()
469 if (pdev->vendor == PCI_VENDOR_ID_RENESAS && in xhci_pci_quirks()
470 pdev->device == 0x0015) { in xhci_pci_quirks()
474 if (pdev->vendor == PCI_VENDOR_ID_VIA) in xhci_pci_quirks()
478 if (pdev->vendor == PCI_VENDOR_ID_VIA && in xhci_pci_quirks()
479 pdev->device == 0x3432) in xhci_pci_quirks()
482 if (pdev->vendor == PCI_VENDOR_ID_VIA && pdev->device == 0x3483) in xhci_pci_quirks()
485 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
486 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) { in xhci_pci_quirks()
494 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
495 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) { in xhci_pci_quirks()
499 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
500 (pdev->device == PCI_DEVICE_ID_ASMEDIA_1142_XHCI || in xhci_pci_quirks()
501 pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI || in xhci_pci_quirks()
502 pdev->device == PCI_DEVICE_ID_ASMEDIA_3242_XHCI)) in xhci_pci_quirks()
505 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
506 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) in xhci_pci_quirks()
509 if (pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241) in xhci_pci_quirks()
512 if ((pdev->vendor == PCI_VENDOR_ID_BROADCOM || in xhci_pci_quirks()
513 pdev->vendor == PCI_VENDOR_ID_CAVIUM) && in xhci_pci_quirks()
514 pdev->device == 0x9026) in xhci_pci_quirks()
517 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
518 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_2 || in xhci_pci_quirks()
519 pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4)) in xhci_pci_quirks()
522 if (pdev->vendor == PCI_VENDOR_ID_ZHAOXIN) { in xhci_pci_quirks()
526 if (pdev->device == 0x9202) { in xhci_pci_quirks()
531 if (pdev->device == 0x9203) in xhci_pci_quirks()
594 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_setup() local
599 pci_read_config_byte(pdev, XHCI_SBRN_OFFSET, &xhci->sbrn); in xhci_pci_setup()
612 xhci_pme_acpi_rtd3_enable(pdev); in xhci_pci_setup()
617 return xhci_pci_reinit(xhci, pdev); in xhci_pci_setup()
804 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_suspend() local
812 pci_d3cold_disable(pdev); in xhci_pci_suspend()
818 pci_d3cold_disable(pdev); in xhci_pci_suspend()
844 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_resume() local
867 if (pdev->vendor == PCI_VENDOR_ID_INTEL) in xhci_pci_resume()
868 usb_enable_intel_xhci_ports(pdev); in xhci_pci_resume()
934 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_shutdown() local
941 pci_set_power_state(pdev, PCI_D3hot); in xhci_pci_shutdown()