• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/host/

Lines Matching defs:itd

43  * @periodic: host pointer to qh/itd/sitd
55 return &periodic->itd->itd_next;
118 usecs += q->itd->usecs [uframe];
119 hw_p = &q->itd->hw_next;
120 q = &q->itd->itd_next;
229 hw_p = &q->itd->hw_next;
230 q = &q->itd->itd_next;
378 type = Q_NEXT_TYPE (here.itd->hw_next);
379 here = here.itd->itd_next;
976 struct ehci_itd *itd;
978 itd = list_entry (entry, struct ehci_itd,
980 dma_pool_free (ehci->itd_pool, itd,
981 itd->itd_dma);
1090 /* figure out per-uframe itd fields that we'll need later
1139 struct ehci_itd *itd;
1167 itd = list_entry (stream->free_list.prev,
1169 list_del (&itd->itd_list);
1170 itd_dma = itd->itd_dma;
1172 itd = NULL;
1174 if (!itd) {
1176 itd = dma_pool_alloc (ehci->itd_pool, mem_flags,
1181 if (unlikely (NULL == itd)) {
1186 memset (itd, 0, sizeof *itd);
1187 itd->itd_dma = itd_dma;
1188 list_add (&itd->itd_list, &sched->td_list);
1416 itd_init (struct ehci_iso_stream *stream, struct ehci_itd *itd)
1421 itd->hw_next = EHCI_LIST_END;
1422 itd->hw_bufp [0] = stream->buf0;
1423 itd->hw_bufp [1] = stream->buf1;
1424 itd->hw_bufp [2] = stream->buf2;
1427 itd->index[i] = -1;
1434 struct ehci_itd *itd,
1441 unsigned pg = itd->pg;
1446 itd->index [uframe] = index;
1448 itd->hw_transaction [uframe] = uf->transaction;
1449 itd->hw_transaction [uframe] |= cpu_to_le32 (pg << 12);
1450 itd->hw_bufp [pg] |= cpu_to_le32 (uf->bufp & ~(u32)0);
1451 itd->hw_bufp_hi [pg] |= cpu_to_le32 ((u32)(uf->bufp >> 32));
1456 itd->pg = ++pg;
1457 itd->hw_bufp [pg] |= cpu_to_le32 (bufp & ~(u32)0);
1458 itd->hw_bufp_hi [pg] |= cpu_to_le32 ((u32)(bufp >> 32));
1463 itd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd)
1466 itd->itd_next = ehci->pshadow [frame];
1467 itd->hw_next = ehci->periodic [frame];
1468 ehci->pshadow [frame].itd = itd;
1469 itd->frame = frame;
1471 ehci->periodic [frame] = cpu_to_le32 (itd->itd_dma) | Q_TYPE_ITD;
1486 struct ehci_itd *itd;
1504 for (packet = 0, itd = NULL; packet < urb->number_of_packets; ) {
1505 if (itd == NULL) {
1511 itd = list_entry (iso_sched->td_list.next,
1513 list_move_tail (&itd->itd_list, &stream->td_list);
1514 itd->stream = iso_stream_get (stream);
1515 itd->urb = usb_get_urb (urb);
1516 itd_init (stream, itd);
1522 itd->usecs [uframe] = stream->usecs;
1523 itd_patch (itd, iso_sched, packet, uframe);
1533 itd_link (ehci, frame % ehci->periodic_size, itd);
1534 itd = NULL;
1554 struct ehci_itd *itd
1556 struct urb *urb = itd->urb;
1561 struct ehci_iso_stream *stream = itd->stream;
1566 if (likely (itd->index[uframe] == -1))
1568 urb_index = itd->index[uframe];
1571 t = le32_to_cpup (&itd->hw_transaction [uframe]);
1572 itd->hw_transaction [uframe] = 0;
1597 itd->urb = NULL;
1598 itd->stream = NULL;
1599 list_move (&itd->itd_list, &stream->free_list);
1606 /* ASSERT: it's really the last itd for this urb
1607 list_for_each_entry (itd, &stream->td_list, itd_list)
1608 BUG_ON (itd->urb == urb);
2148 if (0 == (q.itd->hw_transaction [uf]
2151 q_p = &q.itd->itd_next;
2152 hw_p = &q.itd->hw_next;
2153 type = Q_NEXT_TYPE (q.itd->hw_next);
2163 *q_p = q.itd->itd_next;
2164 *hw_p = q.itd->hw_next;
2165 type = Q_NEXT_TYPE (q.itd->hw_next);
2167 modified = itd_complete (ehci, q.itd);