Home
last modified time | relevance | path

Searched refs:qtd (Results 1 – 12 of 12) 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.c1609 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_kill_urbs_in_qh_list() local
1612 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_kill_urbs_in_qh_list()
1614 dwc2_host_complete(hsotg, qtd, -ECONNRESET); in dwc2_kill_urbs_in_qh_list()
1615 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_kill_urbs_in_qh_list()
1623 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_qh_list_free() local
1640 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_qh_list_free()
1642 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_qh_list_free()
1881 struct dwc2_qtd *qtd) in dwc2_hcd_urb_enqueue() argument
1906 if (!qtd) in dwc2_hcd_urb_enqueue()
1909 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.c40 struct isp1760_qtd *qtd);
337 static void alloc_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in alloc_mem() argument
342 WARN_ON(qtd->payload_addr); in alloc_mem()
344 if (!qtd->length) in alloc_mem()
348 if (priv->memory_pool[i].size >= qtd->length && in alloc_mem()
351 qtd->payload_addr = priv->memory_pool[i].start; in alloc_mem()
357 static void free_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in free_mem() argument
362 if (!qtd->payload_addr) in free_mem()
366 if (priv->memory_pool[i].start == qtd->payload_addr) { in free_mem()
369 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.c907 static int oxu_buf_alloc(struct oxu_hcd *oxu, struct ehci_qtd *qtd, int len) in oxu_buf_alloc() argument
941 qtd->buffer = (void *) &oxu->mem->db_pool[i]; in oxu_buf_alloc()
942 qtd->buffer_dma = virt_to_phys(qtd->buffer); in oxu_buf_alloc()
944 qtd->qtd_buffer_len = BUFFER_SIZE * a_blocks; in oxu_buf_alloc()
959 static void oxu_buf_free(struct oxu_hcd *oxu, struct ehci_qtd *qtd) in oxu_buf_free() argument
965 index = (qtd->buffer - (void *) &oxu->mem->db_pool[0]) in oxu_buf_free()
968 qtd->qtd_buffer_len = 0; in oxu_buf_free()
969 qtd->buffer_dma = 0; in oxu_buf_free()
970 qtd->buffer = NULL; in oxu_buf_free()
975 static inline void ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma) in ehci_qtd_init() argument
[all …]
Dfotg210-hcd.c116 dbg_qtd(const char *label, struct fotg210_hcd *fotg210, struct fotg210_qtd *qtd) in dbg_qtd() argument
118 fotg210_dbg(fotg210, "%s td %p n%08x %08x t%08x p0=%08x\n", label, qtd, in dbg_qtd()
119 hc32_to_cpup(fotg210, &qtd->hw_next), in dbg_qtd()
120 hc32_to_cpup(fotg210, &qtd->hw_alt_next), in dbg_qtd()
121 hc32_to_cpup(fotg210, &qtd->hw_token), in dbg_qtd()
122 hc32_to_cpup(fotg210, &qtd->hw_buf[0])); in dbg_qtd()
123 if (qtd->hw_buf[1]) in dbg_qtd()
125 hc32_to_cpup(fotg210, &qtd->hw_buf[1]), in dbg_qtd()
126 hc32_to_cpup(fotg210, &qtd->hw_buf[2]), in dbg_qtd()
127 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 …]