Lines Matching refs:sch_bw
167 static u32 get_max_bw(struct mu3h_sch_bw_info *sch_bw, in get_max_bw() argument
180 if (sch_bw->bus_bw[base + j] > max_bw) in get_max_bw()
181 max_bw = sch_bw->bus_bw[base + j]; in get_max_bw()
187 static void update_bus_bw(struct mu3h_sch_bw_info *sch_bw, in update_bus_bw() argument
199 sch_bw->bus_bw[base + j] += bw_cost; in update_bus_bw()
204 struct mu3h_sch_bw_info *sch_bw, struct mu3h_sch_ep_info *sch_ep) in check_sch_bw() argument
237 worst_bw = get_max_bw(sch_bw, sch_ep, offset); in check_sch_bw()
255 update_bus_bw(sch_bw, sch_ep, sch_ep->bw_cost_per_microframe); in check_sch_bw()
316 struct mu3h_sch_bw_info *sch_bw; in xhci_mtk_add_ep_quirk() local
348 sch_bw = &sch_array[bw_index]; in xhci_mtk_add_ep_quirk()
356 ret = check_sch_bw(udev, sch_bw, sch_ep); in xhci_mtk_add_ep_quirk()
363 list_add_tail(&sch_ep->endpoint, &sch_bw->bw_ep_list); in xhci_mtk_add_ep_quirk()
387 struct mu3h_sch_bw_info *sch_bw; in xhci_mtk_drop_ep_quirk() local
405 sch_bw = &sch_array[bw_index]; in xhci_mtk_drop_ep_quirk()
407 list_for_each_entry(sch_ep, &sch_bw->bw_ep_list, endpoint) { in xhci_mtk_drop_ep_quirk()
409 update_bus_bw(sch_bw, sch_ep, in xhci_mtk_drop_ep_quirk()