Lines Matching refs:sitd

64  * @periodic: host pointer to qh/itd/sitd
80 return &periodic->sitd->sitd_next;
174 if (q->sitd->hw_uframe & cpu_to_hc32(ehci,
176 if (q->sitd->hw_fullspeed_ep &
178 usecs += q->sitd->stream->usecs;
184 if (q->sitd->hw_uframe &
187 usecs += q->sitd->stream->c_usecs;
190 hw_p = &q->sitd->hw_next;
191 q = &q->sitd->sitd_next;
292 if (same_tt(dev, q->sitd->urb->dev)) {
293 uf = tt_start_uframe(ehci, q->sitd->hw_uframe);
294 tt_usecs[uf] += q->sitd->stream->tt_usecs;
296 hw_p = &q->sitd->hw_next;
297 q = &q->sitd->sitd_next;
449 if (same_tt (dev, here.sitd->urb->dev)) {
452 mask = hc32_to_cpu(ehci, here.sitd
459 type = Q_NEXT_TYPE(ehci, here.sitd->hw_next);
460 here = here.sitd->sitd_next;
1089 struct ehci_sitd *sitd;
1091 sitd = list_entry (entry, struct ehci_sitd,
1093 dma_pool_free (ehci->sitd_pool, sitd,
1094 sitd->sitd_dma);
1894 /* figure out per-frame sitd fields that we'll need later
1937 struct ehci_sitd *sitd;
1954 * for IN (using sitd->hw_backpointer, like a FSTN), which
1964 sitd = list_entry (stream->free_list.prev,
1966 list_del (&sitd->sitd_list);
1967 sitd_dma = sitd->sitd_dma;
1970 sitd = dma_pool_alloc (ehci->sitd_pool, mem_flags,
1973 if (!sitd) {
1980 memset (sitd, 0, sizeof *sitd);
1981 sitd->sitd_dma = sitd_dma;
1982 list_add (&sitd->sitd_list, &iso_sched->td_list);
1999 struct ehci_sitd *sitd,
2007 sitd->hw_next = EHCI_LIST_END(ehci);
2008 sitd->hw_fullspeed_ep = stream->address;
2009 sitd->hw_uframe = stream->splits;
2010 sitd->hw_results = uf->transaction;
2011 sitd->hw_backpointer = EHCI_LIST_END(ehci);
2014 sitd->hw_buf[0] = cpu_to_hc32(ehci, bufp);
2015 sitd->hw_buf_hi[0] = cpu_to_hc32(ehci, bufp >> 32);
2017 sitd->hw_buf[1] = cpu_to_hc32(ehci, uf->buf1);
2020 sitd->hw_buf_hi[1] = cpu_to_hc32(ehci, bufp >> 32);
2021 sitd->index = index;
2025 sitd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_sitd *sitd)
2027 /* note: sitd ordering could matter (CSPLIT then SSPLIT) */
2028 sitd->sitd_next = ehci->pshadow [frame];
2029 sitd->hw_next = ehci->periodic [frame];
2030 ehci->pshadow [frame].sitd = sitd;
2031 sitd->frame = frame;
2033 ehci->periodic[frame] = cpu_to_hc32(ehci, sitd->sitd_dma | Q_TYPE_SITD);
2048 struct ehci_sitd *sitd;
2072 for (packet = 0, sitd = NULL;
2081 sitd = list_entry (sched->td_list.next,
2083 list_move_tail (&sitd->sitd_list, &stream->td_list);
2084 sitd->stream = iso_stream_get (stream);
2085 sitd->urb = urb;
2087 sitd_patch(ehci, stream, sitd, sched, packet);
2089 sitd);
2121 struct ehci_sitd *sitd
2123 struct urb *urb = sitd->urb;
2127 struct ehci_iso_stream *stream = sitd->stream;
2131 urb_index = sitd->index;
2133 t = hc32_to_cpup(ehci, &sitd->hw_results);
2156 /* ASSERT: it's really the last sitd for this urb
2157 list_for_each_entry (sitd, &stream->td_list, sitd_list)
2158 BUG_ON (sitd->urb == urb);
2185 sitd->urb = NULL;
2186 if (ehci->clock_frame != sitd->frame) {
2188 sitd->stream = NULL;
2189 list_move(&sitd->sitd_list, &stream->free_list);
2195 list_move(&sitd->sitd_list, &ehci->cached_sitd_list);
2271 struct ehci_sitd *sitd, *sn;
2280 list_for_each_entry_safe(sitd, sn, &ehci->cached_sitd_list, sitd_list) {
2281 struct ehci_iso_stream *stream = sitd->stream;
2282 sitd->stream = NULL;
2283 list_move(&sitd->sitd_list, &stream->free_list);
2416 && (q.sitd->hw_results &
2420 q_p = &q.sitd->sitd_next;
2421 hw_p = &q.sitd->hw_next;
2423 q.sitd->hw_next);
2432 *q_p = q.sitd->sitd_next;
2434 q.sitd->hw_next != EHCI_LIST_END(ehci))
2435 *hw_p = q.sitd->hw_next;
2438 type = Q_NEXT_TYPE(ehci, q.sitd->hw_next);
2440 modified = sitd_complete (ehci, q.sitd);