Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/usb/dwc2/
Dhcd_intr.c69 struct dwc2_qtd *qtd) in dwc2_hc_handle_tt_clear() argument
80 if (!qtd->urb) in dwc2_hc_handle_tt_clear()
83 usb_urb = qtd->urb->priv; in dwc2_hc_handle_tt_clear()
96 if (qtd->urb->status != -EPIPE && qtd->urb->status != -EREMOTEIO) { in dwc2_hc_handle_tt_clear()
408 struct dwc2_qtd *qtd, in dwc2_get_actual_xfer_length() argument
424 length = qtd->ssplit_out_xfer_count; in dwc2_get_actual_xfer_length()
463 struct dwc2_qtd *qtd) in dwc2_update_urb_state() argument
468 int xfer_length = dwc2_get_actual_xfer_length(hsotg, chan, chnum, qtd, in dwc2_update_urb_state()
512 struct dwc2_qtd *qtd) in dwc2_hcd_save_data_toggle() argument
527 if (WARN(!qtd, in dwc2_hcd_save_data_toggle()
[all …]
Dhcd_ddma.c512 struct dwc2_qtd *qtd, in dwc2_fill_host_isoc_dma_desc() argument
520 frame_desc = &qtd->urb->iso_descs[qtd->isoc_frame_index_last]; in dwc2_fill_host_isoc_dma_desc()
527 dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); in dwc2_fill_host_isoc_dma_desc()
535 qtd->isoc_frame_index_last++; in dwc2_fill_host_isoc_dma_desc()
539 if (qtd->isoc_frame_index_last == qtd->urb->packet_count) in dwc2_fill_host_isoc_dma_desc()
553 struct dwc2_qtd *qtd; in dwc2_init_isoc_dma_desc() local
592 list_for_each_entry(qtd, &qh->qtd_list, qtd_list_entry) { in dwc2_init_isoc_dma_desc()
593 if (qtd->in_process && in dwc2_init_isoc_dma_desc()
594 qtd->isoc_frame_index_last == in dwc2_init_isoc_dma_desc()
595 qtd->urb->packet_count) in dwc2_init_isoc_dma_desc()
[all …]
Dhcd.h160 struct dwc2_qtd *qtd; member
545 void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb);
546 int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,
551 struct dwc2_qtd *qtd, in dwc2_hcd_qtd_unlink_and_free() argument
554 list_del(&qtd->qtd_list_entry); in dwc2_hcd_qtd_unlink_and_free()
555 kfree(qtd); in dwc2_hcd_qtd_unlink_and_free()
731 struct dwc2_qtd *qtd);
784 void dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,
Dhcd.c1574 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_kill_urbs_in_qh_list() local
1577 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_kill_urbs_in_qh_list()
1579 dwc2_host_complete(hsotg, qtd, -ECONNRESET); in dwc2_kill_urbs_in_qh_list()
1580 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_kill_urbs_in_qh_list()
1588 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_qh_list_free() local
1605 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_qh_list_free()
1607 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_qh_list_free()
1846 struct dwc2_qtd *qtd) in dwc2_hcd_urb_enqueue() argument
1871 if (!qtd) in dwc2_hcd_urb_enqueue()
1874 dwc2_hcd_qtd_init(qtd, urb); in dwc2_hcd_urb_enqueue()
[all …]
Dhcd_queue.c1975 void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) in dwc2_hcd_qtd_init() argument
1977 qtd->urb = urb; in dwc2_hcd_qtd_init()
1985 qtd->data_toggle = DWC2_HC_PID_DATA1; in dwc2_hcd_qtd_init()
1986 qtd->control_phase = DWC2_CONTROL_SETUP; in dwc2_hcd_qtd_init()
1990 qtd->complete_split = 0; in dwc2_hcd_qtd_init()
1991 qtd->isoc_split_pos = DWC2_HCSPLT_XACTPOS_ALL; in dwc2_hcd_qtd_init()
1992 qtd->isoc_split_offset = 0; in dwc2_hcd_qtd_init()
1993 qtd->in_process = 0; in dwc2_hcd_qtd_init()
1996 urb->qtd = qtd; in dwc2_hcd_qtd_init()
2012 int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, in dwc2_hcd_qtd_add() argument
[all …]
/linux-6.12.1/drivers/usb/isp1760/
Disp1760-hcd.c42 struct isp1760_qtd *qtd);
603 static void alloc_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in alloc_mem() argument
609 WARN_ON(qtd->payload_addr); in alloc_mem()
611 if (!qtd->length) in alloc_mem()
615 if (priv->memory_pool[i].size >= qtd->length && in alloc_mem()
618 qtd->payload_addr = priv->memory_pool[i].start; in alloc_mem()
624 static void free_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in free_mem() argument
630 if (!qtd->payload_addr) in free_mem()
634 if (priv->memory_pool[i].start == qtd->payload_addr) { in free_mem()
637 qtd->payload_addr = 0; in free_mem()
[all …]
Disp1760-hcd.h17 struct isp1760_qtd *qtd; member
/linux-6.12.1/drivers/usb/host/
Dehci-q.c33 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
[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.c882 static int oxu_buf_alloc(struct oxu_hcd *oxu, struct ehci_qtd *qtd, int len) in oxu_buf_alloc() argument
916 qtd->buffer = (void *) &oxu->mem->db_pool[i]; in oxu_buf_alloc()
917 qtd->buffer_dma = virt_to_phys(qtd->buffer); in oxu_buf_alloc()
919 qtd->qtd_buffer_len = BUFFER_SIZE * a_blocks; in oxu_buf_alloc()
934 static void oxu_buf_free(struct oxu_hcd *oxu, struct ehci_qtd *qtd) in oxu_buf_free() argument
940 index = (qtd->buffer - (void *) &oxu->mem->db_pool[0]) in oxu_buf_free()
943 qtd->qtd_buffer_len = 0; in oxu_buf_free()
944 qtd->buffer_dma = 0; in oxu_buf_free()
945 qtd->buffer = NULL; in oxu_buf_free()
950 static inline void ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma) in ehci_qtd_init() argument
[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 …]
/linux-6.12.1/drivers/usb/fotg210/
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 …]
/linux-6.12.1/Documentation/usb/
Dehci.rst126 pending, usually one qtd per urb. (Look at it with