/openbmc/linux/drivers/usb/dwc2/ |
H A D | hcd_intr.c | 69 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 …]
|
H A D | hcd_ddma.c | 512 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 …]
|
H A D | hcd.h | 160 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,
|
H A D | hcd.c | 1574 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 …]
|
H A D | hcd_queue.c | 2011 void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) in dwc2_hcd_qtd_init() argument 2013 qtd->urb = urb; in dwc2_hcd_qtd_init() 2021 qtd->data_toggle = DWC2_HC_PID_DATA1; in dwc2_hcd_qtd_init() 2022 qtd->control_phase = DWC2_CONTROL_SETUP; in dwc2_hcd_qtd_init() 2026 qtd->complete_split = 0; in dwc2_hcd_qtd_init() 2027 qtd->isoc_split_pos = DWC2_HCSPLT_XACTPOS_ALL; in dwc2_hcd_qtd_init() 2028 qtd->isoc_split_offset = 0; in dwc2_hcd_qtd_init() 2029 qtd->in_process = 0; in dwc2_hcd_qtd_init() 2032 urb->qtd = qtd; in dwc2_hcd_qtd_init() 2048 int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, in dwc2_hcd_qtd_add() argument [all …]
|
/openbmc/linux/drivers/usb/isp1760/ |
H A D | isp1760-hcd.c | 42 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 …]
|
H A D | isp1760-hcd.h | 17 struct isp1760_qtd *qtd; member
|
/openbmc/linux/drivers/usb/host/ |
H A D | ehci-q.c | 37 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, in qtd_fill() argument 45 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 46 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill() 57 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill() 58 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill() 71 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill() 72 qtd->length = count; in qtd_fill() 80 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument 87 hw->hw_qtd_next = QTD_NEXT(ehci, qtd->qtd_dma); in qh_update() 116 struct ehci_qtd *qtd; in qh_refresh() local [all …]
|
H A D | ehci-mem.c | 25 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 …]
|
H A D | oxu210hp-hcd.c | 907 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 …]
|
H A D | ehci-dbg.c | 80 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 …]
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-ehci.c | 319 static void ehci_trace_qtd(EHCIQueue *q, hwaddr addr, EHCIqtd *qtd) in ehci_trace_qtd() argument 322 trace_usb_ehci_qtd_ptrs(q, addr, qtd->next, qtd->altnext); in ehci_trace_qtd() 324 get_field(qtd->token, QTD_TOKEN_TBYTES), in ehci_trace_qtd() 325 get_field(qtd->token, QTD_TOKEN_CPAGE), in ehci_trace_qtd() 326 get_field(qtd->token, QTD_TOKEN_CERR), in ehci_trace_qtd() 327 get_field(qtd->token, QTD_TOKEN_PID)); in ehci_trace_qtd() 329 (bool)(qtd->token & QTD_TOKEN_IOC), in ehci_trace_qtd() 330 (bool)(qtd->token & QTD_TOKEN_ACTIVE), in ehci_trace_qtd() 331 (bool)(qtd->token & QTD_TOKEN_HALT), in ehci_trace_qtd() 332 (bool)(qtd->token & QTD_TOKEN_BABBLE), in ehci_trace_qtd() [all …]
|
H A D | hcd-ehci.h | 223 EHCIqtd qtd; /* copy of current QTD (being worked on) */ member
|
/openbmc/linux/drivers/usb/fotg210/ |
H A D | fotg210-hcd.c | 115 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 …]
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci-hcd.c | 304 struct qTD *qtd; in ehci_submit_async() local 385 qtd = memalign(USB_DMA_MINALIGN, qtd_count * sizeof(struct qTD)); in ehci_submit_async() 386 if (qtd == NULL) { in ehci_submit_async() 392 memset(qtd, 0, qtd_count * sizeof(*qtd)); in ehci_submit_async() 439 qtd[qtd_counter].qt_next = cpu_to_hc32(QT_NEXT_TERMINATE); in ehci_submit_async() 440 qtd[qtd_counter].qt_altnext = cpu_to_hc32(QT_NEXT_TERMINATE); in ehci_submit_async() 445 qtd[qtd_counter].qt_token = cpu_to_hc32(token); in ehci_submit_async() 446 if (ehci_td_buffer(&qtd[qtd_counter], req, sizeof(*req))) { in ehci_submit_async() 451 *tdp = cpu_to_hc32(virt_to_phys(&qtd[qtd_counter])); in ehci_submit_async() 452 tdp = &qtd[qtd_counter++].qt_next; in ehci_submit_async() [all …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | ci_udc.c | 433 struct ept_queue_item *dtd, *qtd; in ci_ep_submit_next_request() local 467 qtd = (struct ept_queue_item *) in ci_ep_submit_next_request() 469 dtd->next = (unsigned long)qtd; in ci_ep_submit_next_request() 470 dtd = qtd; in ci_ep_submit_next_request()
|
/openbmc/linux/Documentation/usb/ |
H A D | ehci.rst | 126 pending, usually one qtd per urb. (Look at it with
|