Lines Matching refs:pdev

29 static inline bool is_intel_quark_x1000(struct pci_dev *pdev)  in is_intel_quark_x1000()  argument
31 return pdev->vendor == PCI_VENDOR_ID_INTEL && in is_intel_quark_x1000()
32 pdev->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC; in is_intel_quark_x1000()
48 static inline bool is_bypassed_id(struct pci_dev *pdev) in is_bypassed_id() argument
50 return !!pci_match_id(bypass_pci_id_table, pdev); in is_bypassed_id()
63 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument
72 retval = pci_set_mwi(pdev); in ehci_pci_reinit()
77 if (is_intel_quark_x1000(pdev)) { in ehci_pci_reinit()
93 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_setup() local
108 switch (pdev->vendor) { in ehci_pci_setup()
111 if (pdev->device == 0x01b5) { in ehci_pci_setup()
125 switch (pdev->device) { in ehci_pci_setup()
130 if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(31)) < 0) in ehci_pci_setup()
139 if (pdev->revision < 0xa4) in ehci_pci_setup()
145 if (pdev->device == PCI_DEVICE_ID_INTEL_CE4100_USB) in ehci_pci_setup()
149 if (pdev->device == PCI_DEVICE_ID_TDI_EHCI) in ehci_pci_setup()
157 if (pdev->device == 0x7463) { in ehci_pci_setup()
170 if (pdev->device == 0x7808) { in ehci_pci_setup()
176 if (pdev->device == 0x3104 && (pdev->revision & 0xf0) == 0x60) { in ehci_pci_setup()
183 pci_read_config_byte(pdev, 0x4b, &tmp); in ehci_pci_setup()
186 pci_write_config_byte(pdev, 0x4b, tmp | 0x20); in ehci_pci_setup()
201 if (pdev->device == 0x4396) { in ehci_pci_setup()
208 if ((pdev->device == 0x4386 || pdev->device == 0x4396) && in ehci_pci_setup()
212 pci_read_config_byte(pdev, 0x53, &tmp); in ehci_pci_setup()
213 pci_write_config_byte(pdev, 0x53, tmp | (1<<3)); in ehci_pci_setup()
223 if (pdev->device == 0xa239) { in ehci_pci_setup()
229 if (pdev->device == PCI_DEVICE_ID_ASPEED_EHCI) { in ehci_pci_setup()
235 if (pdev->device == 0x3104 && (pdev->revision & 0xf0) == 0x90) in ehci_pci_setup()
241 temp = pci_find_capability(pdev, PCI_CAP_ID_DBG); in ehci_pci_setup()
243 pci_read_config_dword(pdev, temp, &temp); in ehci_pci_setup()
265 switch (pdev->vendor) { in ehci_pci_setup()
272 switch (pdev->device) { in ehci_pci_setup()
297 switch (pdev->vendor) { in ehci_pci_setup()
310 if (pdev->vendor == PCI_VENDOR_ID_STMICRO in ehci_pci_setup()
311 && pdev->device == PCI_DEVICE_ID_STMICRO_USB_HOST) in ehci_pci_setup()
313 else if (pdev->vendor == PCI_VENDOR_ID_HUAWEI in ehci_pci_setup()
314 && pdev->device == 0xa239) in ehci_pci_setup()
317 pci_read_config_byte(pdev, 0x60, &ehci->sbrn); in ehci_pci_setup()
324 if (!device_can_wakeup(&pdev->dev)) { in ehci_pci_setup()
327 pci_read_config_word(pdev, 0x62, &port_wake); in ehci_pci_setup()
329 dev_warn(&pdev->dev, "Enabling legacy PCI PM\n"); in ehci_pci_setup()
330 device_set_wakeup_capable(&pdev->dev, 1); in ehci_pci_setup()
335 if (ehci->no_selective_suspend && device_can_wakeup(&pdev->dev)) in ehci_pci_setup()
339 retval = ehci_pci_reinit(ehci, pdev); in ehci_pci_setup()
360 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_resume() local
364 (void) ehci_pci_reinit(ehci, pdev); in ehci_pci_resume()
382 static int ehci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) in ehci_pci_probe() argument
384 if (is_bypassed_id(pdev)) in ehci_pci_probe()
386 return usb_hcd_pci_probe(pdev, &ehci_pci_hc_driver); in ehci_pci_probe()
389 static void ehci_pci_remove(struct pci_dev *pdev) in ehci_pci_remove() argument
391 pci_clear_mwi(pdev); in ehci_pci_remove()
392 usb_hcd_pci_remove(pdev); in ehci_pci_remove()