Lines Matching refs:xhci

379 static void xhci_mtk_quirks(struct device *dev, struct xhci_hcd *xhci)  in xhci_mtk_quirks()  argument
381 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_mtk_quirks()
389 xhci->quirks |= XHCI_PLAT; in xhci_mtk_quirks()
390 xhci->quirks |= XHCI_MTK_HOST; in xhci_mtk_quirks()
395 xhci->quirks |= XHCI_SPURIOUS_SUCCESS; in xhci_mtk_quirks()
397 xhci->quirks |= XHCI_LPM_SUPPORT; in xhci_mtk_quirks()
431 struct xhci_hcd *xhci; in xhci_mtk_probe() local
532 xhci = hcd_to_xhci(hcd); in xhci_mtk_probe()
533 xhci->main_hcd = hcd; in xhci_mtk_probe()
540 xhci->imod_interval = 5000; in xhci_mtk_probe()
541 device_property_read_u32(dev, "imod-interval-ns", &xhci->imod_interval); in xhci_mtk_probe()
543 xhci->shared_hcd = usb_create_shared_hcd(driver, dev, in xhci_mtk_probe()
545 if (!xhci->shared_hcd) { in xhci_mtk_probe()
554 if (HCC_MAX_PSA(xhci->hcc_params) >= 4) in xhci_mtk_probe()
555 xhci->shared_hcd->can_do_streams = 1; in xhci_mtk_probe()
557 ret = usb_add_hcd(xhci->shared_hcd, irq, IRQF_SHARED); in xhci_mtk_probe()
568 usb_put_hcd(xhci->shared_hcd); in xhci_mtk_probe()
592 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_mtk_remove() local
594 usb_remove_hcd(xhci->shared_hcd); in xhci_mtk_remove()
598 usb_put_hcd(xhci->shared_hcd); in xhci_mtk_remove()
620 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_mtk_suspend() local
622 xhci_dbg(xhci, "%s: stop port polling\n", __func__); in xhci_mtk_suspend()
625 clear_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags); in xhci_mtk_suspend()
626 del_timer_sync(&xhci->shared_hcd->rh_timer); in xhci_mtk_suspend()
638 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_mtk_resume() local
644 xhci_dbg(xhci, "%s: restart port polling\n", __func__); in xhci_mtk_resume()
645 set_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags); in xhci_mtk_resume()
646 usb_hcd_poll_rh_status(xhci->shared_hcd); in xhci_mtk_resume()