Lines Matching refs:sch_bw
401 static u32 get_max_bw(struct mu3h_sch_bw_info *sch_bw, in get_max_bw() argument
415 bw = sch_bw->bus_bw[base + j] + in get_max_bw()
424 static void update_bus_bw(struct mu3h_sch_bw_info *sch_bw, in update_bus_bw() argument
437 sch_bw->bus_bw[base + j] += in update_bus_bw()
440 sch_bw->bus_bw[base + j] -= in update_bus_bw()
563 static int load_ep_bw(struct mu3h_sch_bw_info *sch_bw, in load_ep_bw() argument
570 update_bus_bw(sch_bw, sch_ep, loaded); in load_ep_bw()
593 static int check_sch_bw(struct mu3h_sch_bw_info *sch_bw, in check_sch_bw() argument
625 worst_bw = get_max_bw(sch_bw, sch_ep, offset); in check_sch_bw()
645 return load_ep_bw(sch_bw, sch_ep, true); in check_sch_bw()
649 struct mu3h_sch_bw_info *sch_bw, struct mu3h_sch_ep_info *sch_ep) in destroy_sch_ep() argument
653 load_ep_bw(sch_bw, sch_ep, false); in destroy_sch_ep()
759 struct mu3h_sch_bw_info *sch_bw; in drop_ep_quirk() local
769 sch_bw = get_bw_info(mtk, udev, ep); in drop_ep_quirk()
771 list_for_each_entry_safe(sch_ep, tmp, &sch_bw->bw_ep_list, endpoint) { in drop_ep_quirk()
773 destroy_sch_ep(udev, sch_bw, sch_ep); in drop_ep_quirk()
784 struct mu3h_sch_bw_info *sch_bw; in xhci_mtk_check_bandwidth() local
791 sch_bw = get_bw_info(mtk, udev, sch_ep->ep); in xhci_mtk_check_bandwidth()
793 ret = check_sch_bw(sch_bw, sch_ep); in xhci_mtk_check_bandwidth()
806 sch_bw = get_bw_info(mtk, udev, ep); in xhci_mtk_check_bandwidth()
807 list_move_tail(&sch_ep->endpoint, &sch_bw->bw_ep_list); in xhci_mtk_check_bandwidth()
828 struct mu3h_sch_bw_info *sch_bw; in xhci_mtk_reset_bandwidth() local
834 sch_bw = get_bw_info(mtk, udev, sch_ep->ep); in xhci_mtk_reset_bandwidth()
835 destroy_sch_ep(udev, sch_bw, sch_ep); in xhci_mtk_reset_bandwidth()