Lines Matching refs:pdev

29 static inline bool is_intel_quark_x1000(struct pci_dev *pdev)
31 return pdev->vendor == PCI_VENDOR_ID_INTEL &&
32 pdev->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC;
48 static inline bool is_bypassed_id(struct pci_dev *pdev)
50 return !!pci_match_id(bypass_pci_id_table, pdev);
63 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev)
72 retval = pci_set_mwi(pdev);
77 if (is_intel_quark_x1000(pdev)) {
93 struct pci_dev *pdev = to_pci_dev(hcd->self.controller);
108 switch (pdev->vendor) {
111 if (pdev->device == 0x01b5) {
125 switch (pdev->device) {
130 if (dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(31)) < 0)
139 if (pdev->revision < 0xa4)
145 if (pdev->device == PCI_DEVICE_ID_INTEL_CE4100_USB)
149 if (pdev->device == PCI_DEVICE_ID_TDI_EHCI)
157 if (pdev->device == 0x7463) {
170 if (pdev->device == 0x7808) {
176 if (pdev->device == 0x3104 && (pdev->revision & 0xf0) == 0x60) {
183 pci_read_config_byte(pdev, 0x4b, &tmp);
186 pci_write_config_byte(pdev, 0x4b, tmp | 0x20);
201 if (pdev->device == 0x4396) {
208 if ((pdev->device == 0x4386 || pdev->device == 0x4396) &&
212 pci_read_config_byte(pdev, 0x53, &tmp);
213 pci_write_config_byte(pdev, 0x53, tmp | (1<<3));
223 if (pdev->device == 0xa239) {
229 if (pdev->device == PCI_DEVICE_ID_ASPEED_EHCI) {
237 temp = pci_find_capability(pdev, PCI_CAP_ID_DBG);
239 pci_read_config_dword(pdev, temp, &temp);
261 switch (pdev->vendor) {
268 switch (pdev->device) {
293 switch (pdev->vendor) {
306 if (pdev->vendor == PCI_VENDOR_ID_STMICRO
307 && pdev->device == PCI_DEVICE_ID_STMICRO_USB_HOST)
309 else if (pdev->vendor == PCI_VENDOR_ID_HUAWEI
310 && pdev->device == 0xa239)
313 pci_read_config_byte(pdev, 0x60, &ehci->sbrn);
320 if (!device_can_wakeup(&pdev->dev)) {
323 pci_read_config_word(pdev, 0x62, &port_wake);
325 dev_warn(&pdev->dev, "Enabling legacy PCI PM\n");
326 device_set_wakeup_capable(&pdev->dev, 1);
331 if (ehci->no_selective_suspend && device_can_wakeup(&pdev->dev))
335 retval = ehci_pci_reinit(ehci, pdev);
356 struct pci_dev *pdev = to_pci_dev(hcd->self.controller);
359 (void) ehci_pci_reinit(ehci, pdev);
377 static int ehci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
379 if (is_bypassed_id(pdev))
381 return usb_hcd_pci_probe(pdev, id, &ehci_pci_hc_driver);
384 static void ehci_pci_remove(struct pci_dev *pdev)
386 pci_clear_mwi(pdev);
387 usb_hcd_pci_remove(pdev);