Lines Matching refs:qtd
1608 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_kill_urbs_in_qh_list() local
1611 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_kill_urbs_in_qh_list()
1613 dwc2_host_complete(hsotg, qtd, -ECONNRESET); in dwc2_kill_urbs_in_qh_list()
1614 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_kill_urbs_in_qh_list()
1622 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_qh_list_free() local
1639 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, in dwc2_qh_list_free()
1641 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_qh_list_free()
1880 struct dwc2_qtd *qtd) in dwc2_hcd_urb_enqueue() argument
1905 if (!qtd) in dwc2_hcd_urb_enqueue()
1908 dwc2_hcd_qtd_init(qtd, urb); in dwc2_hcd_urb_enqueue()
1909 retval = dwc2_hcd_qtd_add(hsotg, qtd, qh); in dwc2_hcd_urb_enqueue()
1921 if (qtd->qh->ep_type == USB_ENDPOINT_XFER_BULK && in dwc2_hcd_urb_enqueue()
1922 !(qtd->urb->flags & URB_GIVEBACK_ASAP)) in dwc2_hcd_urb_enqueue()
1944 urb_qtd = urb->qtd; in dwc2_hcd_urb_dequeue()
1999 struct dwc2_qtd *qtd, *qtd_tmp; in dwc2_hcd_endpoint_disable() local
2033 list_for_each_entry_safe(qtd, qtd_tmp, &qh->qtd_list, qtd_list_entry) in dwc2_hcd_endpoint_disable()
2034 dwc2_hcd_qtd_unlink_and_free(hsotg, qtd, qh); in dwc2_hcd_endpoint_disable()
2341 struct dwc2_qtd *qtd, struct dwc2_hcd_urb *urb) in dwc2_hc_init_split() argument
2346 chan->xact_pos = qtd->isoc_split_pos; in dwc2_hc_init_split()
2347 chan->complete_split = qtd->complete_split; in dwc2_hc_init_split()
2355 struct dwc2_qtd *qtd) in dwc2_hc_init_xfer() argument
2357 struct dwc2_hcd_urb *urb = qtd->urb; in dwc2_hc_init_xfer()
2364 switch (qtd->control_phase) { in dwc2_hc_init_xfer()
2379 chan->data_pid_start = qtd->data_toggle; in dwc2_hc_init_xfer()
2418 frame_desc = &urb->iso_descs[qtd->isoc_frame_index]; in dwc2_hc_init_xfer()
2424 qtd->isoc_split_offset; in dwc2_hc_init_xfer()
2428 qtd->isoc_split_offset; in dwc2_hc_init_xfer()
2431 chan->xfer_len = frame_desc->length - qtd->isoc_split_offset; in dwc2_hc_init_xfer()
2582 struct dwc2_qtd *qtd; in dwc2_assign_and_init_hc() local
2603 qtd = list_first_entry(&qh->qtd_list, struct dwc2_qtd, qtd_list_entry); in dwc2_assign_and_init_hc()
2604 urb = qtd->urb; in dwc2_assign_and_init_hc()
2606 qtd->in_process = 1; in dwc2_assign_and_init_hc()
2619 chan->error_state = (qtd->error_count > 0); in dwc2_assign_and_init_hc()
2654 dwc2_hc_init_split(hsotg, chan, qtd, urb); in dwc2_assign_and_init_hc()
2659 dwc2_hc_init_xfer(hsotg, chan, qtd); in dwc2_assign_and_init_hc()
2673 qtd->in_process = 0; in dwc2_assign_and_init_hc()
3839 struct dwc2_qtd *qtd; in dwc2_hcd_dump_state() local
3903 list_for_each_entry(qtd, &chan->qh->qtd_list, qtd_list_entry) { in dwc2_hcd_dump_state()
3904 if (!qtd->in_process) in dwc2_hcd_dump_state()
3906 urb = qtd->urb; in dwc2_hcd_dump_state()
3909 qtd, urb); in dwc2_hcd_dump_state()
4094 void dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd, in dwc2_host_complete() argument
4100 if (!qtd) { in dwc2_host_complete()
4105 if (!qtd->urb) { in dwc2_host_complete()
4110 urb = qtd->urb->priv; in dwc2_host_complete()
4116 urb->actual_length = dwc2_hcd_urb_get_actual_length(qtd->urb); in dwc2_host_complete()
4127 urb->error_count = dwc2_hcd_urb_get_error_count(qtd->urb); in dwc2_host_complete()
4131 qtd->urb, i); in dwc2_host_complete()
4133 dwc2_hcd_urb_get_iso_desc_status(qtd->urb, i); in dwc2_host_complete()
4162 kfree(qtd->urb); in dwc2_host_complete()
4163 qtd->urb = NULL; in dwc2_host_complete()
4565 struct dwc2_qtd *qtd; in _dwc2_hcd_urb_enqueue() local
4654 qtd = kzalloc(sizeof(*qtd), mem_flags); in _dwc2_hcd_urb_enqueue()
4655 if (!qtd) { in _dwc2_hcd_urb_enqueue()
4665 retval = dwc2_hcd_urb_enqueue(hsotg, dwc2_urb, qh, qtd); in _dwc2_hcd_urb_enqueue()
4687 kfree(qtd); in _dwc2_hcd_urb_enqueue()