Home
last modified time | relevance | path

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

/drivers/staging/dwc2/
Dhcd_intr.c88 struct dwc2_qtd *qtd) in dwc2_hc_handle_tt_clear() argument
92 if (!chan->qh || !qtd->urb) in dwc2_hc_handle_tt_clear()
95 usb_urb = qtd->urb->priv; in dwc2_hc_handle_tt_clear()
100 qtd->urb->status != -EPIPE && qtd->urb->status != -EREMOTEIO) { in dwc2_hc_handle_tt_clear()
402 struct dwc2_qtd *qtd, in dwc2_get_actual_xfer_length() argument
418 length = qtd->ssplit_out_xfer_count; in dwc2_get_actual_xfer_length()
452 struct dwc2_qtd *qtd) in dwc2_update_urb_state() argument
457 int xfer_length = dwc2_get_actual_xfer_length(hsotg, chan, chnum, qtd, in dwc2_update_urb_state()
513 struct dwc2_qtd *qtd) in dwc2_hcd_save_data_toggle() argument
525 qtd->data_toggle = DWC2_HC_PID_DATA0; in dwc2_hcd_save_data_toggle()
[all …]
Dhcd_ddma.c503 struct dwc2_qtd *qtd, in dwc2_fill_host_isoc_dma_desc() argument
511 frame_desc = &qtd->urb->iso_descs[qtd->isoc_frame_index_last]; in dwc2_fill_host_isoc_dma_desc()
518 dma_desc->buf = (u32)(qtd->urb->dma + frame_desc->offset); in dwc2_fill_host_isoc_dma_desc()
524 if (qtd->isoc_frame_index_last == qtd->urb->packet_count) in dwc2_fill_host_isoc_dma_desc()
529 qtd->isoc_frame_index_last++; in dwc2_fill_host_isoc_dma_desc()
535 struct dwc2_qtd *qtd; in dwc2_init_isoc_dma_desc() local
553 list_for_each_entry(qtd, &qh->qtd_list, qtd_list_entry) { in dwc2_init_isoc_dma_desc()
554 while (qh->ntd < ntd_max && qtd->isoc_frame_index_last < in dwc2_init_isoc_dma_desc()
555 qtd->urb->packet_count) { in dwc2_init_isoc_dma_desc()
558 dwc2_fill_host_isoc_dma_desc(hsotg, qtd, qh, in dwc2_init_isoc_dma_desc()
[all …]
Dhcd_queue.c597 void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) in dwc2_hcd_qtd_init() argument
599 qtd->urb = urb; in dwc2_hcd_qtd_init()
607 qtd->data_toggle = DWC2_HC_PID_DATA1; in dwc2_hcd_qtd_init()
608 qtd->control_phase = DWC2_CONTROL_SETUP; in dwc2_hcd_qtd_init()
612 qtd->complete_split = 0; in dwc2_hcd_qtd_init()
613 qtd->isoc_split_pos = DWC2_HCSPLT_XACTPOS_ALL; in dwc2_hcd_qtd_init()
614 qtd->isoc_split_offset = 0; in dwc2_hcd_qtd_init()
615 qtd->in_process = 0; in dwc2_hcd_qtd_init()
618 urb->qtd = qtd; in dwc2_hcd_qtd_init()
635 int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, in dwc2_hcd_qtd_add() argument
[all …]
Dhcd.c132 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_kill_urbs_in_qh_list() local
135 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_kill_urbs_in_qh_list()
137 if (qtd->urb != NULL) { in dwc2_kill_urbs_in_qh_list()
138 dwc2_host_complete(hsotg, qtd->urb->priv, in dwc2_kill_urbs_in_qh_list()
139 qtd->urb, -ETIMEDOUT); in dwc2_kill_urbs_in_qh_list()
140 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_kill_urbs_in_qh_list()
149 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_qh_list_free() local
166 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_qh_list_free()
168 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_qh_list_free()
357 struct dwc2_qtd *qtd; in dwc2_hcd_urb_enqueue() local
[all …]
Dhcd.h183 struct dwc2_qtd *qtd; member
471 extern void dwc2_hcd_qtd_init(struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb);
472 extern int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,
477 struct dwc2_qtd *qtd, in dwc2_hcd_qtd_unlink_and_free() argument
480 list_del(&qtd->qtd_list_entry); in dwc2_hcd_qtd_unlink_and_free()
481 kfree(qtd); in dwc2_hcd_qtd_unlink_and_free()
644 struct dwc2_qtd *qtd);
/drivers/usb/host/
Disp1760-hcd.c311 static void alloc_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in alloc_mem() argument
316 WARN_ON(qtd->payload_addr); in alloc_mem()
318 if (!qtd->length) in alloc_mem()
322 if (priv->memory_pool[i].size >= qtd->length && in alloc_mem()
325 qtd->payload_addr = priv->memory_pool[i].start; in alloc_mem()
331 static void free_mem(struct usb_hcd *hcd, struct isp1760_qtd *qtd) in free_mem() argument
336 if (!qtd->payload_addr) in free_mem()
340 if (priv->memory_pool[i].start == qtd->payload_addr) { in free_mem()
343 qtd->payload_addr = 0; in free_mem()
349 __func__, qtd->payload_addr); in free_mem()
[all …]
Dehci-q.c46 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, in qtd_fill() argument
53 qtd->hw_buf[0] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill()
54 qtd->hw_buf_hi[0] = cpu_to_hc32(ehci, (u32)(addr >> 32)); in qtd_fill()
65 qtd->hw_buf[i] = cpu_to_hc32(ehci, (u32)addr); in qtd_fill()
66 qtd->hw_buf_hi[i] = cpu_to_hc32(ehci, in qtd_fill()
79 qtd->hw_token = cpu_to_hc32(ehci, (count << 16) | token); in qtd_fill()
80 qtd->length = count; in qtd_fill()
88 qh_update (struct ehci_hcd *ehci, struct ehci_qh *qh, struct ehci_qtd *qtd) in qh_update() argument
95 hw->hw_qtd_next = QTD_NEXT(ehci, qtd->qtd_dma); in qh_update()
124 struct ehci_qtd *qtd; in qh_refresh() local
[all …]
Dehci-mem.c38 static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, in ehci_qtd_init() argument
41 memset (qtd, 0, sizeof *qtd); in ehci_qtd_init()
42 qtd->qtd_dma = dma; in ehci_qtd_init()
43 qtd->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); in ehci_qtd_init()
44 qtd->hw_next = EHCI_LIST_END(ehci); in ehci_qtd_init()
45 qtd->hw_alt_next = EHCI_LIST_END(ehci); in ehci_qtd_init()
46 INIT_LIST_HEAD (&qtd->qtd_list); in ehci_qtd_init()
51 struct ehci_qtd *qtd; in ehci_qtd_alloc() local
54 qtd = dma_pool_alloc (ehci->qtd_pool, flags, &dma); in ehci_qtd_alloc()
55 if (qtd != NULL) { in ehci_qtd_alloc()
[all …]
Doxu210hp-hcd.c480 static int oxu_buf_alloc(struct oxu_hcd *oxu, struct ehci_qtd *qtd, int len) in oxu_buf_alloc() argument
514 qtd->buffer = (void *) &oxu->mem->db_pool[i]; in oxu_buf_alloc()
515 qtd->buffer_dma = virt_to_phys(qtd->buffer); in oxu_buf_alloc()
517 qtd->qtd_buffer_len = BUFFER_SIZE * a_blocks; in oxu_buf_alloc()
532 static void oxu_buf_free(struct oxu_hcd *oxu, struct ehci_qtd *qtd) in oxu_buf_free() argument
538 index = (qtd->buffer - (void *) &oxu->mem->db_pool[0]) in oxu_buf_free()
541 qtd->qtd_buffer_len = 0; in oxu_buf_free()
542 qtd->buffer_dma = 0; in oxu_buf_free()
543 qtd->buffer = NULL; in oxu_buf_free()
548 static inline void ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma) in ehci_qtd_init() argument
[all …]
Dehci-dbg.c107 dbg_qtd (const char *label, struct ehci_hcd *ehci, struct ehci_qtd *qtd) in dbg_qtd() argument
109 ehci_dbg(ehci, "%s td %p n%08x %08x t%08x p0=%08x\n", label, qtd, in dbg_qtd()
110 hc32_to_cpup(ehci, &qtd->hw_next), in dbg_qtd()
111 hc32_to_cpup(ehci, &qtd->hw_alt_next), in dbg_qtd()
112 hc32_to_cpup(ehci, &qtd->hw_token), in dbg_qtd()
113 hc32_to_cpup(ehci, &qtd->hw_buf [0])); in dbg_qtd()
114 if (qtd->hw_buf [1]) in dbg_qtd()
116 hc32_to_cpup(ehci, &qtd->hw_buf[1]), in dbg_qtd()
117 hc32_to_cpup(ehci, &qtd->hw_buf[2]), in dbg_qtd()
118 hc32_to_cpup(ehci, &qtd->hw_buf[3]), in dbg_qtd()
[all …]
Disp1760-hcd.h109 struct isp1760_qtd *qtd; member
115 struct isp1760_qtd *qtd);
/drivers/usb/host/whci/
Ddebug.c58 qset->qh.overlay.qtd.status, qset->qh.overlay.qtd.options); in qset_print()
64 i, qset->qtd[i].status, qset->qtd[i].options, in qset_print()
65 (u32)qset->qtd[i].page_list_ptr); in qset_print()
74 if (std->qtd) in qset_print()
76 std->qtd - &qset->qtd[0], in qset_print()
Dqset.c195 struct whc_qtd *qtd; in qset_add_qtds() local
202 if (std->qtd) in qset_add_qtds()
205 qtd = std->qtd = &qset->qtd[qset->td_end]; in qset_add_qtds()
209 memcpy(qtd->setup, std->urb->setup_packet, 8); in qset_add_qtds()
231 qtd->options = cpu_to_le32(QTD_OPT_IOC); in qset_add_qtds()
233 qtd->options = cpu_to_le32(QTD_OPT_IOC | QTD_OPT_SMALL); in qset_add_qtds()
234 qtd->page_list_ptr = cpu_to_le64(std->dma_addr); in qset_add_qtds()
236 qtd->status = cpu_to_le32(status); in qset_add_qtds()
257 qset->qtd[qset->td_start].status = 0; in qset_remove_qtd()
339 if (std->qtd != NULL) in qset_remove_qtds()
[all …]
Dwhcd.h99 struct whc_qtd *qtd; member
203 struct whc_qtd *qtd);
205 struct whc_qtd *qtd);
Dasl.c107 td = &qset->qtd[qset->td_start]; in process_qset()
325 if (std->qtd) in asl_urb_dequeue()
329 std->qtd = NULL; /* so this std is re-added when the qset is */ in asl_urb_dequeue()
Dpzl.c113 td = &qset->qtd[qset->td_start]; in pzl_process_qset()
353 if (std->qtd) in pzl_urb_dequeue()
357 std->qtd = NULL; /* so this std is re-added when the qset is */ in pzl_urb_dequeue()
Dwhci-hc.h143 struct whc_qtd qtd; member
244 struct whc_qtd qtd[WHCI_QSET_TD_MAX]; member