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