Lines Matching refs:qtd
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()
1875 retval = dwc2_hcd_qtd_add(hsotg, qtd, qh); in dwc2_hcd_urb_enqueue()
1887 if (qtd->qh->ep_type == USB_ENDPOINT_XFER_BULK && in dwc2_hcd_urb_enqueue()
1888 !(qtd->urb->flags & URB_GIVEBACK_ASAP)) in dwc2_hcd_urb_enqueue()
1910 urb_qtd = urb->qtd; in dwc2_hcd_urb_dequeue()
1965 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_hcd_endpoint_disable() local
1999 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, qtd_list_entry) in dwc2_hcd_endpoint_disable()
2000 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_hcd_endpoint_disable()
2307 struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) in dwc2_hc_init_split() argument
2312 chan->xact_pos = qtd->isoc_split_pos; in dwc2_hc_init_split()
2313 chan->complete_split = qtd->complete_split; in dwc2_hc_init_split()
2321 struct dwc2_qtd *qtd) in dwc2_hc_init_xfer() argument
2323 struct dwc2_hcd_urb *urb = qtd->urb; in dwc2_hc_init_xfer()
2330 switch (qtd->control_phase) { in dwc2_hc_init_xfer()
2345 chan->data_pid_start = qtd->data_toggle; in dwc2_hc_init_xfer()
2384 frame_desc = &urb->iso_descs[qtd->isoc_frame_index]; in dwc2_hc_init_xfer()
2390 qtd->isoc_split_offset; in dwc2_hc_init_xfer()
2394 qtd->isoc_split_offset; in dwc2_hc_init_xfer()
2397 chan->xfer_len = frame_desc->length - qtd->isoc_split_offset; in dwc2_hc_init_xfer()
2548 struct dwc2_qtd *qtd; in dwc2_assign_and_init_hc() local
2569 qtd = list_first_entry(&qh->qtd_list, struct dwc2_qtd, qtd_list_entry); in dwc2_assign_and_init_hc()
2570 urb = qtd->urb; in dwc2_assign_and_init_hc()
2572 qtd->in_process = 1; in dwc2_assign_and_init_hc()
2585 chan->error_state = (qtd->error_count > 0); in dwc2_assign_and_init_hc()
2620 dwc2_hc_init_split(hsotg, chan, qtd, urb); in dwc2_assign_and_init_hc()
2625 dwc2_hc_init_xfer(hsotg, chan, qtd); in dwc2_assign_and_init_hc()
2639 qtd->in_process = 0; in dwc2_assign_and_init_hc()
3864 struct dwc2_qtd *qtd; in dwc2_hcd_dump_state() local
3928 list_for_each_entry(qtd, &chan->qh->qtd_list, qtd_list_entry) { in dwc2_hcd_dump_state()
3929 if (!qtd->in_process) in dwc2_hcd_dump_state()
3931 urb = qtd->urb; in dwc2_hcd_dump_state()
3934 qtd, urb); in dwc2_hcd_dump_state()
4119 void dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, in dwc2_host_complete() argument
4125 if (!qtd) { in dwc2_host_complete()
4130 if (!qtd->urb) { in dwc2_host_complete()
4135 urb = qtd->urb->priv; in dwc2_host_complete()
4141 urb->actual_length = dwc2_hcd_urb_get_actual_length(qtd->urb); in dwc2_host_complete()
4153 urb->start_frame = qtd->qh->start_active_frame; in dwc2_host_complete()
4154 urb->error_count = dwc2_hcd_urb_get_error_count(qtd->urb); in dwc2_host_complete()
4158 qtd->urb, i); in dwc2_host_complete()
4160 dwc2_hcd_urb_get_iso_desc_status(qtd->urb, i); in dwc2_host_complete()
4189 kfree(qtd->urb); in dwc2_host_complete()
4190 qtd->urb = NULL; in dwc2_host_complete()
4631 struct dwc2_qtd *qtd; in _dwc2_hcd_urb_enqueue() local
4749 qtd = kzalloc(sizeof(*qtd), mem_flags); in _dwc2_hcd_urb_enqueue()
4750 if (!qtd) { in _dwc2_hcd_urb_enqueue()
4760 retval = dwc2_hcd_urb_enqueue(hsotg, dwc2_urb, qh, qtd); in _dwc2_hcd_urb_enqueue()
4782 kfree(qtd); in _dwc2_hcd_urb_enqueue()