Home
last modified time | relevance | path

Searched refs:qtd (Results 1 – 18 of 18) sorted by relevance

/drivers/usb/dwc2/
Dhcd_intr.c99 struct dwc2_qtd *qtd) in dwc2_hc_handle_tt_clear() argument
110 if (!qtd->urb) in dwc2_hc_handle_tt_clear()
113 usb_urb = qtd->urb->priv; in dwc2_hc_handle_tt_clear()
126 if (qtd->urb->status != -EPIPE && qtd->urb->status != -EREMOTEIO) { in dwc2_hc_handle_tt_clear()
438 struct dwc2_qtd *qtd, in dwc2_get_actual_xfer_length() argument
454 length = qtd->ssplit_out_xfer_count; in dwc2_get_actual_xfer_length()
493 struct dwc2_qtd *qtd) in dwc2_update_urb_state() argument
498 int xfer_length = dwc2_get_actual_xfer_length(hsotg, chan, chnum, qtd, in dwc2_update_urb_state()
542 struct dwc2_qtd *qtd) in dwc2_hcd_save_data_toggle() argument
557 if (WARN(!qtd, in dwc2_hcd_save_data_toggle()
[all …]
Dhcd_ddma.c542 struct dwc2_qtd *qtd, in dwc2_fill_host_isoc_dma_desc() argument
550 frame_desc = &qtd->urb->iso_descs[qtd->isoc_frame_index_last]; in dwc2_fill_host_isoc_dma_desc()
557 dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); in dwc2_fill_host_isoc_dma_desc()
565 qtd->isoc_frame_index_last++; in dwc2_fill_host_isoc_dma_desc()
569 if (qtd->isoc_frame_index_last == qtd->urb->packet_count) in dwc2_fill_host_isoc_dma_desc()
583 struct dwc2_qtd *qtd; in dwc2_init_isoc_dma_desc() local
622 list_for_each_entry(qtd, &qh->qtd_list, qtd_list_entry) { in dwc2_init_isoc_dma_desc()
623 if (qtd->in_process && in dwc2_init_isoc_dma_desc()
624 qtd->isoc_frame_index_last == in dwc2_init_isoc_dma_desc()
625 qtd->urb->packet_count) in dwc2_init_isoc_dma_desc()
[all …]
Dhcd.h189 struct dwc2_qtd *qtd; member
574 void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb);
575 int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,
580 struct dwc2_qtd *qtd, in dwc2_hcd_qtd_unlink_and_free() argument
583 list_del(&qtd->qtd_list_entry); in dwc2_hcd_qtd_unlink_and_free()
584 kfree(qtd); in dwc2_hcd_qtd_unlink_and_free()
760 struct dwc2_qtd *qtd);
813 void dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,
Dhcd.c1608 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_kill_urbs_in_qh_list() local
1611 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_kill_urbs_in_qh_list()
1613 dwc2_host_complete(hsotg, qtd, -ECONNRESET); in dwc2_kill_urbs_in_qh_list()
1614 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_kill_urbs_in_qh_list()
1622 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_qh_list_free() local
1639 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_qh_list_free()
1641 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_qh_list_free()
1880 struct dwc2_qtd *qtd) in dwc2_hcd_urb_enqueue() argument
1905 if (!qtd) in dwc2_hcd_urb_enqueue()
1908 dwc2_hcd_qtd_init(qtd, urb); in dwc2_hcd_urb_enqueue()
[all …]
Dhcd_queue.c2041 void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) in dwc2_hcd_qtd_init() argument
2043 qtd->urb = urb; in dwc2_hcd_qtd_init()
2051 qtd->data_toggle = DWC2_HC_PID_DATA1; in dwc2_hcd_qtd_init()
2052 qtd->control_phase = DWC2_CONTROL_SETUP; in dwc2_hcd_qtd_init()
2056 qtd->complete_split = 0; in dwc2_hcd_qtd_init()
2057 qtd->isoc_split_pos = DWC2_HCSPLT_XACTPOS_ALL; in dwc2_hcd_qtd_init()
2058 qtd->isoc_split_offset = 0; in dwc2_hcd_qtd_init()
2059 qtd->in_process = 0; in dwc2_hcd_qtd_init()
2062 urb->qtd = qtd; in dwc2_hcd_qtd_init()
2078 int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, in dwc2_hcd_qtd_add() argument
[all …]
/drivers/usb/isp1760/
Disp1760-hcd.c39 struct isp1760_qtd *qtd);
336 static void alloc_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in alloc_mem() argument
341 WARN_ON(qtd->payload_addr); in alloc_mem()
343 if (!qtd->length) in alloc_mem()
347 if (priv->memory_pool[i].size >= qtd->length && in alloc_mem()
350 qtd->payload_addr = priv->memory_pool[i].start; in alloc_mem()
356 static void free_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in free_mem() argument
361 if (!qtd->payload_addr) in free_mem()
365 if (priv->memory_pool[i].start == qtd->payload_addr) { in free_mem()
368 qtd->payload_addr = 0; in free_mem()
[all …]
Disp1760-hcd.h32 struct isp1760_qtd *qtd; member
/drivers/usb/host/
Dehci-q.c37 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, in qtd_fill() argument
44 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill()
45 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill()
56 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill()
57 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill()
70 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill()
71 qtd->length = count; in qtd_fill()
79 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument
86 hw->hw_qtd_next = QTD_NEXT(ehci, qtd->qtd_dma); in qh_update()
115 struct ehci_qtd *qtd; in qh_refresh() local
[all …]
Dehci-mem.c25 static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, in ehci_qtd_init() argument
28 memset (qtd, 0, sizeof *qtd); in ehci_qtd_init()
29 qtd->qtd_dma = dma; in ehci_qtd_init()
30 qtd->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_qtd_init()
31 qtd->hw_next = EHCI_LIST_END(ehci); in ehci_qtd_init()
32 qtd->hw_alt_next = EHCI_LIST_END(ehci); in ehci_qtd_init()
33 INIT_LIST_HEAD (&qtd->qtd_list); in ehci_qtd_init()
38 struct ehci_qtd *qtd; in ehci_qtd_alloc() local
41 qtd = dma_pool_alloc (ehci->qtd_pool, flags, &dma); in ehci_qtd_alloc()
42 if (qtd != NULL) { in ehci_qtd_alloc()
[all …]
Doxu210hp-hcd.c908 static int oxu_buf_alloc(struct oxu_hcd *oxu, struct ehci_qtd *qtd, int len) in oxu_buf_alloc() argument
942 qtd->buffer = (void *) &oxu->mem->db_pool[i]; in oxu_buf_alloc()
943 qtd->buffer_dma = virt_to_phys(qtd->buffer); in oxu_buf_alloc()
945 qtd->qtd_buffer_len = BUFFER_SIZE * a_blocks; in oxu_buf_alloc()
960 static void oxu_buf_free(struct oxu_hcd *oxu, struct ehci_qtd *qtd) in oxu_buf_free() argument
966 index = (qtd->buffer - (void *) &oxu->mem->db_pool[0]) in oxu_buf_free()
969 qtd->qtd_buffer_len = 0; in oxu_buf_free()
970 qtd->buffer_dma = 0; in oxu_buf_free()
971 qtd->buffer = NULL; in oxu_buf_free()
976 static inline void ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma) in ehci_qtd_init() argument
[all …]
Dfotg210-hcd.c115 dbg_qtd(const char *label, struct fotg210_hcd *fotg210, struct fotg210_qtd *qtd) in dbg_qtd() argument
117 fotg210_dbg(fotg210, "%s td %p n%08x %08x t%08x p0=%08x\n", label, qtd, in dbg_qtd()
118 hc32_to_cpup(fotg210, &qtd->hw_next), in dbg_qtd()
119 hc32_to_cpup(fotg210, &qtd->hw_alt_next), in dbg_qtd()
120 hc32_to_cpup(fotg210, &qtd->hw_token), in dbg_qtd()
121 hc32_to_cpup(fotg210, &qtd->hw_buf[0])); in dbg_qtd()
122 if (qtd->hw_buf[1]) in dbg_qtd()
124 hc32_to_cpup(fotg210, &qtd->hw_buf[1]), in dbg_qtd()
125 hc32_to_cpup(fotg210, &qtd->hw_buf[2]), in dbg_qtd()
126 hc32_to_cpup(fotg210, &qtd->hw_buf[3]), in dbg_qtd()
[all …]
Dehci-dbg.c80 dbg_qtd(const char *label, struct ehci_hcd *ehci, struct ehci_qtd *qtd) in dbg_qtd() argument
82 ehci_dbg(ehci, "%s td %p n%08x %08x t%08x p0=%08x\n", label, qtd, in dbg_qtd()
83 hc32_to_cpup(ehci, &qtd->hw_next), in dbg_qtd()
84 hc32_to_cpup(ehci, &qtd->hw_alt_next), in dbg_qtd()
85 hc32_to_cpup(ehci, &qtd->hw_token), in dbg_qtd()
86 hc32_to_cpup(ehci, &qtd->hw_buf[0])); in dbg_qtd()
87 if (qtd->hw_buf[1]) in dbg_qtd()
89 hc32_to_cpup(ehci, &qtd->hw_buf[1]), in dbg_qtd()
90 hc32_to_cpup(ehci, &qtd->hw_buf[2]), in dbg_qtd()
91 hc32_to_cpup(ehci, &qtd->hw_buf[3]), in dbg_qtd()
[all …]
/drivers/staging/wusbcore/host/whci/
Ddebug.c47 qset->qh.overlay.qtd.status, qset->qh.overlay.qtd.options); in qset_print()
53 i, qset->qtd[i].status, qset->qtd[i].options, in qset_print()
54 (u32)qset->qtd[i].page_list_ptr); in qset_print()
63 if (std->qtd) in qset_print()
65 std->qtd - &qset->qtd[0], in qset_print()
Dqset.c183 struct whc_qtd *qtd; in qset_add_qtds() local
190 if (std->qtd) in qset_add_qtds()
193 qtd = std->qtd = &qset->qtd[qset->td_end]; in qset_add_qtds()
197 memcpy(qtd->setup, std->urb->setup_packet, 8); in qset_add_qtds()
219 qtd->options = cpu_to_le32(QTD_OPT_IOC); in qset_add_qtds()
221 qtd->options = cpu_to_le32(QTD_OPT_IOC | QTD_OPT_SMALL); in qset_add_qtds()
222 qtd->page_list_ptr = cpu_to_le64(std->dma_addr); in qset_add_qtds()
224 qtd->status = cpu_to_le32(status); in qset_add_qtds()
245 qset->qtd[qset->td_start].status = 0; in qset_remove_qtd()
327 if (std->qtd != NULL) in qset_remove_qtds()
[all …]
Dwhcd.h86 struct whc_qtd *qtd; member
190 struct whc_qtd *qtd);
192 struct whc_qtd *qtd);
Dasl.c94 td = &qset->qtd[qset->td_start]; in process_qset()
312 if (std->qtd) in asl_urb_dequeue()
316 std->qtd = NULL; /* so this std is re-added when the qset is */ in asl_urb_dequeue()
Dpzl.c100 td = &qset->qtd[qset->td_start]; in pzl_process_qset()
340 if (std->qtd) in pzl_urb_dequeue()
344 std->qtd = NULL; /* so this std is re-added when the qset is */ in pzl_urb_dequeue()
Dwhci-hc.h130 struct whc_qtd qtd; member
231 struct whc_qtd qtd[WHCI_QSET_TD_MAX]; member