Lines Matching refs:tt

103 	struct usb_tt		*utt = udev->tt;  in find_tt()
104 struct ehci_tt *tt, **tt_index, **ptt; in find_tt() local
135 tt = *ptt; in find_tt()
136 if (!tt) { /* Create the ehci_tt */ in find_tt()
140 tt = kzalloc(sizeof(*tt), GFP_ATOMIC); in find_tt()
141 if (!tt) { in find_tt()
148 list_add_tail(&tt->tt_list, &ehci->tt_list); in find_tt()
149 INIT_LIST_HEAD(&tt->ps_list); in find_tt()
150 tt->usb_tt = utt; in find_tt()
151 tt->tt_port = port; in find_tt()
152 *ptt = tt; in find_tt()
155 return tt; in find_tt()
161 struct usb_tt *utt = udev->tt; in drop_tt()
162 struct ehci_tt *tt, **tt_index, **ptt; in drop_tt() local
181 tt = *ptt; in drop_tt()
182 if (!tt || !list_empty(&tt->ps_list)) in drop_tt()
185 list_del(&tt->tt_list); in drop_tt()
187 kfree(tt); in drop_tt()
214 struct ehci_tt *tt; in reserve_release_intr_bandwidth() local
247 tt = find_tt(qh->ps.udev); in reserve_release_intr_bandwidth()
249 list_add_tail(&qh->ps.ps_list, &tt->ps_list); in reserve_release_intr_bandwidth()
255 tt->bandwidth[i] += tt_usecs; in reserve_release_intr_bandwidth()
262 struct ehci_tt *tt) in compute_tt_budget() argument
268 if (!tt) in compute_tt_budget()
273 list_for_each_entry(ps, &tt->ps_list, ps_list) { in compute_tt_budget()
298 if (!dev1->tt || !dev2->tt) in same_tt()
300 if (dev1->tt != dev2->tt) in same_tt()
302 if (dev1->tt->multi) in same_tt()
350 struct ehci_tt *tt, in tt_available() argument
366 if (tt->bandwidth[frame] + usecs > 900) in tt_available()
767 struct ehci_tt *tt in check_intr_schedule() argument
785 if (tt_available(ehci, &qh->ps, tt, frame, uframe)) { in check_intr_schedule()
835 struct ehci_tt *tt; in qh_schedule() local
847 tt = find_tt(qh->ps.udev); in qh_schedule()
848 if (IS_ERR(tt)) { in qh_schedule()
849 status = PTR_ERR(tt); in qh_schedule()
852 compute_tt_budget(ehci->tt_budget, tt); in qh_schedule()
866 frame, uframe, qh, &c_mask, tt); in qh_schedule()
874 status = check_intr_schedule(ehci, 0, 0, qh, &c_mask, tt); in qh_schedule()
1070 || (dev->tt->hub != in iso_stream_init()
1072 addr |= dev->tt->hub->devnum << 16; in iso_stream_init()
1076 think_time = dev->tt->think_time; in iso_stream_init()
1305 struct ehci_tt *tt; in reserve_release_iso_bandwidth() local
1340 tt = find_tt(stream->ps.udev); in reserve_release_iso_bandwidth()
1342 list_add_tail(&stream->ps.ps_list, &tt->ps_list); in reserve_release_iso_bandwidth()
1348 tt->bandwidth[i] += tt_usecs; in reserve_release_iso_bandwidth()
1378 struct ehci_tt *tt in sitd_slot_ok() argument
1403 if (!tt_available(ehci, &stream->ps, tt, frame, uf)) in sitd_slot_ok()
1486 struct ehci_tt *tt = find_tt(stream->ps.udev); in iso_stream_schedule() local
1488 if (IS_ERR(tt)) { in iso_stream_schedule()
1489 status = PTR_ERR(tt); in iso_stream_schedule()
1492 compute_tt_budget(ehci->tt_budget, tt); in iso_stream_schedule()
1513 sched, tt)) in iso_stream_schedule()