Lines Matching refs:tt
158 struct usb_tt *utt = udev->tt; in find_tt()
159 struct mu3h_sch_tt *tt, **tt_index, **ptt; in find_tt() local
186 tt = *ptt; in find_tt()
187 if (!tt) { /* Create the mu3h_sch_tt */ in find_tt()
188 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in find_tt()
189 if (!tt) { in find_tt()
196 INIT_LIST_HEAD(&tt->ep_list); in find_tt()
197 *ptt = tt; in find_tt()
200 return tt; in find_tt()
206 struct usb_tt *utt = udev->tt; in drop_tt()
207 struct mu3h_sch_tt *tt, **tt_index, **ptt; in drop_tt() local
225 tt = *ptt; in drop_tt()
226 if (!tt || !list_empty(&tt->ep_list)) in drop_tt()
230 kfree(tt); in drop_tt()
244 struct mu3h_sch_tt *tt = NULL; in create_sch_ep() local
255 tt = find_tt(udev); in create_sch_ep()
256 if (IS_ERR(tt)) { in create_sch_ep()
263 sch_ep->sch_tt = tt; in create_sch_ep()
403 struct mu3h_sch_tt *tt = sch_ep->sch_tt; in check_fs_bus_bw() local
417 tmp = tt->fs_bus_bw[k] + sch_ep->bw_cost_per_microframe; in check_fs_bus_bw()
483 struct mu3h_sch_tt *tt = sch_ep->sch_tt; in update_sch_tt() local
494 tt->fs_bus_bw[XHCI_MTK_BW_INDEX(base + j)] += bw_updated; in update_sch_tt()
498 list_add_tail(&sch_ep->tt_endpoint, &tt->ep_list); in update_sch_tt()
578 bool has_tt = udev->tt && udev->tt->hub->parent; in need_bw_sch()