Searched refs:shared_hcd (Results 1 – 12 of 12) sorted by relevance
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-mtk.c | 644 xhci->shared_hcd = usb_create_shared_hcd(driver, dev, in xhci_mtk_probe() 646 if (!xhci->shared_hcd) { in xhci_mtk_probe() 657 if (xhci->shared_hcd) { in xhci_mtk_probe() 658 ret = usb_add_hcd(xhci->shared_hcd, irq, IRQF_SHARED); in xhci_mtk_probe() 680 usb_remove_hcd(xhci->shared_hcd); in xhci_mtk_probe() 683 usb_put_hcd(xhci->shared_hcd); in xhci_mtk_probe() 712 struct usb_hcd *shared_hcd = xhci->shared_hcd; in xhci_mtk_remove() local 720 if (shared_hcd) { in xhci_mtk_remove() 721 usb_remove_hcd(shared_hcd); in xhci_mtk_remove() 722 xhci->shared_hcd = NULL; in xhci_mtk_remove() [all …]
|
H A D | xhci-plat.c | 292 xhci->shared_hcd = __usb_create_hcd(driver, sysdev, &pdev->dev, in xhci_plat_probe() 294 if (!xhci->shared_hcd) { in xhci_plat_probe() 300 xhci->shared_hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, in xhci_plat_probe() 302 if (IS_ERR(xhci->shared_hcd->usb_phy)) { in xhci_plat_probe() 303 xhci->shared_hcd->usb_phy = NULL; in xhci_plat_probe() 305 ret = usb_phy_init(xhci->shared_hcd->usb_phy); in xhci_plat_probe() 312 xhci->shared_hcd->tpl_support = hcd->tpl_support; in xhci_plat_probe() 319 if (xhci->shared_hcd) { in xhci_plat_probe() 320 ret = usb_add_hcd(xhci->shared_hcd, irq, IRQF_SHARED); in xhci_plat_probe() 338 usb_put_hcd(xhci->shared_hcd); in xhci_plat_probe() [all …]
|
H A D | xhci-histb.c | 257 xhci->shared_hcd = usb_create_shared_hcd(driver, dev, dev_name(dev), in xhci_histb_probe() 259 if (!xhci->shared_hcd) { in xhci_histb_probe() 280 xhci->shared_hcd->can_do_streams = 1; in xhci_histb_probe() 282 ret = usb_add_hcd(xhci->shared_hcd, irq, IRQF_SHARED); in xhci_histb_probe() 300 usb_put_hcd(xhci->shared_hcd); in xhci_histb_probe() 317 struct usb_hcd *shared_hcd = xhci->shared_hcd; in xhci_histb_remove() local 321 usb_remove_hcd(shared_hcd); in xhci_histb_remove() 322 xhci->shared_hcd = NULL; in xhci_histb_remove() 326 usb_put_hcd(shared_hcd); in xhci_histb_remove()
|
H A D | xhci-pci.c | 684 xhci->shared_hcd = usb_create_shared_hcd(&xhci_pci_hc_driver, &dev->dev, in xhci_pci_probe() 686 if (!xhci->shared_hcd) { in xhci_pci_probe() 695 retval = usb_add_hcd(xhci->shared_hcd, dev->irq, in xhci_pci_probe() 703 xhci->shared_hcd->can_do_streams = 1; in xhci_pci_probe() 718 usb_put_hcd(xhci->shared_hcd); in xhci_pci_probe() 741 if (xhci->shared_hcd) { in xhci_pci_remove() 742 usb_remove_hcd(xhci->shared_hcd); in xhci_pci_remove() 743 usb_put_hcd(xhci->shared_hcd); in xhci_pci_remove() 744 xhci->shared_hcd = NULL; in xhci_pci_remove()
|
H A D | xhci.c | 645 if (xhci->shared_hcd) { in xhci_shutdown() 646 clear_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags); in xhci_shutdown() 647 del_timer_sync(&xhci->shared_hcd->rh_timer); in xhci_shutdown() 862 (xhci->shared_hcd && xhci->shared_hcd->state != HC_STATE_SUSPENDED)) in xhci_suspend() 879 if (xhci->shared_hcd) { in xhci_suspend() 880 clear_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags); in xhci_suspend() 881 del_timer_sync(&xhci->shared_hcd->rh_timer); in xhci_suspend() 889 if (xhci->shared_hcd) in xhci_suspend() 890 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &xhci->shared_hcd->flags); in xhci_suspend() 987 if (xhci->shared_hcd) in xhci_resume() [all …]
|
H A D | xhci-tegra.c | 1293 struct usb_hcd *hcd = main ? xhci->main_hcd : xhci->shared_hcd; in tegra_xhci_set_port_power() 1372 xhci->shared_hcd, GetPortStatus, in tegra_xhci_id_work() 1821 xhci->shared_hcd = usb_create_shared_hcd(&tegra_xhci_hc_driver, in tegra_xusb_probe() 1825 if (!xhci->shared_hcd) { in tegra_xusb_probe() 1832 xhci->shared_hcd->can_do_streams = 1; in tegra_xusb_probe() 1834 err = usb_add_hcd(xhci->shared_hcd, tegra->xhci_irq, IRQF_SHARED); in tegra_xusb_probe() 1874 device_init_wakeup(&xhci->shared_hcd->self.root_hub->dev, true); in tegra_xusb_probe() 1889 usb_remove_hcd(xhci->shared_hcd); in tegra_xusb_probe() 1891 usb_put_hcd(xhci->shared_hcd); in tegra_xusb_probe() 1932 usb_remove_hcd(xhci->shared_hcd); in tegra_xusb_remove() [all …]
|
H A D | xhci.h | 1515 struct usb_hcd *shared_hcd; member 1738 if (xhci->shared_hcd) in xhci_get_usb3_hcd() 1739 return xhci->shared_hcd; in xhci_get_usb3_hcd()
|
H A D | xhci-ring.c | 1997 if (port->rhub == &xhci->usb3_rhub && xhci->shared_hcd == NULL) { in handle_port_status()
|
/openbmc/linux/drivers/usb/core/ |
H A D | hcd-pci.c | 408 if (hcd->shared_hcd) { in check_root_hub_suspended() 409 hcd = hcd->shared_hcd; in check_root_hub_suspended() 442 if (do_wakeup && hcd->shared_hcd && in suspend_common() 443 HCD_WAKEUP_PENDING(hcd->shared_hcd)) in suspend_common() 450 (retval == 0 && do_wakeup && hcd->shared_hcd && in suspend_common() 451 HCD_WAKEUP_PENDING(hcd->shared_hcd))) { in suspend_common() 483 (hcd->shared_hcd && in resume_common() 484 HCD_RH_RUNNING(hcd->shared_hcd))) { in resume_common()
|
H A D | hcd.c | 2511 if (usb_hcd_is_primary_hcd(hcd) && hcd->shared_hcd) { in usb_hc_died() 2512 hcd = hcd->shared_hcd; in usb_hc_died() 2580 hcd->shared_hcd = primary_hcd; in __usb_create_hcd() 2581 primary_hcd->shared_hcd = hcd; in __usb_create_hcd() 2668 if (hcd->shared_hcd) { in hcd_release() 2669 struct usb_hcd *peer = hcd->shared_hcd; in hcd_release() 2671 peer->shared_hcd = NULL; in hcd_release() 2795 struct usb_hcd *shared_hcd; in usb_add_hcd() local 2951 shared_hcd = hcd->shared_hcd; in usb_add_hcd() 2952 if (!usb_hcd_is_primary_hcd(hcd) && shared_hcd && HCD_DEFER_RH_REGISTER(shared_hcd)) { in usb_add_hcd() [all …]
|
H A D | port.c | 619 if (peer_hcd != hcd->shared_hcd) in match_location() 658 struct usb_hcd *peer_hcd = hcd->shared_hcd; in find_and_link_peer()
|
/openbmc/linux/include/linux/usb/ |
H A D | hcd.h | 186 struct usb_hcd *shared_hcd; member 458 struct usb_hcd *shared_hcd);
|