Lines Matching refs:cur_td

453 		unsigned int stream_id, struct xhci_td *cur_td,  in xhci_find_new_dequeue_state()  argument
472 state->new_deq_seg = find_trb_seg(cur_td->start_seg, in xhci_find_new_dequeue_state()
485 state->new_deq_ptr = cur_td->last_trb; in xhci_find_new_dequeue_state()
524 struct xhci_td *cur_td) in td_to_noop() argument
529 for (cur_seg = cur_td->start_seg, cur_trb = cur_td->first_trb; in td_to_noop()
559 if (cur_trb == cur_td->last_trb) in td_to_noop()
609 struct xhci_td *cur_td, int status, char *adjective) in xhci_giveback_urb_in_irq() argument
615 urb = cur_td->urb; in xhci_giveback_urb_in_irq()
659 struct xhci_td *cur_td = NULL; in handle_stopped_endpoint() local
696 cur_td = list_entry(entry, struct xhci_td, cancelled_td_list); in handle_stopped_endpoint()
698 cur_td->first_trb, in handle_stopped_endpoint()
699 (unsigned long long)xhci_trb_virt_to_dma(cur_td->start_seg, cur_td->first_trb)); in handle_stopped_endpoint()
700 ep_ring = xhci_urb_to_transfer_ring(xhci, cur_td->urb); in handle_stopped_endpoint()
715 cur_td->urb, in handle_stopped_endpoint()
716 cur_td->urb->stream_id); in handle_stopped_endpoint()
723 if (cur_td == ep->stopped_td) in handle_stopped_endpoint()
725 cur_td->urb->stream_id, in handle_stopped_endpoint()
726 cur_td, &deq_state); in handle_stopped_endpoint()
728 td_to_noop(xhci, ep_ring, cur_td); in handle_stopped_endpoint()
735 list_del(&cur_td->td_list); in handle_stopped_endpoint()
737 last_unlinked_td = cur_td; in handle_stopped_endpoint()
761 cur_td = list_entry(ep->cancelled_td_list.next, in handle_stopped_endpoint()
763 list_del(&cur_td->cancelled_td_list); in handle_stopped_endpoint()
769 xhci_giveback_urb_in_irq(xhci, cur_td, 0, "cancelled"); in handle_stopped_endpoint()
776 } while (cur_td != last_unlinked_td); in handle_stopped_endpoint()
806 struct xhci_td *cur_td; in xhci_stop_endpoint_command_watchdog() local
868 cur_td = list_first_entry(&ring->td_list, in xhci_stop_endpoint_command_watchdog()
871 list_del(&cur_td->td_list); in xhci_stop_endpoint_command_watchdog()
872 if (!list_empty(&cur_td->cancelled_td_list)) in xhci_stop_endpoint_command_watchdog()
873 list_del(&cur_td->cancelled_td_list); in xhci_stop_endpoint_command_watchdog()
874 xhci_giveback_urb_in_irq(xhci, cur_td, in xhci_stop_endpoint_command_watchdog()
878 cur_td = list_first_entry( in xhci_stop_endpoint_command_watchdog()
882 list_del(&cur_td->cancelled_td_list); in xhci_stop_endpoint_command_watchdog()
883 xhci_giveback_urb_in_irq(xhci, cur_td, in xhci_stop_endpoint_command_watchdog()