Lines Matching refs:qtd
1942 qtd_fill (struct ehci_qtd *qtd, dma_addr_t buf, size_t len, in qtd_fill() argument
2003 qtd->hw_buf [0] = CPUToLE32 ((U32)addr); in qtd_fill()
2004 qtd->hw_buf_hi [0] = CPUToLE32 ((U32)(addr >> 32)); in qtd_fill()
2015 qtd->hw_buf [i] = CPUToLE32 ((U32)addr); in qtd_fill()
2016 qtd->hw_buf_hi [i] = CPUToLE32 ((U32)(addr >> 32)); in qtd_fill()
2077 qtd->hw_token = CPUToLE32 ((count << 16) | token); in qtd_fill()
2078 qtd->length = count; in qtd_fill()
2084 qtd->hw_buf[uPageShift] = qtd->hw_buf [lastnums]; in qtd_fill()
2085 qtd->hw_buf_hi[uPageShift] = qtd->hw_buf_hi [lastnums]; in qtd_fill()
2096 qtd->hw_buf[i+uPageShift] = qtd->hw_buf [i]; in qtd_fill()
2097 qtd->hw_buf_hi[i+uPageShift] = qtd->hw_buf_hi [i]; in qtd_fill()
2098 qtd->hw_buf [i] = 0; in qtd_fill()
2099 qtd->hw_buf_hi [i] = 0; in qtd_fill()
2102 qtd->hw_token |= (uPageShift << 12); //New Current Page in qtd_fill()
2161 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument
2163 qh->hw_qtd_next = QTD_NEXT (qtd->qtd_dma); in qh_update()
3012 struct ehci_qtd *qtd; in qh_completions() local
3016 qtd = list_entry (entry, struct ehci_qtd, qtd_list); in qh_completions()
3018 urb = qtd->urb; in qh_completions()
3020 if ( ((qtd->hw_token >> 12) & 0x7) > 5) //For patching H/W bug in qh_completions()
3086 if (qtd == end) in qh_completions()
3092 token = LE32ToCPU (qtd->hw_token); in qh_completions()
3229 && CPUToLE32 (qtd->qtd_dma) in qh_completions()
3290 qtd_copy_status (ehci, urb, qtd->length, token); in qh_completions()
3302 if (stopped && qtd->qtd_list.prev != &qh->qtd_list) { in qh_completions()
3303 last = list_entry (qtd->qtd_list.prev, struct ehci_qtd, qtd_list); in qh_completions()
3305 last->hw_next = qtd->hw_next; in qh_completions()
3308 list_del (&qtd->qtd_list); in qh_completions()
3309 last = qtd; in qh_completions()
3450 struct ehci_qtd *qtd; in qtd_list_free() local
3500 qtd = list_entry (entry, struct ehci_qtd, qtd_list); in qtd_list_free()
3502 list_del (&qtd->qtd_list); in qtd_list_free()
3503 ehci_qtd_free (ehci, qtd); in qtd_list_free()
3563 struct ehci_qtd *qtd, *qtd_prev; in qh_urb_transaction() local
3665 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction()
3666 if (unlikely (!qtd)) in qh_urb_transaction()
3668 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction()
3669 qtd->urb = urb; in qh_urb_transaction()
3727 qtd_fill (qtd, urb->setup_dma, sizeof (struct usb_ctrlrequest), in qh_urb_transaction()
3780 qtd_prev = qtd; in qh_urb_transaction()
3781 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction()
3782 if (unlikely (!qtd)) in qh_urb_transaction()
3784 qtd->urb = urb; in qh_urb_transaction()
3785 qtd_prev->hw_next = QTD_NEXT (qtd->qtd_dma); in qh_urb_transaction()
3786 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction()
3921 this_qtd_len = qtd_fill (qtd, buf, len, token, maxpacket); in qh_urb_transaction()
3925 qtd->hw_alt_next = ehci->async->hw_alt_next; in qh_urb_transaction()
3982 qtd_prev = qtd; in qh_urb_transaction()
3983 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction()
3984 if (unlikely (!qtd)) in qh_urb_transaction()
3986 qtd->urb = urb; in qh_urb_transaction()
3987 qtd_prev->hw_next = QTD_NEXT (qtd->qtd_dma); in qh_urb_transaction()
3988 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction()
4041 qtd->hw_alt_next = EHCI_LIST_END; in qh_urb_transaction()
4154 qtd_prev = qtd; in qh_urb_transaction()
4155 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction()
4156 if (unlikely (!qtd)) in qh_urb_transaction()
4158 qtd->urb = urb; in qh_urb_transaction()
4159 qtd_prev->hw_next = QTD_NEXT (qtd->qtd_dma); in qh_urb_transaction()
4160 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction()
4211 qtd_fill (qtd, 0, 0, token, 0); in qh_urb_transaction()
4217 qtd->hw_token |= CPUToLE32 (QTD_IOC); in qh_urb_transaction()
5336 struct ehci_qtd *qtd; in qh_append_tds() local
5339 qtd = 0; in qh_append_tds()
5342 qtd = list_entry (qtd_list->next, struct ehci_qtd, qtd_list); in qh_append_tds()
5481 if (likely (qtd != 0)) { in qh_append_tds()
5486 token = qtd->hw_token; in qh_append_tds()
5487 qtd->hw_token = HALT_BIT; in qh_append_tds()
5492 *dummy = *qtd; in qh_append_tds()
5495 list_del (&qtd->qtd_list); in qh_append_tds()
5547 ehci_qtd_init (qtd, qtd->qtd_dma); in qh_append_tds()
5548 qh->dummy = qtd; in qh_append_tds()
5551 dma = qtd->qtd_dma; in qh_append_tds()
5552 qtd = list_entry (qh->qtd_list.prev, struct ehci_qtd, qtd_list); in qh_append_tds()
5555 qtd->hw_next = QTD_NEXT (dma); in qh_append_tds()
5576 struct ehci_qtd *qtd; in submit_async() local
5630 qtd = list_entry (qtd_list->next, struct ehci_qtd, qtd_list); in submit_async()
5640 qtd, dev ? dev->ep [epnum] : (void *)~0); in submit_async()
9858 struct ehci_qtd *qtd, *qtd_prev; in qh_urb_transaction_EHSET() local
9912 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction_EHSET()
9913 if (unlikely (!qtd)) in qh_urb_transaction_EHSET()
9915 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction_EHSET()
9916 qtd->urb = urb; in qh_urb_transaction_EHSET()
9926 qtd_fill (qtd, urb->setup_dma, sizeof (struct usb_ctrlrequest), in qh_urb_transaction_EHSET()
9928 qtd->hw_alt_next = EHCI_LIST_END; // EHSET in qh_urb_transaction_EHSET()
9934 qtd->hw_token |= CPUToLE32 (QTD_IOC); // EHSET in qh_urb_transaction_EHSET()
10061 this_qtd_len = qtd_fill (qtd, buf, len, token, maxpacket); in qh_urb_transaction_EHSET()
10065 qtd->hw_alt_next = ehci->async->hw_alt_next; in qh_urb_transaction_EHSET()
10169 qtd_prev = qtd; in qh_urb_transaction_EHSET()
10170 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction_EHSET()
10171 if (unlikely (!qtd)) in qh_urb_transaction_EHSET()
10173 qtd->urb = urb; in qh_urb_transaction_EHSET()
10174 qtd_prev->hw_next = QTD_NEXT (qtd->qtd_dma); in qh_urb_transaction_EHSET()
10175 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction_EHSET()
10228 qtd->hw_alt_next = EHCI_LIST_END; in qh_urb_transaction_EHSET()
10243 qtd_prev = qtd; in qh_urb_transaction_EHSET()
10244 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction_EHSET()
10245 if (unlikely (!qtd)) in qh_urb_transaction_EHSET()
10247 qtd->urb = urb; in qh_urb_transaction_EHSET()
10248 qtd_prev->hw_next = QTD_NEXT (qtd->qtd_dma); in qh_urb_transaction_EHSET()
10249 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction_EHSET()
10251 qtd_fill (qtd, 0, 0, token, 0); in qh_urb_transaction_EHSET()
10304 qtd->hw_token |= CPUToLE32 (QTD_IOC); in qh_urb_transaction_EHSET()