Lines Matching refs:tt
116 struct usb_tt *utt = udev->tt; in find_tt()
117 struct ehci_tt *tt, **tt_index, **ptt; in find_tt() local
147 tt = *ptt; in find_tt()
148 if (!tt) { /* Create the ehci_tt */ in find_tt()
152 tt = kzalloc(sizeof(*tt), GFP_ATOMIC); in find_tt()
153 if (!tt) { in find_tt()
160 list_add_tail(&tt->tt_list, &ehci->tt_list); in find_tt()
161 INIT_LIST_HEAD(&tt->ps_list); in find_tt()
162 tt->usb_tt = utt; in find_tt()
163 tt->tt_port = port; in find_tt()
164 *ptt = tt; in find_tt()
167 return tt; in find_tt()
173 struct usb_tt *utt = udev->tt; in drop_tt()
174 struct ehci_tt *tt, **tt_index, **ptt; in drop_tt() local
193 tt = *ptt; in drop_tt()
194 if (!tt || !list_empty(&tt->ps_list)) in drop_tt()
197 list_del(&tt->tt_list); in drop_tt()
199 kfree(tt); in drop_tt()
226 struct ehci_tt *tt; in reserve_release_intr_bandwidth() local
259 tt = find_tt(qh->ps.udev); in reserve_release_intr_bandwidth()
261 list_add_tail(&qh->ps.ps_list, &tt->ps_list); in reserve_release_intr_bandwidth()
267 tt->bandwidth[i] += tt_usecs; in reserve_release_intr_bandwidth()
274 struct ehci_tt *tt) in compute_tt_budget() argument
280 if (!tt) in compute_tt_budget()
285 list_for_each_entry(ps, &tt->ps_list, ps_list) { in compute_tt_budget()
311 if (!dev1->tt || !dev2->tt) in same_tt()
313 if (dev1->tt != dev2->tt) in same_tt()
315 if (dev1->tt->multi) in same_tt()
381 struct ehci_tt *tt, in tt_available() argument
397 if (tt->bandwidth[frame] + usecs > 900) in tt_available()
798 struct ehci_tt *tt in check_intr_schedule() argument
816 if (tt_available(ehci, &qh->ps, tt, frame, uframe)) { in check_intr_schedule()
866 struct ehci_tt *tt; in qh_schedule() local
878 tt = find_tt(qh->ps.udev); in qh_schedule()
879 if (IS_ERR(tt)) { in qh_schedule()
880 status = PTR_ERR(tt); in qh_schedule()
883 compute_tt_budget(ehci->tt_budget, tt); in qh_schedule()
897 frame, uframe, qh, &c_mask, tt); in qh_schedule()
905 status = check_intr_schedule(ehci, 0, 0, qh, &c_mask, tt); in qh_schedule()
1105 || (dev->tt->hub != in iso_stream_init()
1107 addr |= dev->tt->hub->devnum << 16; in iso_stream_init()
1111 think_time = dev->tt ? dev->tt->think_time : 0; in iso_stream_init()
1340 struct ehci_tt *tt; in reserve_release_iso_bandwidth() local
1375 tt = find_tt(stream->ps.udev); in reserve_release_iso_bandwidth()
1377 list_add_tail(&stream->ps.ps_list, &tt->ps_list); in reserve_release_iso_bandwidth()
1383 tt->bandwidth[i] += tt_usecs; in reserve_release_iso_bandwidth()
1413 struct ehci_tt *tt in sitd_slot_ok() argument
1438 if (!tt_available(ehci, &stream->ps, tt, frame, uf)) in sitd_slot_ok()
1521 struct ehci_tt *tt = find_tt(stream->ps.udev); in iso_stream_schedule() local
1523 if (IS_ERR(tt)) { in iso_stream_schedule()
1524 status = PTR_ERR(tt); in iso_stream_schedule()
1527 compute_tt_budget(ehci->tt_budget, tt); in iso_stream_schedule()
1548 sched, tt)) in iso_stream_schedule()