Lines Matching refs:ed
58 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number) in fhci_add_tds_to_ed() argument
64 list_add_tail(&td->node, &ed->td_list); in fhci_add_tds_to_ed()
66 if (ed->td_head == NULL) in fhci_add_tds_to_ed()
67 ed->td_head = td_list[0]; in fhci_add_tds_to_ed()
70 static struct td *peek_td_from_ed(struct ed *ed) in peek_td_from_ed() argument
74 if (!list_empty(&ed->td_list)) in peek_td_from_ed()
75 td = list_entry(ed->td_list.next, struct td, node); in peek_td_from_ed()
107 struct td *fhci_remove_td_from_ed(struct ed *ed) in fhci_remove_td_from_ed() argument
111 if (!list_empty(&ed->td_list)) { in fhci_remove_td_from_ed()
112 td = list_entry(ed->td_list.next, struct td, node); in fhci_remove_td_from_ed()
113 list_del_init(ed->td_list.next); in fhci_remove_td_from_ed()
116 if (!list_empty(&ed->td_list)) in fhci_remove_td_from_ed()
117 ed->td_head = list_entry(ed->td_list.next, struct td, in fhci_remove_td_from_ed()
120 ed->td_head = NULL; in fhci_remove_td_from_ed()
140 void fhci_move_td_from_ed_to_done_list(struct fhci_usb *usb, struct ed *ed) in fhci_move_td_from_ed_to_done_list() argument
144 td = ed->td_head; in fhci_move_td_from_ed_to_done_list()
148 if (!list_empty(&ed->td_list)) in fhci_move_td_from_ed_to_done_list()
149 ed->td_head = list_entry(ed->td_list.next, struct td, node); in fhci_move_td_from_ed_to_done_list()
151 ed->td_head = NULL; in fhci_move_td_from_ed_to_done_list()
152 ed->state = FHCI_ED_SKIP; in fhci_move_td_from_ed_to_done_list()
154 ed->toggle_carry = td->toggle; in fhci_move_td_from_ed_to_done_list()
165 struct ed *ed = urb_priv->ed; in free_urb_priv() local
173 if (!list_empty(&ed->td_list)) in free_urb_priv()
174 ed->td_head = list_entry(ed->td_list.next, struct td, node); in free_urb_priv()
176 ed->td_head = NULL; in free_urb_priv()
183 if (ed->td_head == NULL) in free_urb_priv()
184 list_del_init(&ed->node); in free_urb_priv()
216 struct ed *ed = td->ed; in fhci_done_td() local
220 if (ed->mode == FHCI_TF_ISO) { in fhci_done_td()
250 ed->state = FHCI_ED_OPER; in fhci_done_td()
265 void fhci_del_ed_list(struct fhci_hcd *fhci, struct ed *ed) in fhci_del_ed_list() argument
267 struct td *td = peek_td_from_ed(ed); in fhci_del_ed_list()
272 td = fhci_remove_td_from_ed(ed); in fhci_del_ed_list()