Lines Matching refs:tt

166 	struct usb_tt *utt = udev->tt;
167 struct mu3h_sch_tt *tt, **tt_index, **ptt;
194 tt = *ptt;
195 if (!tt) { /* Create the mu3h_sch_tt */
196 tt = kzalloc(sizeof(*tt), GFP_KERNEL);
197 if (!tt) {
204 INIT_LIST_HEAD(&tt->ep_list);
205 *ptt = tt;
208 return tt;
214 struct usb_tt *utt = udev->tt;
215 struct mu3h_sch_tt *tt, **tt_index, **ptt;
233 tt = *ptt;
234 if (!tt || !list_empty(&tt->ep_list))
238 kfree(tt);
252 struct mu3h_sch_tt *tt = NULL;
272 tt = find_tt(udev);
273 if (IS_ERR(tt)) {
280 sch_ep->sch_tt = tt;
447 struct mu3h_sch_tt *tt = sch_ep->sch_tt;
451 fs_bw = tt->fs_bus_bw_out[XHCI_MTK_BW_INDEX(offset)];
453 fs_bw = tt->fs_bus_bw_in[XHCI_MTK_BW_INDEX(offset + CS_OFFSET)];
478 struct mu3h_sch_tt *tt = sch_ep->sch_tt;
491 if (tt->ls_bus_bw[i] + sch_ep->maxpkt > LS_PAYLOAD_MAX)
499 struct mu3h_sch_tt *tt = sch_ep->sch_tt;
513 tmp = tt->fs_bus_bw_out[k] + sch_ep->bw_budget_table[i];
515 tmp = tt->fs_bus_bw_in[k];
526 struct mu3h_sch_tt *tt = sch_ep->sch_tt;
535 head = tt->fs_frame_bw[j];
536 tail = tt->fs_frame_bw[k];
538 head = tt->fs_frame_bw[j];
637 struct mu3h_sch_tt *tt = sch_ep->sch_tt;
641 if (!tt)
650 if (tt->in_ss_cnt[k])
656 if (tt->fs_bus_bw_out[k])
737 struct mu3h_sch_tt *tt = sch_ep->sch_tt;
743 fs_bus_bw = tt->fs_bus_bw_out;
745 fs_bus_bw = tt->fs_bus_bw_in;
755 tt->ls_bus_bw[k] += (u8)sch_ep->bw_budget_table[j];
758 tt->fs_frame_bw[f] += (u16)sch_ep->bw_budget_table[j];
761 tt->ls_bus_bw[k] -= (u8)sch_ep->bw_budget_table[j];
764 tt->fs_frame_bw[f] -= (u16)sch_ep->bw_budget_table[j];
771 tt->in_ss_cnt[k]++;
773 tt->in_ss_cnt[k]--;
778 list_add_tail(&sch_ep->tt_endpoint, &tt->ep_list);
863 bool has_tt = udev->tt && udev->tt->hub->parent;