Lines Matching refs:ed
62 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number)
68 list_add_tail(&td->node, &ed->td_list);
70 if (ed->td_head == NULL)
71 ed->td_head = td_list[0];
74 static struct td *peek_td_from_ed(struct ed *ed)
78 if (!list_empty(&ed->td_list))
79 td = list_entry(ed->td_list.next, struct td, node);
111 struct td *fhci_remove_td_from_ed(struct ed *ed)
115 if (!list_empty(&ed->td_list)) {
116 td = list_entry(ed->td_list.next, struct td, node);
117 list_del_init(ed->td_list.next);
120 if (!list_empty(&ed->td_list))
121 ed->td_head = list_entry(ed->td_list.next, struct td,
124 ed->td_head = NULL;
144 void fhci_move_td_from_ed_to_done_list(struct fhci_usb *usb, struct ed *ed)
148 td = ed->td_head;
152 if (!list_empty(&ed->td_list))
153 ed->td_head = list_entry(ed->td_list.next, struct td, node);
155 ed->td_head = NULL;
156 ed->state = FHCI_ED_SKIP;
158 ed->toggle_carry = td->toggle;
169 struct ed *ed = urb_priv->ed;
177 if (!list_empty(&ed->td_list))
178 ed->td_head = list_entry(ed->td_list.next, struct td, node);
180 ed->td_head = NULL;
187 if (ed->td_head == NULL)
188 list_del_init(&ed->node);
220 struct ed *ed = td->ed;
224 if (ed->mode == FHCI_TF_ISO) {
254 ed->state = FHCI_ED_OPER;
269 void fhci_del_ed_list(struct fhci_hcd *fhci, struct ed *ed)
271 struct td *td = peek_td_from_ed(ed);
276 td = fhci_remove_td_from_ed(ed);