Lines Matching full:companion

27  * Coordinate handoffs between EHCI and companion controllers
43 struct pci_dev *companion, struct usb_hcd *companion_hcd);
49 struct pci_dev *companion; in for_each_companion() local
58 companion = NULL; in for_each_companion()
59 for_each_pci_dev(companion) { in for_each_companion()
60 if (companion->bus != pdev->bus || in for_each_companion()
61 PCI_SLOT(companion->devfn) != slot) in for_each_companion()
65 * Companion device should be either UHCI,OHCI or EHCI host in for_each_companion()
68 if (companion->class != CL_UHCI && companion->class != CL_OHCI && in for_each_companion()
69 companion->class != CL_EHCI) in for_each_companion()
72 companion_hcd = pci_get_drvdata(companion); in for_each_companion()
75 fn(pdev, hcd, companion, companion_hcd); in for_each_companion()
82 * error messages, lock the companion's root hub and gracefully unconfigure
86 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_pre_add() argument
90 if (is_ohci_or_uhci(companion)) { in ehci_pre_add()
99 * companion pointer accordingly, and in either case, reconfigure and
103 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_post_add() argument
107 if (is_ohci_or_uhci(companion)) { in ehci_post_add()
109 dev_dbg(&pdev->dev, "HS companion for %s\n", in ehci_post_add()
110 dev_name(&companion->dev)); in ehci_post_add()
121 * which it is a companion, and store a pointer to the bus structure.
124 struct pci_dev *companion, struct usb_hcd *companion_hcd) in non_ehci_add() argument
126 if (is_ohci_or_uhci(pdev) && companion->class == CL_EHCI) { in non_ehci_add()
127 dev_dbg(&pdev->dev, "FS/LS companion for %s\n", in non_ehci_add()
128 dev_name(&companion->dev)); in non_ehci_add()
135 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_remove() argument
137 if (is_ohci_or_uhci(companion)) in ehci_remove()
145 struct pci_dev *companion, struct usb_hcd *companion_hcd) in ehci_wait_for_companions() argument
147 if (is_ohci_or_uhci(companion)) in ehci_wait_for_companions()
148 device_pm_wait_for_dev(&pdev->dev, &companion->dev); in ehci_wait_for_companions()
345 /* Not EHCI; just clear the companion pointer */ in usb_hcd_pci_remove()