Lines Matching refs:qtd
33 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, in qtd_fill() argument
41 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill()
42 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill()
53 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill()
54 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill()
67 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill()
68 qtd->length = count; in qtd_fill()
76 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument
83 hw->hw_qtd_next = QTD_NEXT(ehci, qtd->qtd_dma); in qh_update()
112 struct ehci_qtd *qtd; in qh_refresh() local
114 qtd = list_entry(qh->qtd_list.next, struct ehci_qtd, qtd_list); in qh_refresh()
124 qh->hw->hw_qtd_next = qtd->hw_next; in qh_refresh()
128 qh_update(ehci, qh, qtd); in qh_refresh()
320 struct ehci_qtd *qtd; in qh_completions() local
324 qtd = list_entry (entry, struct ehci_qtd, qtd_list); in qh_completions()
325 urb = qtd->urb; in qh_completions()
338 if (qtd == end) in qh_completions()
343 token = hc32_to_cpu(ehci, qtd->hw_token); in qh_completions()
357 qtd, in qh_completions()
374 qtd->length - QTD_LENGTH(token), qtd->length, qh->xacterrs); in qh_completions()
384 qtd->hw_token = cpu_to_hc32(ehci, in qh_completions()
404 && !(qtd->hw_alt_next in qh_completions()
440 qh->qtd_list.next == &qtd->qtd_list && in qh_completions()
463 qtd->length, token); in qh_completions()
465 && (qtd->hw_alt_next in qh_completions()
492 if (stopped && qtd->qtd_list.prev != &qh->qtd_list) { in qh_completions()
493 last = list_entry (qtd->qtd_list.prev, in qh_completions()
495 last->hw_next = qtd->hw_next; in qh_completions()
499 list_del (&qtd->qtd_list); in qh_completions()
500 last = qtd; in qh_completions()
560 struct ehci_qtd *qtd; in qtd_list_free() local
562 qtd = list_entry (entry, struct ehci_qtd, qtd_list); in qtd_list_free()
563 list_del (&qtd->qtd_list); in qtd_list_free()
564 ehci_qtd_free (ehci, qtd); in qtd_list_free()
578 struct ehci_qtd *qtd, *qtd_prev; in qh_urb_transaction() local
589 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction()
590 if (unlikely (!qtd)) in qh_urb_transaction()
592 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction()
593 qtd->urb = urb; in qh_urb_transaction()
603 qtd_fill(ehci, qtd, urb->setup_dma, in qh_urb_transaction()
609 qtd_prev = qtd; in qh_urb_transaction()
610 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction()
611 if (unlikely (!qtd)) in qh_urb_transaction()
613 qtd->urb = urb; in qh_urb_transaction()
614 qtd_prev->hw_next = QTD_NEXT(ehci, qtd->qtd_dma); in qh_urb_transaction()
615 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction()
654 this_qtd_len = qtd_fill(ehci, qtd, buf, this_sg_len, token, in qh_urb_transaction()
666 qtd->hw_alt_next = ehci->async->hw->hw_alt_next; in qh_urb_transaction()
680 qtd_prev = qtd; in qh_urb_transaction()
681 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction()
682 if (unlikely (!qtd)) in qh_urb_transaction()
684 qtd->urb = urb; in qh_urb_transaction()
685 qtd_prev->hw_next = QTD_NEXT(ehci, qtd->qtd_dma); in qh_urb_transaction()
686 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction()
696 qtd->hw_alt_next = EHCI_LIST_END(ehci); in qh_urb_transaction()
716 qtd_prev = qtd; in qh_urb_transaction()
717 qtd = ehci_qtd_alloc (ehci, flags); in qh_urb_transaction()
718 if (unlikely (!qtd)) in qh_urb_transaction()
720 qtd->urb = urb; in qh_urb_transaction()
721 qtd_prev->hw_next = QTD_NEXT(ehci, qtd->qtd_dma); in qh_urb_transaction()
722 list_add_tail (&qtd->qtd_list, head); in qh_urb_transaction()
725 qtd_fill(ehci, qtd, 0, 0, token, 0); in qh_urb_transaction()
731 qtd->hw_token |= cpu_to_hc32(ehci, QTD_IOC); in qh_urb_transaction()
1035 struct ehci_qtd *qtd; in qh_append_tds() local
1038 qtd = NULL; in qh_append_tds()
1040 qtd = list_entry (qtd_list->next, struct ehci_qtd, in qh_append_tds()
1054 if (likely (qtd != NULL)) { in qh_append_tds()
1064 token = qtd->hw_token; in qh_append_tds()
1065 qtd->hw_token = HALT_BIT(ehci); in qh_append_tds()
1070 *dummy = *qtd; in qh_append_tds()
1073 list_del (&qtd->qtd_list); in qh_append_tds()
1077 ehci_qtd_init(ehci, qtd, qtd->qtd_dma); in qh_append_tds()
1078 qh->dummy = qtd; in qh_append_tds()
1081 dma = qtd->qtd_dma; in qh_append_tds()
1082 qtd = list_entry (qh->qtd_list.prev, in qh_append_tds()
1084 qtd->hw_next = QTD_NEXT(ehci, dma); in qh_append_tds()
1114 struct ehci_qtd *qtd; in submit_async() local
1115 qtd = list_entry(qtd_list->next, struct ehci_qtd, qtd_list); in submit_async()
1121 qtd, urb->ep->hcpriv); in submit_async()
1174 struct ehci_qtd *qtd, *qtd_prev; in ehci_submit_single_step_set_feature() local
1183 qtd = ehci_qtd_alloc(ehci, GFP_KERNEL); in ehci_submit_single_step_set_feature()
1184 if (unlikely(!qtd)) in ehci_submit_single_step_set_feature()
1186 list_add_tail(&qtd->qtd_list, head); in ehci_submit_single_step_set_feature()
1187 qtd->urb = urb; in ehci_submit_single_step_set_feature()
1200 qtd_fill(ehci, qtd, urb->setup_dma, in ehci_submit_single_step_set_feature()
1219 qtd_fill(ehci, qtd, buf, len, token, maxpacket); in ehci_submit_single_step_set_feature()
1225 qtd->hw_alt_next = EHCI_LIST_END(ehci); in ehci_submit_single_step_set_feature()
1231 qtd_prev = qtd; in ehci_submit_single_step_set_feature()
1232 qtd = ehci_qtd_alloc(ehci, GFP_ATOMIC); in ehci_submit_single_step_set_feature()
1233 if (unlikely(!qtd)) in ehci_submit_single_step_set_feature()
1235 qtd->urb = urb; in ehci_submit_single_step_set_feature()
1236 qtd_prev->hw_next = QTD_NEXT(ehci, qtd->qtd_dma); in ehci_submit_single_step_set_feature()
1237 list_add_tail(&qtd->qtd_list, head); in ehci_submit_single_step_set_feature()
1240 qtd_fill(ehci, qtd, 0, 0, token | QTD_IOC, 0); in ehci_submit_single_step_set_feature()