Lines Matching refs:td

53 void fhci_add_td_to_frame(struct fhci_time_frame *frame, struct td *td)
55 list_add_tail(&td->frame_lh, &frame->tds_list);
58 void fhci_add_tds_to_ed(struct ed *ed, struct td **td_list, int number)
63 struct td *td = td_list[i];
64 list_add_tail(&td->node, &ed->td_list);
70 static struct td *peek_td_from_ed(struct ed *ed)
72 struct td *td;
75 td = list_entry(ed->td_list.next, struct td, node);
77 td = NULL;
79 return td;
82 struct td *fhci_remove_td_from_frame(struct fhci_time_frame *frame)
84 struct td *td;
87 td = list_entry(frame->tds_list.next, struct td, frame_lh);
90 td = NULL;
92 return td;
95 struct td *fhci_peek_td_from_frame(struct fhci_time_frame *frame)
97 struct td *td;
100 td = list_entry(frame->tds_list.next, struct td, frame_lh);
102 td = NULL;
104 return td;
107 struct td *fhci_remove_td_from_ed(struct ed *ed)
109 struct td *td;
112 td = list_entry(ed->td_list.next, struct td, node);
117 ed->td_head = list_entry(ed->td_list.next, struct td,
122 td = NULL;
124 return td;
127 struct td *fhci_remove_td_from_done_list(struct fhci_controller_list *p_list)
129 struct td *td;
132 td = list_entry(p_list->done_list.next, struct td, node);
135 td = NULL;
137 return td;
142 struct td *td;
144 td = ed->td_head;
145 list_del_init(&td->node);
149 ed->td_head = list_entry(ed->td_list.next, struct td, node);
154 ed->toggle_carry = td->toggle;
155 list_add_tail(&td->node, &usb->hc_list->done_list);
156 if (td->ioc)
174 ed->td_head = list_entry(ed->td_list.next, struct td, node);
214 void fhci_done_td(struct urb *urb, struct td *td)
216 struct ed *ed = td->ed;
217 u32 cc = td->status;
227 len = urb->iso_frame_desc[td->iso_index].length;
229 len = td->actual_len;
232 urb->iso_frame_desc[td->iso_index].actual_length = len;
233 urb->iso_frame_desc[td->iso_index].status =
242 if (td->error_cnt >= 3)
259 if (td->type != FHCI_TA_SETUP || td->iso_index != 0)
260 urb->actual_length += td->actual_len;
267 struct td *td = peek_td_from_ed(ed);
268 struct urb *urb = td->urb;
272 td = fhci_remove_td_from_ed(ed);
274 if (td->status != USB_TD_INPROGRESS)
275 fhci_done_td(urb, td);