/linux-4.4.14/drivers/usb/host/ |
H A D | fhci-q.c | 62 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number) fhci_add_tds_to_ed() argument 67 struct td *td = td_list[i]; fhci_add_tds_to_ed() 68 list_add_tail(&td->node, &ed->td_list); fhci_add_tds_to_ed() 71 ed->td_head = td_list[0]; fhci_add_tds_to_ed() 78 if (!list_empty(&ed->td_list)) peek_td_from_ed() 79 td = list_entry(ed->td_list.next, struct td, node); peek_td_from_ed() 115 if (!list_empty(&ed->td_list)) { fhci_remove_td_from_ed() 116 td = list_entry(ed->td_list.next, struct td, node); fhci_remove_td_from_ed() 117 list_del_init(ed->td_list.next); fhci_remove_td_from_ed() 120 if (!list_empty(&ed->td_list)) fhci_remove_td_from_ed() 121 ed->td_head = list_entry(ed->td_list.next, struct td, fhci_remove_td_from_ed() 152 if (!list_empty(&ed->td_list)) fhci_move_td_from_ed_to_done_list() 153 ed->td_head = list_entry(ed->td_list.next, struct td, node); fhci_move_td_from_ed_to_done_list() 177 if (!list_empty(&ed->td_list)) free_urb_priv() 178 ed->td_head = list_entry(ed->td_list.next, struct td, node); free_urb_priv()
|
H A D | ohci-q.c | 570 list_add_tail (&td->td_list, &td->ed->td_list); td_fill() 760 list_del (&td->td_list); td_done() 836 struct list_head *tmp = td->td_list.next; ed_halted() 850 while (tmp != &ed->td_list) { ed_halted() 853 next = list_entry (tmp, struct td, td_list); ed_halted() 854 tmp = next->td_list.next; ed_halted() 867 list_del(&next->td_list); ed_halted() 908 list_for_each_entry_continue_reverse(td2, &ed->td_list, td_list) { add_to_done_list() 943 * add to ours. ed->td_list changes later. update_done_list() 993 if (!list_empty(&ed->td_list)) { finish_unlinks() 997 td = list_first_entry(&ed->td_list, struct td, td_list); finish_unlinks() 1033 list_for_each_safe (entry, tmp, &ed->td_list) { finish_unlinks() 1040 td = list_entry (entry, struct td, td_list); finish_unlinks() 1074 if (completed && !list_empty (&ed->td_list)) finish_unlinks() 1082 if (list_empty(&ed->td_list)) { finish_unlinks() 1161 if (list_empty(&ed->td_list)) { takeback_td() 1168 td = list_entry(ed->td_list.next, struct td, td_list); takeback_td()
|
H A D | uhci-q.c | 144 list_add_tail(&td->list, &urbp->td_list); uhci_add_td_to_urbp() 241 list_for_each_entry(td, &urbp->td_list, list) uhci_unlink_isochronous_tds() 340 WARN_ON(list_empty(&purbp->td_list)); uhci_cleanup_queue() 341 ptd = list_entry(purbp->td_list.prev, struct uhci_td, uhci_cleanup_queue() 343 td = list_entry(urbp->td_list.prev, struct uhci_td, uhci_cleanup_queue() 360 WARN_ON(list_empty(&urbp->td_list)); uhci_cleanup_queue() 361 td = list_entry(urbp->td_list.next, struct uhci_td, list); uhci_cleanup_queue() 399 td = list_entry(urbp->td_list.next, struct uhci_td, list); uhci_fixup_toggles() 401 td = list_entry(urbp->td_list.prev, struct uhci_td, uhci_fixup_toggles() 407 list_for_each_entry(td, &urbp->td_list, list) { uhci_fixup_toggles() 490 struct uhci_td *td = list_entry(urbp->td_list.next, uhci_activate_qh() 736 INIT_LIST_HEAD(&urbp->td_list); uhci_alloc_urb_priv() 750 list_for_each_entry_safe(td, tmp, &urbp->td_list, list) { uhci_free_urb_priv() 908 /* Remove the dummy TD from the td_list so it doesn't get freed */ uhci_submit_control() 1052 /* Remove the dummy TD from the td_list so it doesn't get freed */ uhci_submit_common() 1130 td = list_entry(urbp->td_list.prev, struct uhci_td, list); uhci_fixup_short_transfer() 1136 WARN_ON(list_empty(&urbp->td_list)); uhci_fixup_short_transfer() 1150 if (list_empty(&urbp->td_list)) uhci_fixup_short_transfer() 1153 tmp = urbp->td_list.prev; uhci_fixup_short_transfer() 1158 while (tmp != &urbp->td_list) { uhci_fixup_short_transfer() 1179 list_for_each_entry_safe(td, tmp, &urbp->td_list, list) { uhci_result_common() 1214 if (td->list.next != urbp->td_list.prev) uhci_result_common() 1223 else if (&td->list != urbp->td_list.prev) uhci_result_common() 1354 list_for_each_entry(td, &urbp->td_list, list) { uhci_submit_isochronous() 1376 list_for_each_entry_safe(td, tmp, &urbp->td_list, list) { uhci_result_isochronous() 1644 struct uhci_td *td = list_entry(urbp->td_list.next, uhci_scan_qh() 1693 td = list_entry(urbp->td_list.next, struct uhci_td, list); uhci_advance_check()
|
H A D | ohci-dbg.c | 346 /* use ed->td_list because HC concurrently modifies ohci_dump_ed() 349 list_for_each (tmp, &ed->td_list) { ohci_dump_ed() 351 td = list_entry (tmp, struct td, td_list); ohci_dump_ed() 432 list_for_each (entry, &ed->td_list) { show_list() 435 td = list_entry (entry, struct td, td_list); show_list() 535 list_for_each (entry, &ed->td_list) fill_periodic_buffer()
|
H A D | fhci-mem.c | 37 INIT_LIST_HEAD(&ed->td_list); init_ed()
|
H A D | ohci-mem.c | 128 INIT_LIST_HEAD (&ed->td_list); ed_alloc()
|
H A D | ohci-hcd.c | 379 if (list_empty (&ed->td_list)) { ohci_endpoint_disable() 391 list_empty (&ed->td_list) ? "" : " (has tds)"); ohci_endpoint_disable() 780 list_for_each_entry(td_next, &ed->td_list, td_list) { io_watchdog_func() 790 td_next = list_prepare_entry(td, &ed->td_list, td_list); io_watchdog_func() 791 list_for_each_entry_continue(td_next, &ed->td_list, td_list) { io_watchdog_func()
|
H A D | ehci-sched.c | 1031 INIT_LIST_HEAD(&stream->td_list); iso_stream_alloc() 1202 INIT_LIST_HEAD (&iso_sched->td_list); iso_sched_alloc() 1258 list_splice (&iso_sched->td_list, &stream->free_list); iso_sched_free() 1319 list_add (&itd->itd_list, &sched->td_list); itd_urb_transaction() 1506 bool empty = list_empty(&stream->td_list); iso_stream_schedule() 1779 if (unlikely (list_empty(&stream->td_list))) itd_link_urb() 1795 // BUG_ON (list_empty (&iso_sched->td_list)); itd_link_urb() 1799 itd = list_entry (iso_sched->td_list.next, itd_link_urb() 1801 list_move_tail (&itd->itd_list, &stream->td_list); itd_link_urb() 1898 list_for_each_entry (itd, &stream->td_list, itd_list) itd_complete() 1917 if (unlikely(list_is_singular(&stream->td_list))) itd_complete() 1928 if (list_empty(&stream->td_list)) { itd_complete() 2112 list_add (&sitd->sitd_list, &iso_sched->td_list); sitd_urb_transaction() 2181 if (list_empty(&stream->td_list)) sitd_link_urb() 2199 BUG_ON (list_empty (&sched->td_list)); sitd_link_urb() 2203 sitd = list_entry (sched->td_list.next, sitd_link_urb() 2205 list_move_tail (&sitd->sitd_list, &stream->td_list); sitd_link_urb() 2279 list_for_each_entry (sitd, &stream->td_list, sitd_list) sitd_complete() 2298 if (list_is_singular(&stream->td_list)) sitd_complete() 2309 if (list_empty(&stream->td_list)) { sitd_complete()
|
H A D | imx21-hcd.c | 579 if (list_empty(&ep_priv->td_list)) schedule_isoc_etds() 590 td = list_entry(ep_priv->td_list.next, struct td, list); schedule_isoc_etds() 706 INIT_LIST_HEAD(&ep_priv->td_list); alloc_isoc_ep() 817 if (list_empty(&ep_priv->td_list)) { imx21_hc_urb_enqueue_isoc() 820 urb->start_frame = wrap_frame(list_entry(ep_priv->td_list.prev, imx21_hc_urb_enqueue_isoc() 854 list_add_tail(&td->list, &ep_priv->td_list); imx21_hc_urb_enqueue_isoc() 899 list_for_each_entry_safe(td, tmp, &ep_priv->td_list, list) { dequeue_isoc_urb()
|
H A D | xhci-ring.c | 361 if (ep->ring && !(list_empty(&ep->ring->td_list))) ring_doorbell_for_active_rings() 369 if (!list_empty(&stream_info->stream_rings[stream_id]->td_list)) ring_doorbell_for_active_rings() 687 * removed from the td_list for that endpoint. In xhci_handle_cmd_stop_ep() 713 list_del_init(&cur_td->td_list); xhci_handle_cmd_stop_ep() 761 while (!list_empty(&ring->td_list)) { xhci_kill_ring_urbs() 762 cur_td = list_first_entry(&ring->td_list, xhci_kill_ring_urbs() 763 struct xhci_td, td_list); xhci_kill_ring_urbs() 764 list_del_init(&cur_td->td_list); xhci_kill_ring_urbs() 1872 list_del_init(&td->td_list); finish_td() 2322 list_for_each(tmp, &ep_ring->td_list) 2387 if (!list_empty(&ep_ring->td_list)) 2395 if (!list_empty(&ep_ring->td_list)) 2433 if (list_empty(&ep_ring->td_list)) { 2451 xhci_dbg(xhci, "td_list is empty while skip " 2467 td = list_entry(ep_ring->td_list.next, struct xhci_td, td_list); 2920 INIT_LIST_HEAD(&td->td_list); prepare_transfer() 2931 list_add_tail(&td->td_list, &ep_ring->td_list); prepare_transfer() 3870 list_del_init(&urb_priv->td[i]->td_list); xhci_queue_isoc_tx() 3955 if (HCC_CFC(xhci->hcc_params) && !list_empty(&ep_ring->td_list)) { xhci_queue_isoc_tx_prepare()
|
H A D | fhci-sched.c | 67 if (ed->td_list.next->next != &ed->td_list) { fhci_transaction_confirm() 69 list_entry(ed->td_list.next->next, struct td, fhci_transaction_confirm()
|
H A D | uhci-debug.c | 138 list_for_each_entry(td, &urbp->td_list, list) { uhci_show_urbp() 221 struct uhci_td *td = list_entry(urbp->td_list.next, uhci_show_qh()
|
H A D | fhci.h | 336 struct list_head td_list; /* a list of all queued TD to this pipe */ member in struct:ed 527 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number);
|
H A D | fotg210.h | 487 struct list_head td_list; member in struct:fotg210_iso_sched 502 struct list_head td_list; /* queued itds */ member in struct:fotg210_iso_stream
|
H A D | ohci.h | 49 struct list_head td_list; /* "shadow list" of our TDs */ member in struct:ed 138 struct list_head td_list; /* "shadow list", TDs on same ED */ member in struct:td
|
H A D | imx21-hcd.h | 343 struct list_head td_list; member in struct:ep_priv
|
H A D | fotg210-hcd.c | 3942 INIT_LIST_HEAD(&stream->td_list); iso_stream_alloc() 4051 INIT_LIST_HEAD(&iso_sched->td_list); iso_sched_alloc() 4100 list_splice(&iso_sched->td_list, &stream->free_list); iso_sched_free() 4155 list_add(&itd->itd_list, &sched->td_list); itd_urb_transaction() 4217 if (likely(!list_empty(&stream->td_list))) { iso_stream_schedule() 4393 if (unlikely(list_empty(&stream->td_list))) { itd_link_urb() 4411 itd = list_entry(iso_sched->td_list.next, itd_link_urb() 4413 list_move_tail(&itd->itd_list, &stream->td_list); itd_link_urb() 4513 * list_for_each_entry (itd, &stream->td_list, itd_list) itd_complete() 4526 if (unlikely(list_is_singular(&stream->td_list))) { itd_complete() 4542 if (list_empty(&stream->td_list)) { itd_complete() 5428 if (!list_empty(&stream->td_list)) fotg210_endpoint_disable()
|
H A D | ehci.h | 461 struct list_head td_list; member in struct:ehci_iso_sched 477 struct list_head td_list; /* queued itds/sitds */ member in struct:ehci_iso_stream
|
H A D | uhci-hcd.h | 482 struct list_head td_list; member in struct:urb_priv
|
H A D | xhci-mem.c | 374 INIT_LIST_HEAD(&ring->td_list); xhci_ring_alloc() 449 INIT_LIST_HEAD(&ring->td_list); xhci_reinit_cached_ring()
|
H A D | xhci.h | 1341 struct list_head td_list; member in struct:xhci_td 1385 struct list_head td_list; member in struct:xhci_ring
|
H A D | ehci-hcd.c | 964 if (!list_empty(&stream->td_list)) ehci_endpoint_disable()
|
H A D | xhci.c | 1557 if (!list_empty(&td->td_list)) xhci_urb_dequeue() 1558 list_del_init(&td->td_list); xhci_urb_dequeue() 3025 if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) { xhci_check_streams_endpoint()
|
/linux-4.4.14/drivers/usb/c67x00/ |
H A D | c67x00-sched.c | 73 struct list_head td_list; member in struct:c67x00_td 232 list_for_each_entry(td, &c67x00->td_list, td_list) c67x00_release_urb() 647 list_add_tail(&td->td_list, &c67x00->td_list); c67x00_create_td() 653 list_del_init(&td->td_list); c67x00_release_td() 814 if (!list_empty(&c67x00->td_list)) { c67x00_fill_frame() 817 list_for_each_entry_safe(td, ttd, &c67x00->td_list, td_list) { c67x00_fill_frame() 908 while (td->td_list.next != &c67x00->td_list) { c67x00_clear_pipe() 909 td = list_entry(td->td_list.next, struct c67x00_td, td_list); c67x00_clear_pipe() 1000 list_for_each_entry_safe(td, tmp, &c67x00->td_list, td_list) { c67x00_check_td_list() 1049 tmp = list_entry(td->td_list.next, typeof(*td), td_list); c67x00_check_td_list() 1083 if (list_empty(&c67x00->td_list)) c67x00_send_frame() 1088 list_for_each_entry(td, &c67x00->td_list, td_list) { c67x00_send_frame() 1089 if (td->td_list.next == &c67x00->td_list) c67x00_send_frame() 1116 if (!list_empty(&c67x00->td_list)) c67x00_do_work() 1131 if (!list_empty(&c67x00->td_list)) c67x00_do_work()
|
H A D | c67x00-hcd.h | 81 /* USB bandwidth allocated to td_list */ 85 struct list_head td_list; member in struct:c67x00_hcd
|
H A D | c67x00-hcd.c | 368 INIT_LIST_HEAD(&c67x00->td_list); c67x00_hcd_probe()
|