Lines Matching refs:pdev
112 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_msix_sync_irqs() local
115 synchronize_irq(pci_irq_vector(pdev, 0)); in xhci_msix_sync_irqs()
123 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_cleanup_msix() local
128 free_irq(pci_irq_vector(pdev, 0), xhci_to_hcd(xhci)); in xhci_cleanup_msix()
129 pci_free_irq_vectors(pdev); in xhci_cleanup_msix()
136 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_try_enable_msi() local
163 xhci->nvecs = pci_alloc_irq_vectors(pdev, 1, xhci->nvecs, in xhci_try_enable_msi()
171 ret = request_irq(pci_irq_vector(pdev, 0), xhci_msi_irq, 0, "xhci_hcd", in xhci_try_enable_msi()
177 hcd->msix_enabled = pdev->msix_enabled; in xhci_try_enable_msi()
182 pdev->msix_enabled ? "MSI-X" : "MSI"); in xhci_try_enable_msi()
183 pci_free_irq_vectors(pdev); in xhci_try_enable_msi()
186 if (!pdev->irq) { in xhci_try_enable_msi()
196 ret = request_irq(pdev->irq, &usb_hcd_irq, IRQF_SHARED, hcd->irq_descr, hcd); in xhci_try_enable_msi()
198 xhci_err(xhci, "request interrupt %d failed\n", pdev->irq); in xhci_try_enable_msi()
201 hcd->irq = pdev->irq; in xhci_try_enable_msi()
229 static int xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) in xhci_pci_reinit() argument
238 if (!pci_set_mwi(pdev)) in xhci_pci_reinit()
247 struct pci_dev *pdev = to_pci_dev(dev); in xhci_pci_quirks() local
250 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
251 (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK || in xhci_pci_quirks()
252 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1400)) { in xhci_pci_quirks()
253 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks()
254 pdev->revision == 0x0) { in xhci_pci_quirks()
259 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks()
260 pdev->revision == 0x4) { in xhci_pci_quirks()
265 pdev->revision); in xhci_pci_quirks()
267 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK) in xhci_pci_quirks()
277 pdev->revision); in xhci_pci_quirks()
280 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
281 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1009) in xhci_pci_quirks()
284 if (pdev->vendor == PCI_VENDOR_ID_NEC) in xhci_pci_quirks()
287 if (pdev->vendor == PCI_VENDOR_ID_AMD && xhci->hci_version == 0x96) in xhci_pci_quirks()
291 if (pdev->vendor == PCI_VENDOR_ID_AMD && usb_amd_quirk_pll_check()) in xhci_pci_quirks()
294 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
295 (pdev->device == 0x145c || in xhci_pci_quirks()
296 pdev->device == 0x15e0 || in xhci_pci_quirks()
297 pdev->device == 0x15e1 || in xhci_pci_quirks()
298 pdev->device == 0x43bb)) in xhci_pci_quirks()
301 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
302 (pdev->device == 0x15e0 || pdev->device == 0x15e1)) in xhci_pci_quirks()
305 if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5) { in xhci_pci_quirks()
310 if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x43f7) in xhci_pci_quirks()
313 if ((pdev->vendor == PCI_VENDOR_ID_AMD) && in xhci_pci_quirks()
314 ((pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4) || in xhci_pci_quirks()
315 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_3) || in xhci_pci_quirks()
316 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_2) || in xhci_pci_quirks()
317 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_1))) in xhci_pci_quirks()
320 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
321 pdev->device == PCI_DEVICE_ID_AMD_RENOIR_XHCI) in xhci_pci_quirks()
324 if (pdev->vendor == PCI_VENDOR_ID_INTEL) { in xhci_pci_quirks()
329 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
330 pdev->device == PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI) { in xhci_pci_quirks()
344 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
345 (pdev->device == PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI || in xhci_pci_quirks()
346 pdev->device == PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP_XHCI)) { in xhci_pci_quirks()
350 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
351 (pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
352 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_XHCI || in xhci_pci_quirks()
353 pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
354 pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_M_XHCI || in xhci_pci_quirks()
355 pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_B_XHCI || in xhci_pci_quirks()
356 pdev->device == PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI || in xhci_pci_quirks()
357 pdev->device == PCI_DEVICE_ID_INTEL_DENVERTON_XHCI || in xhci_pci_quirks()
358 pdev->device == PCI_DEVICE_ID_INTEL_COMET_LAKE_XHCI)) { in xhci_pci_quirks()
361 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
362 pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI) in xhci_pci_quirks()
364 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
365 (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
366 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
367 pdev->device == PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI)) in xhci_pci_quirks()
369 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
370 (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
371 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
372 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_XHCI || in xhci_pci_quirks()
373 pdev->device == PCI_DEVICE_ID_INTEL_APOLLO_LAKE_XHCI || in xhci_pci_quirks()
374 pdev->device == PCI_DEVICE_ID_INTEL_DENVERTON_XHCI)) in xhci_pci_quirks()
377 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
378 (pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_PCH_XHCI || in xhci_pci_quirks()
379 pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI || in xhci_pci_quirks()
380 pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_N_PCH_XHCI)) in xhci_pci_quirks()
383 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
384 (pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_2C_XHCI || in xhci_pci_quirks()
385 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_4C_XHCI || in xhci_pci_quirks()
386 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_XHCI || in xhci_pci_quirks()
387 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_2C_XHCI || in xhci_pci_quirks()
388 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_4C_XHCI || in xhci_pci_quirks()
389 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_2C_XHCI || in xhci_pci_quirks()
390 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_XHCI || in xhci_pci_quirks()
391 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_DD_XHCI || in xhci_pci_quirks()
392 pdev->device == PCI_DEVICE_ID_INTEL_ICE_LAKE_XHCI || in xhci_pci_quirks()
393 pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI || in xhci_pci_quirks()
394 pdev->device == PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI)) in xhci_pci_quirks()
397 if (pdev->vendor == PCI_VENDOR_ID_ETRON && in xhci_pci_quirks()
398 pdev->device == PCI_DEVICE_ID_EJ168) { in xhci_pci_quirks()
402 if (pdev->vendor == PCI_VENDOR_ID_ETRON && in xhci_pci_quirks()
403 pdev->device == PCI_DEVICE_ID_EJ188) { in xhci_pci_quirks()
408 if (pdev->vendor == PCI_VENDOR_ID_RENESAS && in xhci_pci_quirks()
409 pdev->device == 0x0014) { in xhci_pci_quirks()
412 if (pdev->vendor == PCI_VENDOR_ID_RENESAS && in xhci_pci_quirks()
413 pdev->device == 0x0015) { in xhci_pci_quirks()
417 if (pdev->vendor == PCI_VENDOR_ID_VIA) in xhci_pci_quirks()
420 if (pdev->vendor == PCI_VENDOR_ID_PHYTIUM && in xhci_pci_quirks()
421 pdev->device == PCI_DEVICE_ID_PHYTIUM_XHCI) in xhci_pci_quirks()
425 if (pdev->vendor == PCI_VENDOR_ID_VIA && in xhci_pci_quirks()
426 pdev->device == 0x3432) in xhci_pci_quirks()
429 if (pdev->vendor == PCI_VENDOR_ID_VIA && pdev->device == 0x3483) in xhci_pci_quirks()
432 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
433 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) { in xhci_pci_quirks()
441 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
442 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) { in xhci_pci_quirks()
445 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
446 (pdev->device == PCI_DEVICE_ID_ASMEDIA_1142_XHCI || in xhci_pci_quirks()
447 pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI || in xhci_pci_quirks()
448 pdev->device == PCI_DEVICE_ID_ASMEDIA_3242_XHCI)) in xhci_pci_quirks()
451 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
452 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) in xhci_pci_quirks()
455 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
456 pdev->device == PCI_DEVICE_ID_ASMEDIA_3042_XHCI) in xhci_pci_quirks()
459 if (pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241) in xhci_pci_quirks()
462 if ((pdev->vendor == PCI_VENDOR_ID_BROADCOM || in xhci_pci_quirks()
463 pdev->vendor == PCI_VENDOR_ID_CAVIUM) && in xhci_pci_quirks()
464 pdev->device == 0x9026) in xhci_pci_quirks()
467 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
468 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_2 || in xhci_pci_quirks()
469 pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4)) in xhci_pci_quirks()
472 if (pdev->vendor == PCI_VENDOR_ID_ZHAOXIN) { in xhci_pci_quirks()
476 if (pdev->device == 0x9202) { in xhci_pci_quirks()
481 if (pdev->device == 0x9203) in xhci_pci_quirks()
485 if (pdev->vendor == PCI_DEVICE_ID_CADENCE && in xhci_pci_quirks()
486 pdev->device == PCI_DEVICE_ID_CADENCE_SSP) in xhci_pci_quirks()
548 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_setup() local
565 xhci_pme_acpi_rtd3_enable(pdev); in xhci_pci_setup()
567 pci_read_config_byte(pdev, XHCI_SBRN_OFFSET, &sbrn); in xhci_pci_setup()
571 return xhci_pci_reinit(xhci, pdev); in xhci_pci_setup()
771 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_suspend() local
779 pci_d3cold_disable(pdev); in xhci_pci_suspend()
785 pci_d3cold_disable(pdev); in xhci_pci_suspend()
811 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_resume() local
833 if (pdev->vendor == PCI_VENDOR_ID_INTEL) in xhci_pci_resume()
834 usb_enable_intel_xhci_ports(pdev); in xhci_pci_resume()
897 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_shutdown() local
904 pci_set_power_state(pdev, PCI_D3hot); in xhci_pci_shutdown()