| /OK3568_Linux_fs/kernel/drivers/usb/dwc2/ |
| H A D | hcd_intr.c | 99 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 …]
|
| H A D | hcd_ddma.c | 542 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 …]
|
| H A D | hcd.h | 189 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,
|
| H A D | hcd.c | 1611 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_kill_urbs_in_qh_list() local 1614 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_kill_urbs_in_qh_list() 1616 dwc2_host_complete(hsotg, qtd, -ECONNRESET); in dwc2_kill_urbs_in_qh_list() 1617 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_kill_urbs_in_qh_list() 1625 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_qh_list_free() local 1642 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_qh_list_free() 1644 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_qh_list_free() 1885 struct dwc2_qtd *qtd) in dwc2_hcd_urb_enqueue() argument 1910 if (!qtd) in dwc2_hcd_urb_enqueue() 1913 dwc2_hcd_qtd_init(qtd, urb); in dwc2_hcd_urb_enqueue() [all …]
|
| H A D | hcd_queue.c | 2047 void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) in dwc2_hcd_qtd_init() argument 2049 qtd->urb = urb; in dwc2_hcd_qtd_init() 2057 qtd->data_toggle = DWC2_HC_PID_DATA1; in dwc2_hcd_qtd_init() 2058 qtd->control_phase = DWC2_CONTROL_SETUP; in dwc2_hcd_qtd_init() 2062 qtd->complete_split = 0; in dwc2_hcd_qtd_init() 2063 qtd->isoc_split_pos = DWC2_HCSPLT_XACTPOS_ALL; in dwc2_hcd_qtd_init() 2064 qtd->isoc_split_offset = 0; in dwc2_hcd_qtd_init() 2065 qtd->in_process = 0; in dwc2_hcd_qtd_init() 2068 urb->qtd = qtd; in dwc2_hcd_qtd_init() 2084 int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, in dwc2_hcd_qtd_add() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/isp1760/ |
| H A D | isp1760-hcd.c | 40 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 …]
|
| H A D | isp1760-hcd.h | 32 struct isp1760_qtd *qtd; member
|
| /OK3568_Linux_fs/kernel/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 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 …]
|
| 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 | fotg210-hcd.c | 116 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 …]
|
| 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 …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | ehci-hcd.c | 305 struct qTD *qtd; in ehci_submit_async() local 386 qtd = memalign(USB_DMA_MINALIGN, qtd_count * sizeof(struct qTD)); in ehci_submit_async() 387 if (qtd == NULL) { in ehci_submit_async() 393 memset(qtd, 0, qtd_count * sizeof(*qtd)); in ehci_submit_async() 434 qtd[qtd_counter].qt_next = cpu_to_hc32(QT_NEXT_TERMINATE); in ehci_submit_async() 435 qtd[qtd_counter].qt_altnext = cpu_to_hc32(QT_NEXT_TERMINATE); in ehci_submit_async() 440 qtd[qtd_counter].qt_token = cpu_to_hc32(token); in ehci_submit_async() 441 if (ehci_td_buffer(&qtd[qtd_counter], req, sizeof(*req))) { in ehci_submit_async() 446 *tdp = cpu_to_hc32(virt_to_phys(&qtd[qtd_counter])); in ehci_submit_async() 447 tdp = &qtd[qtd_counter++].qt_next; in ehci_submit_async() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/ |
| H A D | dbus.h | 629 int optimize_qtd_fill_with_rpc(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *rpc, 631 int optimize_qtd_fill_with_data(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *data, 633 int optimize_submit_async(struct ehci_qtd *qtd, int epn); 634 void inline optimize_ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma); 636 void optimize_ehci_qtd_free(struct ehci_qtd *qtd);
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/ |
| H A D | dbus.h | 581 int optimize_qtd_fill_with_rpc(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *rpc, 583 int optimize_qtd_fill_with_data(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *data, 585 int optimize_submit_async(struct ehci_qtd *qtd, int epn); 586 void inline optimize_ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma); 588 void optimize_ehci_qtd_free(struct ehci_qtd *qtd);
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/include/ |
| H A D | dbus.h | 581 int optimize_qtd_fill_with_rpc(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *rpc, 583 int optimize_qtd_fill_with_data(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *data, 585 int optimize_submit_async(struct ehci_qtd *qtd, int epn); 586 void inline optimize_ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma); 588 void optimize_ehci_qtd_free(struct ehci_qtd *qtd);
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/include/ |
| H A D | dbus.h | 589 int optimize_qtd_fill_with_rpc(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *rpc, 591 int optimize_qtd_fill_with_data(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *data, 593 int optimize_submit_async(struct ehci_qtd *qtd, int epn); 594 void inline optimize_ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma); 596 void optimize_ehci_qtd_free(struct ehci_qtd *qtd);
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/ |
| H A D | dbus.h | 615 int optimize_qtd_fill_with_rpc(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *rpc, 617 int optimize_qtd_fill_with_data(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *data, 619 int optimize_submit_async(struct ehci_qtd *qtd, int epn); 620 void inline optimize_ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma); 622 void optimize_ehci_qtd_free(struct ehci_qtd *qtd);
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/include/ |
| H A D | dbus.h | 581 int optimize_qtd_fill_with_rpc(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *rpc, 583 int optimize_qtd_fill_with_data(const dbus_pub_t *pub, int epn, struct ehci_qtd *qtd, void *data, 585 int optimize_submit_async(struct ehci_qtd *qtd, int epn); 586 void inline optimize_ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma); 588 void optimize_ehci_qtd_free(struct ehci_qtd *qtd);
|
| /OK3568_Linux_fs/u-boot/drivers/usb/gadget/ |
| H A D | ci_udc.c | 430 struct ept_queue_item *dtd, *qtd; in ci_ep_submit_next_request() local 464 qtd = (struct ept_queue_item *) in ci_ep_submit_next_request() 466 dtd->next = (unsigned long)qtd; in ci_ep_submit_next_request() 467 dtd = qtd; in ci_ep_submit_next_request()
|
| /OK3568_Linux_fs/kernel/Documentation/usb/ |
| H A D | ehci.rst | 126 pending, usually one qtd per urb. (Look at it with
|