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()
147 return &mtk->sch_array[bw_index]; in get_bw_info()
244 create_sch_ep(struct xhci_hcd_mtk *mtk, struct usb_device *udev, in create_sch_ep() argument
253 bw_info = get_bw_info(mtk, udev, ep); in create_sch_ep()
620 static void destroy_sch_ep(struct xhci_hcd_mtk *mtk, struct usb_device *udev, in destroy_sch_ep() argument
660 int xhci_mtk_sch_init(struct xhci_hcd_mtk *mtk) in xhci_mtk_sch_init() argument
662 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in xhci_mtk_sch_init()
673 mtk->sch_array = sch_array; in xhci_mtk_sch_init()
675 INIT_LIST_HEAD(&mtk->bw_ep_chk_list); in xhci_mtk_sch_init()
676 hash_init(mtk->sch_ep_hash); in xhci_mtk_sch_init()
681 void xhci_mtk_sch_exit(struct xhci_hcd_mtk *mtk) in xhci_mtk_sch_exit() argument
683 kfree(mtk->sch_array); in xhci_mtk_sch_exit()
689 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in add_ep_quirk() local
714 sch_ep = create_sch_ep(mtk, udev, ep, ep_ctx); in add_ep_quirk()
720 list_add_tail(&sch_ep->endpoint, &mtk->bw_ep_chk_list); in add_ep_quirk()
721 hash_add(mtk->sch_ep_hash, &sch_ep->hentry, (unsigned long)ep); in add_ep_quirk()
729 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in drop_ep_quirk() local
739 hash_for_each_possible_safe(mtk->sch_ep_hash, sch_ep, in drop_ep_quirk()
742 destroy_sch_ep(mtk, udev, sch_ep); in drop_ep_quirk()
750 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_check_bandwidth() local
758 list_for_each_entry(sch_ep, &mtk->bw_ep_chk_list, endpoint) { in xhci_mtk_check_bandwidth()
784 INIT_LIST_HEAD(&mtk->bw_ep_chk_list); in xhci_mtk_check_bandwidth()
791 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_reset_bandwidth() local
797 list_for_each_entry_safe(sch_ep, tmp, &mtk->bw_ep_chk_list, endpoint) in xhci_mtk_reset_bandwidth()
798 destroy_sch_ep(mtk, udev, sch_ep); in xhci_mtk_reset_bandwidth()