Lines Matching refs:mtk
127 get_bw_info(struct xhci_hcd_mtk *mtk, struct usb_device *udev, in get_bw_info() argument
130 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in get_bw_info()
150 return &mtk->sch_array[bw_index]; in get_bw_info()
247 create_sch_ep(struct xhci_hcd_mtk *mtk, struct usb_device *udev, in create_sch_ep() argument
255 bw_info = get_bw_info(mtk, udev, ep); in create_sch_ep()
845 static void destroy_sch_ep(struct xhci_hcd_mtk *mtk, struct usb_device *udev, in destroy_sch_ep() argument
885 int xhci_mtk_sch_init(struct xhci_hcd_mtk *mtk) in xhci_mtk_sch_init() argument
887 struct xhci_hcd *xhci = hcd_to_xhci(mtk->hcd); in xhci_mtk_sch_init()
898 mtk->sch_array = sch_array; in xhci_mtk_sch_init()
900 INIT_LIST_HEAD(&mtk->bw_ep_chk_list); in xhci_mtk_sch_init()
901 hash_init(mtk->sch_ep_hash); in xhci_mtk_sch_init()
906 void xhci_mtk_sch_exit(struct xhci_hcd_mtk *mtk) in xhci_mtk_sch_exit() argument
908 kfree(mtk->sch_array); in xhci_mtk_sch_exit()
914 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in add_ep_quirk() local
939 sch_ep = create_sch_ep(mtk, udev, ep, ep_ctx); in add_ep_quirk()
945 list_add_tail(&sch_ep->endpoint, &mtk->bw_ep_chk_list); in add_ep_quirk()
946 hash_add(mtk->sch_ep_hash, &sch_ep->hentry, (unsigned long)ep); in add_ep_quirk()
954 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in drop_ep_quirk() local
964 hash_for_each_possible_safe(mtk->sch_ep_hash, sch_ep, in drop_ep_quirk()
967 destroy_sch_ep(mtk, udev, sch_ep); in drop_ep_quirk()
975 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_check_bandwidth() local
983 list_for_each_entry(sch_ep, &mtk->bw_ep_chk_list, endpoint) { in xhci_mtk_check_bandwidth()
1009 list_del_init(&mtk->bw_ep_chk_list); in xhci_mtk_check_bandwidth()
1016 struct xhci_hcd_mtk *mtk = hcd_to_mtk(hcd); in xhci_mtk_reset_bandwidth() local
1022 list_for_each_entry_safe(sch_ep, tmp, &mtk->bw_ep_chk_list, endpoint) in xhci_mtk_reset_bandwidth()
1023 destroy_sch_ep(mtk, udev, sch_ep); in xhci_mtk_reset_bandwidth()