Lines Matching refs:mtk
124 get_bw_info(struct xhci_hcd_mtk *mtk, struct usb_device *udev, in get_bw_info() argument
127 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in get_bw_info()
143 return &mtk->sch_array[bw_index]; in get_bw_info()
685 int xhci_mtk_sch_init(struct xhci_hcd_mtk *mtk) in xhci_mtk_sch_init() argument
687 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in xhci_mtk_sch_init()
702 mtk->sch_array = sch_array; in xhci_mtk_sch_init()
704 INIT_LIST_HEAD(&mtk->bw_ep_chk_list); in xhci_mtk_sch_init()
709 void xhci_mtk_sch_exit(struct xhci_hcd_mtk *mtk) in xhci_mtk_sch_exit() argument
711 kfree(mtk->sch_array); in xhci_mtk_sch_exit()
717 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in add_ep_quirk() local
748 list_add_tail(&sch_ep->endpoint, &mtk->bw_ep_chk_list); in add_ep_quirk()
756 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in drop_ep_quirk() local
769 sch_bw = get_bw_info(mtk, udev, ep); in drop_ep_quirk()
781 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_check_bandwidth() local
790 list_for_each_entry(sch_ep, &mtk->bw_ep_chk_list, endpoint) { in xhci_mtk_check_bandwidth()
791 sch_bw = get_bw_info(mtk, udev, sch_ep->ep); in xhci_mtk_check_bandwidth()
801 list_for_each_entry_safe(sch_ep, tmp, &mtk->bw_ep_chk_list, endpoint) { in xhci_mtk_check_bandwidth()
806 sch_bw = get_bw_info(mtk, udev, ep); in xhci_mtk_check_bandwidth()
826 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_reset_bandwidth() local
833 list_for_each_entry_safe(sch_ep, tmp, &mtk->bw_ep_chk_list, endpoint) { in xhci_mtk_reset_bandwidth()
834 sch_bw = get_bw_info(mtk, udev, sch_ep->ep); in xhci_mtk_reset_bandwidth()