Lines Matching refs:sitd
59 return &periodic->sitd->sitd_next; in periodic_next_shadow()
129 if (q->sitd->hw_uframe & cpu_to_hc32(ehci, in periodic_usecs()
131 if (q->sitd->hw_fullspeed_ep & in periodic_usecs()
133 usecs += q->sitd->stream->usecs; in periodic_usecs()
139 if (q->sitd->hw_uframe & in periodic_usecs()
142 usecs += q->sitd->stream->c_usecs; in periodic_usecs()
145 hw_p = &q->sitd->hw_next; in periodic_usecs()
146 q = &q->sitd->sitd_next; in periodic_usecs()
247 if (same_tt(dev, q->sitd->urb->dev)) { in periodic_tt_usecs()
248 uf = tt_start_uframe(ehci, q->sitd->hw_uframe); in periodic_tt_usecs()
249 tt_usecs[uf] += q->sitd->stream->tt_usecs; in periodic_tt_usecs()
251 hw_p = &q->sitd->hw_next; in periodic_tt_usecs()
252 q = &q->sitd->sitd_next; in periodic_tt_usecs()
402 if (same_tt (dev, here.sitd->urb->dev)) { in tt_no_collision()
405 mask = hc32_to_cpu(ehci, here.sitd in tt_no_collision()
412 type = Q_NEXT_TYPE(ehci, here.sitd->hw_next); in tt_no_collision()
413 here = here.sitd->sitd_next; in tt_no_collision()
996 struct ehci_sitd *sitd; in iso_stream_put() local
998 sitd = list_entry (entry, struct ehci_sitd, in iso_stream_put()
1000 dma_pool_free (ehci->sitd_pool, sitd, in iso_stream_put()
1001 sitd->sitd_dma); in iso_stream_put()
1808 struct ehci_sitd *sitd; in sitd_urb_transaction() local
1835 sitd = list_entry (stream->free_list.prev, in sitd_urb_transaction()
1837 list_del (&sitd->sitd_list); in sitd_urb_transaction()
1838 sitd_dma = sitd->sitd_dma; in sitd_urb_transaction()
1841 sitd = dma_pool_alloc (ehci->sitd_pool, mem_flags, in sitd_urb_transaction()
1844 if (!sitd) { in sitd_urb_transaction()
1851 memset (sitd, 0, sizeof *sitd); in sitd_urb_transaction()
1852 sitd->sitd_dma = sitd_dma; in sitd_urb_transaction()
1853 list_add (&sitd->sitd_list, &iso_sched->td_list); in sitd_urb_transaction()
1870 struct ehci_sitd *sitd, in sitd_patch() argument
1878 sitd->hw_next = EHCI_LIST_END(ehci); in sitd_patch()
1879 sitd->hw_fullspeed_ep = stream->address; in sitd_patch()
1880 sitd->hw_uframe = stream->splits; in sitd_patch()
1881 sitd->hw_results = uf->transaction; in sitd_patch()
1882 sitd->hw_backpointer = EHCI_LIST_END(ehci); in sitd_patch()
1885 sitd->hw_buf[0] = cpu_to_hc32(ehci, bufp); in sitd_patch()
1886 sitd->hw_buf_hi[0] = cpu_to_hc32(ehci, bufp >> 32); in sitd_patch()
1888 sitd->hw_buf[1] = cpu_to_hc32(ehci, uf->buf1); in sitd_patch()
1891 sitd->hw_buf_hi[1] = cpu_to_hc32(ehci, bufp >> 32); in sitd_patch()
1892 sitd->index = index; in sitd_patch()
1896 sitd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_sitd *sitd) in sitd_link() argument
1899 sitd->sitd_next = ehci->pshadow [frame]; in sitd_link()
1900 sitd->hw_next = ehci->periodic [frame]; in sitd_link()
1901 ehci->pshadow [frame].sitd = sitd; in sitd_link()
1902 sitd->frame = frame; in sitd_link()
1904 ehci->periodic[frame] = cpu_to_hc32(ehci, sitd->sitd_dma | Q_TYPE_SITD); in sitd_link()
1919 struct ehci_sitd *sitd; in sitd_link_urb() local
1938 for (packet = 0, sitd = NULL; in sitd_link_urb()
1947 sitd = list_entry (sched->td_list.next, in sitd_link_urb()
1949 list_move_tail (&sitd->sitd_list, &stream->td_list); in sitd_link_urb()
1950 sitd->stream = iso_stream_get (stream); in sitd_link_urb()
1951 sitd->urb = urb; in sitd_link_urb()
1953 sitd_patch(ehci, stream, sitd, sched, packet); in sitd_link_urb()
1955 sitd); in sitd_link_urb()
1988 struct ehci_sitd *sitd in sitd_complete() argument
1990 struct urb *urb = sitd->urb; in sitd_complete()
1994 struct ehci_iso_stream *stream = sitd->stream; in sitd_complete()
1998 urb_index = sitd->index; in sitd_complete()
2000 t = hc32_to_cpup(ehci, &sitd->hw_results); in sitd_complete()
2047 sitd->urb = NULL; in sitd_complete()
2048 sitd->stream = NULL; in sitd_complete()
2049 list_move(&sitd->sitd_list, &stream->free_list); in sitd_complete()
2244 (q.sitd->hw_results & in scan_periodic()
2247 q_p = &q.sitd->sitd_next; in scan_periodic()
2248 hw_p = &q.sitd->hw_next; in scan_periodic()
2250 q.sitd->hw_next); in scan_periodic()
2259 *q_p = q.sitd->sitd_next; in scan_periodic()
2260 *hw_p = q.sitd->hw_next; in scan_periodic()
2261 type = Q_NEXT_TYPE(ehci, q.sitd->hw_next); in scan_periodic()
2263 modified = sitd_complete (ehci, q.sitd); in scan_periodic()