Lines Matching refs:pdev
86 static int xhci_pci_reinit(struct xhci_hcd *xhci, struct pci_dev *pdev) in xhci_pci_reinit() argument
95 if (!pci_set_mwi(pdev)) in xhci_pci_reinit()
104 struct pci_dev *pdev = to_pci_dev(dev); in xhci_pci_quirks() local
108 id = pci_match_id(to_pci_driver(pdev->dev.driver)->id_table, pdev); in xhci_pci_quirks()
116 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
117 (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK || in xhci_pci_quirks()
118 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1400)) { in xhci_pci_quirks()
119 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks()
120 pdev->revision == 0x0) { in xhci_pci_quirks()
125 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && in xhci_pci_quirks()
126 pdev->revision == 0x4) { in xhci_pci_quirks()
131 pdev->revision); in xhci_pci_quirks()
133 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK) in xhci_pci_quirks()
143 pdev->revision); in xhci_pci_quirks()
147 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
148 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1009) in xhci_pci_quirks()
151 if (pdev->vendor == PCI_VENDOR_ID_FRESCO_LOGIC && in xhci_pci_quirks()
152 pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_FL1100) in xhci_pci_quirks()
155 if (pdev->vendor == PCI_VENDOR_ID_NEC) in xhci_pci_quirks()
158 if (pdev->vendor == PCI_VENDOR_ID_AMD && xhci->hci_version == 0x96) in xhci_pci_quirks()
162 if (pdev->vendor == PCI_VENDOR_ID_AMD && usb_amd_quirk_pll_check()) in xhci_pci_quirks()
165 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
166 (pdev->device == 0x145c || in xhci_pci_quirks()
167 pdev->device == 0x15e0 || in xhci_pci_quirks()
168 pdev->device == 0x15e1 || in xhci_pci_quirks()
169 pdev->device == 0x43bb)) in xhci_pci_quirks()
172 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
173 (pdev->device == 0x15e0 || pdev->device == 0x15e1)) in xhci_pci_quirks()
176 if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x15e5) { in xhci_pci_quirks()
181 if (pdev->vendor == PCI_VENDOR_ID_AMD) in xhci_pci_quirks()
184 if ((pdev->vendor == PCI_VENDOR_ID_AMD) && in xhci_pci_quirks()
185 ((pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4) || in xhci_pci_quirks()
186 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_3) || in xhci_pci_quirks()
187 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_2) || in xhci_pci_quirks()
188 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_1))) in xhci_pci_quirks()
191 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
192 pdev->device == PCI_DEVICE_ID_AMD_RENOIR_XHCI) in xhci_pci_quirks()
195 if (pdev->vendor == PCI_VENDOR_ID_INTEL) { in xhci_pci_quirks()
200 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
201 pdev->device == PCI_DEVICE_ID_INTEL_PANTHERPOINT_XHCI) { in xhci_pci_quirks()
215 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
216 (pdev->device == PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI || in xhci_pci_quirks()
217 pdev->device == PCI_DEVICE_ID_INTEL_WILDCATPOINT_LP_XHCI)) { in xhci_pci_quirks()
221 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
222 (pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
223 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_XHCI || in xhci_pci_quirks()
224 pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
225 pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_M_XHCI || in xhci_pci_quirks()
226 pdev->device == PCI_DEVICE_ID_INTEL_BROXTON_B_XHCI || in xhci_pci_quirks()
227 pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI || in xhci_pci_quirks()
228 pdev->device == PCI_DEVICE_ID_INTEL_DNV_XHCI || in xhci_pci_quirks()
229 pdev->device == PCI_DEVICE_ID_INTEL_CML_XHCI)) { in xhci_pci_quirks()
232 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
233 pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI) in xhci_pci_quirks()
235 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
236 (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
237 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
238 pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI)) in xhci_pci_quirks()
240 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
241 (pdev->device == PCI_DEVICE_ID_INTEL_CHERRYVIEW_XHCI || in xhci_pci_quirks()
242 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_LP_XHCI || in xhci_pci_quirks()
243 pdev->device == PCI_DEVICE_ID_INTEL_SUNRISEPOINT_H_XHCI || in xhci_pci_quirks()
244 pdev->device == PCI_DEVICE_ID_INTEL_APL_XHCI || in xhci_pci_quirks()
245 pdev->device == PCI_DEVICE_ID_INTEL_DNV_XHCI)) in xhci_pci_quirks()
248 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
249 pdev->device == PCI_DEVICE_ID_INTEL_ALDER_LAKE_PCH_XHCI) in xhci_pci_quirks()
252 if (pdev->vendor == PCI_VENDOR_ID_INTEL && in xhci_pci_quirks()
253 (pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_2C_XHCI || in xhci_pci_quirks()
254 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_4C_XHCI || in xhci_pci_quirks()
255 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_LP_XHCI || in xhci_pci_quirks()
256 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_2C_XHCI || in xhci_pci_quirks()
257 pdev->device == PCI_DEVICE_ID_INTEL_ALPINE_RIDGE_C_4C_XHCI || in xhci_pci_quirks()
258 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_2C_XHCI || in xhci_pci_quirks()
259 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_XHCI || in xhci_pci_quirks()
260 pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_DD_XHCI || in xhci_pci_quirks()
261 pdev->device == PCI_DEVICE_ID_INTEL_ICE_LAKE_XHCI || in xhci_pci_quirks()
262 pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI || in xhci_pci_quirks()
263 pdev->device == PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI)) in xhci_pci_quirks()
266 if (pdev->vendor == PCI_VENDOR_ID_ETRON && in xhci_pci_quirks()
267 pdev->device == PCI_DEVICE_ID_EJ168) { in xhci_pci_quirks()
272 if (pdev->vendor == PCI_VENDOR_ID_RENESAS && in xhci_pci_quirks()
273 pdev->device == 0x0014) { in xhci_pci_quirks()
277 if (pdev->vendor == PCI_VENDOR_ID_RENESAS && in xhci_pci_quirks()
278 pdev->device == 0x0015) { in xhci_pci_quirks()
282 if (pdev->vendor == PCI_VENDOR_ID_VIA) in xhci_pci_quirks()
286 if (pdev->vendor == PCI_VENDOR_ID_VIA && in xhci_pci_quirks()
287 pdev->device == 0x3432) in xhci_pci_quirks()
290 if (pdev->vendor == PCI_VENDOR_ID_VIA && pdev->device == 0x3483) { in xhci_pci_quirks()
295 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
296 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) { in xhci_pci_quirks()
304 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
305 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) { in xhci_pci_quirks()
309 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
310 (pdev->device == PCI_DEVICE_ID_ASMEDIA_1142_XHCI || in xhci_pci_quirks()
311 pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI || in xhci_pci_quirks()
312 pdev->device == PCI_DEVICE_ID_ASMEDIA_3242_XHCI)) in xhci_pci_quirks()
315 if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && in xhci_pci_quirks()
316 pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) in xhci_pci_quirks()
319 if (pdev->vendor == PCI_VENDOR_ID_TI && pdev->device == 0x8241) in xhci_pci_quirks()
322 if ((pdev->vendor == PCI_VENDOR_ID_BROADCOM || in xhci_pci_quirks()
323 pdev->vendor == PCI_VENDOR_ID_CAVIUM) && in xhci_pci_quirks()
324 pdev->device == 0x9026) in xhci_pci_quirks()
327 if (pdev->vendor == PCI_VENDOR_ID_AMD && in xhci_pci_quirks()
328 (pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_2 || in xhci_pci_quirks()
329 pdev->device == PCI_DEVICE_ID_AMD_PROMONTORYA_4)) in xhci_pci_quirks()
361 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_setup() local
366 pci_read_config_byte(pdev, XHCI_SBRN_OFFSET, &xhci->sbrn); in xhci_pci_setup()
379 xhci_pme_acpi_rtd3_enable(pdev); in xhci_pci_setup()
384 return xhci_pci_reinit(xhci, pdev); in xhci_pci_setup()
558 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_suspend() local
566 pci_d3cold_disable(pdev); in xhci_pci_suspend()
587 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_resume() local
610 if (pdev->vendor == PCI_VENDOR_ID_INTEL) in xhci_pci_resume()
611 usb_enable_intel_xhci_ports(pdev); in xhci_pci_resume()
626 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in xhci_pci_shutdown() local
632 pci_set_power_state(pdev, PCI_D3hot); in xhci_pci_shutdown()