Lines Matching refs:mtk

119 get_bw_info(struct xhci_hcd_mtk *mtk, struct usb_device *udev,  in get_bw_info()  argument
122 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in get_bw_info()
142 return &mtk->sch_array[bw_index]; in get_bw_info()
239 create_sch_ep(struct xhci_hcd_mtk *mtk, struct usb_device *udev, in create_sch_ep() argument
246 bw_info = get_bw_info(mtk, udev, ep); in create_sch_ep()
560 static void destroy_sch_ep(struct xhci_hcd_mtk *mtk, struct usb_device *udev, in destroy_sch_ep() argument
600 int xhci_mtk_sch_init(struct xhci_hcd_mtk *mtk) in xhci_mtk_sch_init() argument
602 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in xhci_mtk_sch_init()
613 mtk->sch_array = sch_array; in xhci_mtk_sch_init()
615 INIT_LIST_HEAD(&mtk->bw_ep_chk_list); in xhci_mtk_sch_init()
616 hash_init(mtk->sch_ep_hash); in xhci_mtk_sch_init()
621 void xhci_mtk_sch_exit(struct xhci_hcd_mtk *mtk) in xhci_mtk_sch_exit() argument
623 kfree(mtk->sch_array); in xhci_mtk_sch_exit()
629 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in add_ep_quirk() local
654 sch_ep = create_sch_ep(mtk, udev, ep); in add_ep_quirk()
660 list_add_tail(&sch_ep->endpoint, &mtk->bw_ep_chk_list); in add_ep_quirk()
661 hash_add(mtk->sch_ep_hash, &sch_ep->hentry, (unsigned long)ep); in add_ep_quirk()
669 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in drop_ep_quirk() local
679 hash_for_each_possible_safe(mtk->sch_ep_hash, sch_ep, in drop_ep_quirk()
682 destroy_sch_ep(mtk, udev, sch_ep); in drop_ep_quirk()
690 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_check_bandwidth() local
698 list_for_each_entry(sch_ep, &mtk->bw_ep_chk_list, endpoint) { in xhci_mtk_check_bandwidth()
724 list_del_init(&mtk->bw_ep_chk_list); in xhci_mtk_check_bandwidth()
731 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_reset_bandwidth() local
737 list_for_each_entry_safe(sch_ep, tmp, &mtk->bw_ep_chk_list, endpoint) in xhci_mtk_reset_bandwidth()
738 destroy_sch_ep(mtk, udev, sch_ep); in xhci_mtk_reset_bandwidth()