Home
last modified time | relevance | path

Searched refs:td_list (Results 1 – 28 of 28) sorted by relevance

/linux-4.1.27/drivers/usb/host/
Dfhci-q.c62 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number) in fhci_add_tds_to_ed() argument
67 struct td *td = td_list[i]; in fhci_add_tds_to_ed()
68 list_add_tail(&td->node, &ed->td_list); in fhci_add_tds_to_ed()
71 ed->td_head = td_list[0]; in fhci_add_tds_to_ed()
78 if (!list_empty(&ed->td_list)) in peek_td_from_ed()
79 td = list_entry(ed->td_list.next, struct td, node); in peek_td_from_ed()
115 if (!list_empty(&ed->td_list)) { in fhci_remove_td_from_ed()
116 td = list_entry(ed->td_list.next, struct td, node); in fhci_remove_td_from_ed()
117 list_del_init(ed->td_list.next); in fhci_remove_td_from_ed()
120 if (!list_empty(&ed->td_list)) in fhci_remove_td_from_ed()
[all …]
Dohci-q.c569 list_add_tail (&td->td_list, &td->ed->td_list); in td_fill()
759 list_del (&td->td_list); in td_done()
835 struct list_head *tmp = td->td_list.next; in ed_halted()
849 while (tmp != &ed->td_list) { in ed_halted()
852 next = list_entry (tmp, struct td, td_list); in ed_halted()
853 tmp = next->td_list.next; in ed_halted()
866 list_del(&next->td_list); in ed_halted()
907 list_for_each_entry_continue_reverse(td2, &ed->td_list, td_list) { in add_to_done_list()
992 if (!list_empty(&ed->td_list)) { in finish_unlinks()
996 td = list_first_entry(&ed->td_list, struct td, td_list); in finish_unlinks()
[all …]
Duhci-q.c144 list_add_tail(&td->list, &urbp->td_list); in uhci_add_td_to_urbp()
241 list_for_each_entry(td, &urbp->td_list, list) in uhci_unlink_isochronous_tds()
340 WARN_ON(list_empty(&purbp->td_list)); in uhci_cleanup_queue()
341 ptd = list_entry(purbp->td_list.prev, struct uhci_td, in uhci_cleanup_queue()
343 td = list_entry(urbp->td_list.prev, struct uhci_td, in uhci_cleanup_queue()
360 WARN_ON(list_empty(&urbp->td_list)); in uhci_cleanup_queue()
361 td = list_entry(urbp->td_list.next, struct uhci_td, list); in uhci_cleanup_queue()
399 td = list_entry(urbp->td_list.next, struct uhci_td, list); in uhci_fixup_toggles()
401 td = list_entry(urbp->td_list.prev, struct uhci_td, in uhci_fixup_toggles()
407 list_for_each_entry(td, &urbp->td_list, list) { in uhci_fixup_toggles()
[all …]
Dehci-sched.c1031 INIT_LIST_HEAD(&stream->td_list); in iso_stream_alloc()
1202 INIT_LIST_HEAD (&iso_sched->td_list); in iso_sched_alloc()
1258 list_splice (&iso_sched->td_list, &stream->free_list); in iso_sched_free()
1319 list_add (&itd->itd_list, &sched->td_list); in itd_urb_transaction()
1506 bool empty = list_empty(&stream->td_list); in iso_stream_schedule()
1779 if (unlikely (list_empty(&stream->td_list))) in itd_link_urb()
1799 itd = list_entry (iso_sched->td_list.next, in itd_link_urb()
1801 list_move_tail (&itd->itd_list, &stream->td_list); in itd_link_urb()
1917 if (unlikely(list_is_singular(&stream->td_list))) in itd_complete()
1928 if (list_empty(&stream->td_list)) { in itd_complete()
[all …]
Dohci-hcd.c378 if (list_empty (&ed->td_list)) { in ohci_endpoint_disable()
390 list_empty (&ed->td_list) ? "" : " (has tds)"); in ohci_endpoint_disable()
779 list_for_each_entry(td_next, &ed->td_list, td_list) { in io_watchdog_func()
789 td_next = list_prepare_entry(td, &ed->td_list, td_list); in io_watchdog_func()
790 list_for_each_entry_continue(td_next, &ed->td_list, td_list) { in io_watchdog_func()
Dohci-dbg.c349 list_for_each (tmp, &ed->td_list) { in ohci_dump_ed()
351 td = list_entry (tmp, struct td, td_list); in ohci_dump_ed()
432 list_for_each (entry, &ed->td_list) { in show_list()
435 td = list_entry (entry, struct td, td_list); in show_list()
533 list_for_each (entry, &ed->td_list) in fill_periodic_buffer()
Dxhci-ring.c361 if (ep->ring && !(list_empty(&ep->ring->td_list))) in ring_doorbell_for_active_rings()
369 if (!list_empty(&stream_info->stream_rings[stream_id]->td_list)) in ring_doorbell_for_active_rings()
713 list_del_init(&cur_td->td_list); in xhci_handle_cmd_stop_ep()
761 while (!list_empty(&ring->td_list)) { in xhci_kill_ring_urbs()
762 cur_td = list_first_entry(&ring->td_list, in xhci_kill_ring_urbs()
763 struct xhci_td, td_list); in xhci_kill_ring_urbs()
764 list_del_init(&cur_td->td_list); in xhci_kill_ring_urbs()
1869 list_del_init(&td->td_list); in finish_td()
2286 list_for_each(tmp, &ep_ring->td_list) in handle_tx_event()
2348 if (!list_empty(&ep_ring->td_list)) in handle_tx_event()
[all …]
Dfhci-mem.c37 INIT_LIST_HEAD(&ed->td_list); in init_ed()
Dohci-mem.c128 INIT_LIST_HEAD (&ed->td_list); in ed_alloc()
Dfotg210.h481 struct list_head td_list; member
496 struct list_head td_list; /* queued itds */ member
Dfusbh200.h471 struct list_head td_list; member
486 struct list_head td_list; /* queued itds */ member
Dfhci.h336 struct list_head td_list; /* a list of all queued TD to this pipe */ member
527 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number);
Dimx21-hcd.c579 if (list_empty(&ep_priv->td_list)) in schedule_isoc_etds()
590 td = list_entry(ep_priv->td_list.next, struct td, list); in schedule_isoc_etds()
706 INIT_LIST_HEAD(&ep_priv->td_list); in alloc_isoc_ep()
817 if (list_empty(&ep_priv->td_list)) { in imx21_hc_urb_enqueue_isoc()
820 urb->start_frame = wrap_frame(list_entry(ep_priv->td_list.prev, in imx21_hc_urb_enqueue_isoc()
854 list_add_tail(&td->list, &ep_priv->td_list); in imx21_hc_urb_enqueue_isoc()
899 list_for_each_entry_safe(td, tmp, &ep_priv->td_list, list) { in dequeue_isoc_urb()
Dohci.h49 struct list_head td_list; /* "shadow list" of our TDs */ member
138 struct list_head td_list; /* "shadow list", TDs on same ED */ member
Dehci.h460 struct list_head td_list; member
476 struct list_head td_list; /* queued itds/sitds */ member
Dfhci-sched.c67 if (ed->td_list.next->next != &ed->td_list) { in fhci_transaction_confirm()
69 list_entry(ed->td_list.next->next, struct td, in fhci_transaction_confirm()
Dimx21-hcd.h343 struct list_head td_list; member
Duhci-debug.c138 list_for_each_entry(td, &urbp->td_list, list) { in uhci_show_urbp()
221 struct uhci_td *td = list_entry(urbp->td_list.next, in uhci_show_qh()
Dfusbh200-hcd.c4024 INIT_LIST_HEAD(&stream->td_list); in iso_stream_alloc()
4141 INIT_LIST_HEAD (&iso_sched->td_list); in iso_sched_alloc()
4197 list_splice (&iso_sched->td_list, &stream->free_list); in iso_sched_free()
4257 list_add (&itd->itd_list, &sched->td_list); in itd_urb_transaction()
4332 if (likely (!list_empty (&stream->td_list))) { in iso_stream_schedule()
4521 if (unlikely (list_empty(&stream->td_list))) { in itd_link_urb()
4540 itd = list_entry (iso_sched->td_list.next, in itd_link_urb()
4542 list_move_tail (&itd->itd_list, &stream->td_list); in itd_link_urb()
4652 if (unlikely(list_is_singular(&stream->td_list))) { in itd_complete()
4668 if (list_empty(&stream->td_list)) { in itd_complete()
[all …]
Dfotg210-hcd.c4091 INIT_LIST_HEAD(&stream->td_list); in iso_stream_alloc()
4207 INIT_LIST_HEAD(&iso_sched->td_list); in iso_sched_alloc()
4263 list_splice(&iso_sched->td_list, &stream->free_list); in iso_sched_free()
4323 list_add(&itd->itd_list, &sched->td_list); in itd_urb_transaction()
4398 if (likely(!list_empty(&stream->td_list))) { in iso_stream_schedule()
4585 if (unlikely(list_empty(&stream->td_list))) { in itd_link_urb()
4603 itd = list_entry(iso_sched->td_list.next, in itd_link_urb()
4605 list_move_tail(&itd->itd_list, &stream->td_list); in itd_link_urb()
4718 if (unlikely(list_is_singular(&stream->td_list))) { in itd_complete()
4734 if (list_empty(&stream->td_list)) { in itd_complete()
[all …]
Duhci-hcd.h482 struct list_head td_list; member
Dxhci.h1290 struct list_head td_list; member
1334 struct list_head td_list; member
Dehci-hcd.c963 if (!list_empty(&stream->td_list)) in ehci_endpoint_disable()
Dxhci-mem.c374 INIT_LIST_HEAD(&ring->td_list); in xhci_ring_alloc()
449 INIT_LIST_HEAD(&ring->td_list); in xhci_reinit_cached_ring()
Dxhci.c1567 if (!list_empty(&td->td_list)) in xhci_urb_dequeue()
1568 list_del_init(&td->td_list); in xhci_urb_dequeue()
3035 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { in xhci_check_streams_endpoint()
/linux-4.1.27/drivers/usb/c67x00/
Dc67x00-sched.c73 struct list_head td_list; member
232 list_for_each_entry(td, &c67x00->td_list, td_list) in c67x00_release_urb()
647 list_add_tail(&td->td_list, &c67x00->td_list); in c67x00_create_td()
653 list_del_init(&td->td_list); in c67x00_release_td()
814 if (!list_empty(&c67x00->td_list)) { in c67x00_fill_frame()
817 list_for_each_entry_safe(td, ttd, &c67x00->td_list, td_list) { in c67x00_fill_frame()
908 while (td->td_list.next != &c67x00->td_list) { in c67x00_clear_pipe()
909 td = list_entry(td->td_list.next, struct c67x00_td, td_list); in c67x00_clear_pipe()
1000 list_for_each_entry_safe(td, tmp, &c67x00->td_list, td_list) { in c67x00_check_td_list()
1049 tmp = list_entry(td->td_list.next, typeof(*td), td_list); in c67x00_check_td_list()
[all …]
Dc67x00-hcd.h85 struct list_head td_list; member
Dc67x00-hcd.c368 INIT_LIST_HEAD(&c67x00->td_list); in c67x00_hcd_probe()