Lines Matching refs:fhci
25 #include "fhci.h"
41 static struct td *get_empty_td(struct fhci_hcd *fhci)
45 if (!list_empty(&fhci->empty_tds)) {
46 td = list_entry(fhci->empty_tds.next, struct td, node);
47 list_del(fhci->empty_tds.next);
51 fhci_err(fhci, "No memory to allocate to TD\n");
59 void fhci_recycle_empty_td(struct fhci_hcd *fhci, struct td *td)
62 list_add(&td->node, &fhci->empty_tds);
65 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci)
69 if (!list_empty(&fhci->empty_eds)) {
70 ed = list_entry(fhci->empty_eds.next, struct ed, node);
71 list_del(fhci->empty_eds.next);
75 fhci_err(fhci, "No memory to allocate to ED\n");
83 void fhci_recycle_empty_ed(struct fhci_hcd *fhci, struct ed *ed)
86 list_add(&ed->node, &fhci->empty_eds);
89 struct td *fhci_td_fill(struct fhci_hcd *fhci, struct urb *urb,
94 struct td *td = get_empty_td(fhci);