Lines Matching full:hcd
142 struct usb_hcd *hcd = mtk->hcd; in xhci_mtk_set_frame_interval() local
148 value = readl(hcd->regs + HFCNTR_CFG); in xhci_mtk_set_frame_interval()
151 writel(value, hcd->regs + HFCNTR_CFG); in xhci_mtk_set_frame_interval()
153 value = readl(hcd->regs + LS_EOF_CFG); in xhci_mtk_set_frame_interval()
156 writel(value, hcd->regs + LS_EOF_CFG); in xhci_mtk_set_frame_interval()
158 value = readl(hcd->regs + FS_EOF_CFG); in xhci_mtk_set_frame_interval()
161 writel(value, hcd->regs + FS_EOF_CFG); in xhci_mtk_set_frame_interval()
163 value = readl(hcd->regs + SS_GEN1_EOF_CFG); in xhci_mtk_set_frame_interval()
166 writel(value, hcd->regs + SS_GEN1_EOF_CFG); in xhci_mtk_set_frame_interval()
168 value = readl(hcd->regs + SS_GEN2_EOF_CFG); in xhci_mtk_set_frame_interval()
171 writel(value, hcd->regs + SS_GEN2_EOF_CFG); in xhci_mtk_set_frame_interval()
181 struct usb_hcd *hcd = mtk->hcd; in xhci_mtk_rxfifo_depth_set() local
187 value = readl(hcd->regs + HSCH_CFG1); in xhci_mtk_rxfifo_depth_set()
191 writel(value, hcd->regs + HSCH_CFG1); in xhci_mtk_rxfifo_depth_set()
453 struct usb_hcd *hcd = xhci_to_hcd(xhci); in xhci_mtk_quirks() local
454 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_quirks()
476 static int xhci_mtk_setup(struct usb_hcd *hcd) in xhci_mtk_setup() argument
478 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_setup()
481 if (usb_hcd_is_primary_hcd(hcd)) { in xhci_mtk_setup()
489 ret = xhci_gen_setup(hcd, xhci_mtk_quirks); in xhci_mtk_setup()
493 if (usb_hcd_is_primary_hcd(hcd)) in xhci_mtk_setup()
518 struct usb_hcd *hcd; in xhci_mtk_probe() local
592 hcd = usb_create_hcd(driver, dev, dev_name(dev)); in xhci_mtk_probe()
593 if (!hcd) { in xhci_mtk_probe()
600 * Swap it with mtk HCD. in xhci_mtk_probe()
602 mtk->hcd = platform_get_drvdata(pdev); in xhci_mtk_probe()
606 hcd->regs = devm_ioremap_resource(dev, res); in xhci_mtk_probe()
607 if (IS_ERR(hcd->regs)) { in xhci_mtk_probe()
608 ret = PTR_ERR(hcd->regs); in xhci_mtk_probe()
611 hcd->rsrc_start = res->start; in xhci_mtk_probe()
612 hcd->rsrc_len = resource_size(res); in xhci_mtk_probe()
627 xhci = hcd_to_xhci(hcd); in xhci_mtk_probe()
628 xhci->main_hcd = hcd; in xhci_mtk_probe()
639 ret = usb_add_hcd(hcd, irq, IRQF_SHARED); in xhci_mtk_probe()
645 dev_name(dev), hcd); in xhci_mtk_probe()
687 usb_remove_hcd(hcd); in xhci_mtk_probe()
693 usb_put_hcd(hcd); in xhci_mtk_probe()
710 struct usb_hcd *hcd = mtk->hcd; in xhci_mtk_remove() local
711 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_mtk_remove()
724 usb_remove_hcd(hcd); in xhci_mtk_remove()
729 usb_put_hcd(hcd); in xhci_mtk_remove()
742 struct usb_hcd *hcd = mtk->hcd; in xhci_mtk_suspend() local
743 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_mtk_suspend()
748 clear_bit(HCD_FLAG_POLL_RH, &hcd->flags); in xhci_mtk_suspend()
749 timer_delete_sync(&hcd->rh_timer); in xhci_mtk_suspend()
769 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); in xhci_mtk_suspend()
770 usb_hcd_poll_rh_status(hcd); in xhci_mtk_suspend()
777 struct usb_hcd *hcd = mtk->hcd; in xhci_mtk_resume() local
778 struct xhci_hcd *xhci = hcd_to_xhci(hcd); in xhci_mtk_resume()
796 set_bit(HCD_FLAG_POLL_RH, &hcd->flags); in xhci_mtk_resume()
797 usb_hcd_poll_rh_status(hcd); in xhci_mtk_resume()
810 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in xhci_mtk_runtime_suspend()
826 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in xhci_mtk_runtime_resume()