Lines Matching refs:fhci
40 static struct td *get_empty_td(struct fhci_hcd *fhci) in get_empty_td() argument
44 if (!list_empty(&fhci->empty_tds)) { in get_empty_td()
45 td = list_entry(fhci->empty_tds.next, struct td, node); in get_empty_td()
46 list_del(fhci->empty_tds.next); in get_empty_td()
50 fhci_err(fhci, "No memory to allocate to TD\n"); in get_empty_td()
58 void fhci_recycle_empty_td(struct fhci_hcd *fhci, struct td *td) in fhci_recycle_empty_td() argument
61 list_add(&td->node, &fhci->empty_tds); in fhci_recycle_empty_td()
64 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci) in fhci_get_empty_ed() argument
68 if (!list_empty(&fhci->empty_eds)) { in fhci_get_empty_ed()
69 ed = list_entry(fhci->empty_eds.next, struct ed, node); in fhci_get_empty_ed()
70 list_del(fhci->empty_eds.next); in fhci_get_empty_ed()
74 fhci_err(fhci, "No memory to allocate to ED\n"); in fhci_get_empty_ed()
82 void fhci_recycle_empty_ed(struct fhci_hcd *fhci, struct ed *ed) in fhci_recycle_empty_ed() argument
85 list_add(&ed->node, &fhci->empty_eds); in fhci_recycle_empty_ed()
88 struct td *fhci_td_fill(struct fhci_hcd *fhci, struct urb *urb, in fhci_td_fill() argument
93 struct td *td = get_empty_td(fhci); in fhci_td_fill()