• Home
  • Raw
  • Download

Lines Matching refs:itd

54 		return &periodic->itd->itd_next;  in periodic_next_shadow()
144 if (q->itd->hw_transaction[uframe]) in periodic_usecs()
145 usecs += q->itd->stream->usecs; in periodic_usecs()
146 hw_p = &q->itd->hw_next; in periodic_usecs()
147 q = &q->itd->itd_next; in periodic_usecs()
257 hw_p = &q->itd->hw_next; in periodic_tt_usecs()
258 q = &q->itd->itd_next; in periodic_tt_usecs()
407 type = Q_NEXT_TYPE(ehci, here.itd->hw_next); in tt_no_collision()
408 here = here.itd->itd_next; in tt_no_collision()
1166 struct ehci_itd *itd; in itd_urb_transaction() local
1193 itd = list_first_entry(&stream->free_list, in itd_urb_transaction()
1195 if (itd->frame == ehci->now_frame) in itd_urb_transaction()
1197 list_del (&itd->itd_list); in itd_urb_transaction()
1198 itd_dma = itd->itd_dma; in itd_urb_transaction()
1202 itd = dma_pool_alloc (ehci->itd_pool, mem_flags, in itd_urb_transaction()
1205 if (!itd) { in itd_urb_transaction()
1212 memset (itd, 0, sizeof *itd); in itd_urb_transaction()
1213 itd->itd_dma = itd_dma; in itd_urb_transaction()
1214 itd->frame = 9999; /* an invalid value */ in itd_urb_transaction()
1215 list_add (&itd->itd_list, &sched->td_list); in itd_urb_transaction()
1488 struct ehci_itd *itd) in itd_init() argument
1493 itd->hw_next = EHCI_LIST_END(ehci); in itd_init()
1494 itd->hw_bufp [0] = stream->buf0; in itd_init()
1495 itd->hw_bufp [1] = stream->buf1; in itd_init()
1496 itd->hw_bufp [2] = stream->buf2; in itd_init()
1499 itd->index[i] = -1; in itd_init()
1507 struct ehci_itd *itd, in itd_patch() argument
1514 unsigned pg = itd->pg; in itd_patch()
1519 itd->index [uframe] = index; in itd_patch()
1521 itd->hw_transaction[uframe] = uf->transaction; in itd_patch()
1522 itd->hw_transaction[uframe] |= cpu_to_hc32(ehci, pg << 12); in itd_patch()
1523 itd->hw_bufp[pg] |= cpu_to_hc32(ehci, uf->bufp & ~(u32)0); in itd_patch()
1524 itd->hw_bufp_hi[pg] |= cpu_to_hc32(ehci, (u32)(uf->bufp >> 32)); in itd_patch()
1530 itd->pg = ++pg; in itd_patch()
1531 itd->hw_bufp[pg] |= cpu_to_hc32(ehci, bufp & ~(u32)0); in itd_patch()
1532 itd->hw_bufp_hi[pg] |= cpu_to_hc32(ehci, (u32)(bufp >> 32)); in itd_patch()
1537 itd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd) in itd_link() argument
1554 itd->itd_next = here; in itd_link()
1555 itd->hw_next = *hw_p; in itd_link()
1556 prev->itd = itd; in itd_link()
1557 itd->frame = frame; in itd_link()
1559 *hw_p = cpu_to_hc32(ehci, itd->itd_dma | Q_TYPE_ITD); in itd_link()
1573 struct ehci_itd *itd; in itd_link_urb() local
1596 for (packet = 0, itd = NULL; packet < urb->number_of_packets; ) { in itd_link_urb()
1597 if (itd == NULL) { in itd_link_urb()
1603 itd = list_entry (iso_sched->td_list.next, in itd_link_urb()
1605 list_move_tail (&itd->itd_list, &stream->td_list); in itd_link_urb()
1606 itd->stream = stream; in itd_link_urb()
1607 itd->urb = urb; in itd_link_urb()
1608 itd_init (ehci, stream, itd); in itd_link_urb()
1614 itd_patch(ehci, itd, iso_sched, packet, uframe); in itd_link_urb()
1623 itd_link(ehci, frame & (ehci->periodic_size - 1), itd); in itd_link_urb()
1624 itd = NULL; in itd_link_urb()
1649 static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd) in itd_complete() argument
1651 struct urb *urb = itd->urb; in itd_complete()
1656 struct ehci_iso_stream *stream = itd->stream; in itd_complete()
1662 if (likely (itd->index[uframe] == -1)) in itd_complete()
1664 urb_index = itd->index[uframe]; in itd_complete()
1667 t = hc32_to_cpup(ehci, &itd->hw_transaction [uframe]); in itd_complete()
1668 itd->hw_transaction [uframe] = 0; in itd_complete()
1731 itd->urb = NULL; in itd_complete()
1734 list_move_tail(&itd->itd_list, &stream->free_list); in itd_complete()
2238 if (q.itd->hw_transaction[uf] & in scan_isoc()
2243 q_p = &q.itd->itd_next; in scan_isoc()
2244 hw_p = &q.itd->hw_next; in scan_isoc()
2246 q.itd->hw_next); in scan_isoc()
2257 *q_p = q.itd->itd_next; in scan_isoc()
2259 q.itd->hw_next != EHCI_LIST_END(ehci)) in scan_isoc()
2260 *hw_p = q.itd->hw_next; in scan_isoc()
2263 type = Q_NEXT_TYPE(ehci, q.itd->hw_next); in scan_isoc()
2265 modified = itd_complete (ehci, q.itd); in scan_isoc()