Lines Matching refs:itd

41 		return &periodic->itd->itd_next;  in periodic_next_shadow()
438 type = Q_NEXT_TYPE(ehci, here.itd->hw_next); in tt_no_collision()
439 here = here.itd->itd_next; in tt_no_collision()
1240 struct ehci_itd *itd; in itd_urb_transaction() local
1267 itd = list_first_entry(&stream->free_list, in itd_urb_transaction()
1269 if (itd->frame == ehci->now_frame) in itd_urb_transaction()
1271 list_del(&itd->itd_list); in itd_urb_transaction()
1272 itd_dma = itd->itd_dma; in itd_urb_transaction()
1276 itd = dma_pool_alloc(ehci->itd_pool, mem_flags, in itd_urb_transaction()
1279 if (!itd) { in itd_urb_transaction()
1286 memset(itd, 0, sizeof(*itd)); in itd_urb_transaction()
1287 itd->itd_dma = itd_dma; in itd_urb_transaction()
1288 itd->frame = NO_FRAME; in itd_urb_transaction()
1289 list_add(&itd->itd_list, &sched->td_list); in itd_urb_transaction()
1666 struct ehci_itd *itd) in itd_init() argument
1671 itd->hw_next = EHCI_LIST_END(ehci); in itd_init()
1672 itd->hw_bufp[0] = stream->buf0; in itd_init()
1673 itd->hw_bufp[1] = stream->buf1; in itd_init()
1674 itd->hw_bufp[2] = stream->buf2; in itd_init()
1677 itd->index[i] = -1; in itd_init()
1685 struct ehci_itd *itd, in itd_patch() argument
1692 unsigned pg = itd->pg; in itd_patch()
1697 itd->index[uframe] = index; in itd_patch()
1699 itd->hw_transaction[uframe] = uf->transaction; in itd_patch()
1700 itd->hw_transaction[uframe] |= cpu_to_hc32(ehci, pg << 12); in itd_patch()
1701 itd->hw_bufp[pg] |= cpu_to_hc32(ehci, uf->bufp & ~(u32)0); in itd_patch()
1702 itd->hw_bufp_hi[pg] |= cpu_to_hc32(ehci, (u32)(uf->bufp >> 32)); in itd_patch()
1708 itd->pg = ++pg; in itd_patch()
1709 itd->hw_bufp[pg] |= cpu_to_hc32(ehci, bufp & ~(u32)0); in itd_patch()
1710 itd->hw_bufp_hi[pg] |= cpu_to_hc32(ehci, (u32)(bufp >> 32)); in itd_patch()
1715 itd_link(struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd) in itd_link() argument
1732 itd->itd_next = here; in itd_link()
1733 itd->hw_next = *hw_p; in itd_link()
1734 prev->itd = itd; in itd_link()
1735 itd->frame = frame; in itd_link()
1737 *hw_p = cpu_to_hc32(ehci, itd->itd_dma | Q_TYPE_ITD); in itd_link()
1751 struct ehci_itd *itd; in itd_link_urb() local
1767 for (packet = iso_sched->first_packet, itd = NULL; in itd_link_urb()
1769 if (itd == NULL) { in itd_link_urb()
1775 itd = list_entry(iso_sched->td_list.next, in itd_link_urb()
1777 list_move_tail(&itd->itd_list, &stream->td_list); in itd_link_urb()
1778 itd->stream = stream; in itd_link_urb()
1779 itd->urb = urb; in itd_link_urb()
1780 itd_init(ehci, stream, itd); in itd_link_urb()
1786 itd_patch(ehci, itd, iso_sched, packet, uframe); in itd_link_urb()
1795 itd_link(ehci, frame & (ehci->periodic_size - 1), itd); in itd_link_urb()
1796 itd = NULL; in itd_link_urb()
1821 static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd) in itd_complete() argument
1823 struct urb *urb = itd->urb; in itd_complete()
1828 struct ehci_iso_stream *stream = itd->stream; in itd_complete()
1833 if (likely(itd->index[uframe] == -1)) in itd_complete()
1835 urb_index = itd->index[uframe]; in itd_complete()
1838 t = hc32_to_cpup(ehci, &itd->hw_transaction[uframe]); in itd_complete()
1839 itd->hw_transaction[uframe] = 0; in itd_complete()
1897 itd->urb = NULL; in itd_complete()
1900 list_move_tail(&itd->itd_list, &stream->free_list); in itd_complete()
2399 if (q.itd->hw_transaction[uf] & in scan_isoc()
2404 q_p = &q.itd->itd_next; in scan_isoc()
2405 hw_p = &q.itd->hw_next; in scan_isoc()
2407 q.itd->hw_next); in scan_isoc()
2419 *q_p = q.itd->itd_next; in scan_isoc()
2421 q.itd->hw_next != EHCI_LIST_END(ehci)) in scan_isoc()
2422 *hw_p = q.itd->hw_next; in scan_isoc()
2425 type = Q_NEXT_TYPE(ehci, q.itd->hw_next); in scan_isoc()
2427 modified = itd_complete(ehci, q.itd); in scan_isoc()