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
253 tt = find_tt(qh->ps.udev); in reserve_release_intr_bandwidth()
255 list_add_tail(&qh->ps.ps_list, &tt->ps_list); in reserve_release_intr_bandwidth()
261 tt->bandwidth[i] += tt_usecs; in reserve_release_intr_bandwidth()
268 struct ehci_tt *tt) in compute_tt_budget() argument
274 if (!tt) in compute_tt_budget()
279 list_for_each_entry(ps, &tt->ps_list, ps_list) { in compute_tt_budget()
304 if (!dev1->tt || !dev2->tt) in same_tt()
306 if (dev1->tt != dev2->tt) in same_tt()
308 if (dev1->tt->multi) in same_tt()
356 struct ehci_tt *tt, in tt_available() argument
372 if (tt->bandwidth[frame] + usecs > 900) in tt_available()
773 struct ehci_tt *tt in check_intr_schedule() argument
791 if (tt_available(ehci, &qh->ps, tt, frame, uframe)) { in check_intr_schedule()
841 struct ehci_tt *tt; in qh_schedule() local
853 tt = find_tt(qh->ps.udev); in qh_schedule()
854 if (IS_ERR(tt)) { in qh_schedule()
855 status = PTR_ERR(tt); in qh_schedule()
858 compute_tt_budget(ehci->tt_budget, tt); in qh_schedule()
872 frame, uframe, qh, &c_mask, tt); in qh_schedule()
880 status = check_intr_schedule(ehci, 0, 0, qh, &c_mask, tt); in qh_schedule()
1076 || (dev->tt->hub != in iso_stream_init()
1078 addr |= dev->tt->hub->devnum << 16; in iso_stream_init()
1082 think_time = dev->tt->think_time; in iso_stream_init()
1309 struct ehci_tt *tt; in reserve_release_iso_bandwidth() local
1350 tt = find_tt(stream->ps.udev); in reserve_release_iso_bandwidth()
1352 list_add_tail(&stream->ps.ps_list, &tt->ps_list); in reserve_release_iso_bandwidth()
1358 tt->bandwidth[i] += tt_usecs; in reserve_release_iso_bandwidth()
1388 struct ehci_tt *tt in sitd_slot_ok() argument
1413 if (!tt_available(ehci, &stream->ps, tt, frame, uf)) in sitd_slot_ok()
1496 struct ehci_tt *tt = find_tt(stream->ps.udev); in iso_stream_schedule() local
1498 if (IS_ERR(tt)) { in iso_stream_schedule()
1499 status = PTR_ERR(tt); in iso_stream_schedule()
1502 compute_tt_budget(ehci->tt_budget, tt); in iso_stream_schedule()
1523 sched, tt)) in iso_stream_schedule()