Home
last modified time | relevance | path

Searched refs:shared_hcd (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/usb/host/
H A Dxhci-mtk.c644 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()
679 usb_remove_hcd(xhci->shared_hcd); in xhci_mtk_probe()
682 usb_put_hcd(xhci->shared_hcd); in xhci_mtk_probe()
711 struct usb_hcd *shared_hcd = xhci->shared_hcd; in xhci_mtk_remove() local
719 if (shared_hcd) { in xhci_mtk_remove()
720 usb_remove_hcd(shared_hcd); in xhci_mtk_remove()
721 xhci->shared_hcd = NULL; in xhci_mtk_remove()
[all …]
H A Dxhci-pci.c643 xhci->shared_hcd = usb_create_shared_hcd(&xhci_pci_hc_driver, &dev->dev, in xhci_pci_common_probe()
645 if (!xhci->shared_hcd) { in xhci_pci_common_probe()
654 retval = usb_add_hcd(xhci->shared_hcd, dev->irq, IRQF_SHARED); in xhci_pci_common_probe()
683 usb_put_hcd(xhci->shared_hcd); in xhci_pci_common_probe()
723 if (xhci->shared_hcd) { in xhci_pci_remove()
724 usb_remove_hcd(xhci->shared_hcd); in xhci_pci_remove()
725 usb_put_hcd(xhci->shared_hcd); in xhci_pci_remove()
726 xhci->shared_hcd = NULL; in xhci_pci_remove()
H A Dxhci.c769 if (xhci->shared_hcd) { in xhci_shutdown()
770 clear_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags); in xhci_shutdown()
771 timer_delete_sync(&xhci->shared_hcd->rh_timer); in xhci_shutdown()
970 (xhci->shared_hcd && xhci->shared_hcd->state != HC_STATE_SUSPENDED)) in xhci_suspend()
987 if (xhci->shared_hcd) { in xhci_suspend()
988 clear_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags); in xhci_suspend()
989 timer_delete_sync(&xhci->shared_hcd->rh_timer); in xhci_suspend()
997 if (xhci->shared_hcd) in xhci_suspend()
998 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &xhci->shared_hcd->flags); in xhci_suspend()
1103 if (xhci->shared_hcd) in xhci_resume()
[all …]
H A Dxhci-ring.c2028 if (port->rhub == &xhci->usb3_rhub && xhci->shared_hcd == NULL) { in handle_port_status()
/linux/drivers/usb/core/
H A Dhcd-pci.c408 if (hcd->shared_hcd) { in check_root_hub_suspended()
409 hcd = hcd->shared_hcd; in check_root_hub_suspended()
447 if (do_wakeup && hcd->shared_hcd && in suspend_common()
448 HCD_WAKEUP_PENDING(hcd->shared_hcd)) in suspend_common()
455 (retval == 0 && do_wakeup && hcd->shared_hcd && in suspend_common()
456 HCD_WAKEUP_PENDING(hcd->shared_hcd))) { in suspend_common()
488 (hcd->shared_hcd && in resume_common()
489 HCD_RH_RUNNING(hcd->shared_hcd))) { in resume_common()
H A Dhcd.c2525 if (usb_hcd_is_primary_hcd(hcd) && hcd->shared_hcd) { in usb_hc_died()
2526 hcd = hcd->shared_hcd; in usb_hc_died()
2592 hcd->shared_hcd = primary_hcd; in __usb_create_hcd()
2593 primary_hcd->shared_hcd = hcd; in __usb_create_hcd()
2680 if (hcd->shared_hcd) { in hcd_release()
2681 struct usb_hcd *peer = hcd->shared_hcd; in hcd_release()
2683 peer->shared_hcd = NULL; in hcd_release()
2807 struct usb_hcd *shared_hcd; in usb_add_hcd() local
2975 shared_hcd = hcd->shared_hcd; in usb_add_hcd()
2976 if (!usb_hcd_is_primary_hcd(hcd) && shared_hcd && HCD_DEFER_RH_REGISTER(shared_hcd)) { in usb_add_hcd()
[all …]