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