Lines Matching refs:fhci
21 #include "fhci.h"
37 static struct td *get_empty_td(struct fhci_hcd *fhci)
41 if (!list_empty(&fhci->empty_tds)) {
42 td = list_entry(fhci->empty_tds.next, struct td, node);
43 list_del(fhci->empty_tds.next);
47 fhci_err(fhci, "No memory to allocate to TD\n");
55 void fhci_recycle_empty_td(struct fhci_hcd *fhci, struct td *td)
58 list_add(&td->node, &fhci->empty_tds);
61 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci)
65 if (!list_empty(&fhci->empty_eds)) {
66 ed = list_entry(fhci->empty_eds.next, struct ed, node);
67 list_del(fhci->empty_eds.next);
71 fhci_err(fhci, "No memory to allocate to ED\n");
79 void fhci_recycle_empty_ed(struct fhci_hcd *fhci, struct ed *ed)
82 list_add(&ed->node, &fhci->empty_eds);
85 struct td *fhci_td_fill(struct fhci_hcd *fhci, struct urb *urb,
90 struct td *td = get_empty_td(fhci);