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