Lines Matching refs:ed
30 static void init_ed(struct ed *ed) in init_ed() argument
32 memset(ed, 0, sizeof(*ed)); in init_ed()
33 INIT_LIST_HEAD(&ed->td_list); in init_ed()
34 INIT_LIST_HEAD(&ed->node); in init_ed()
61 struct ed *fhci_get_empty_ed(struct fhci_hcd *fhci) in fhci_get_empty_ed()
63 struct ed *ed; in fhci_get_empty_ed() local
66 ed = list_entry(fhci->empty_eds.next, struct ed, node); in fhci_get_empty_ed()
69 ed = kmalloc(sizeof(*ed), GFP_ATOMIC); in fhci_get_empty_ed()
70 if (!ed) in fhci_get_empty_ed()
73 init_ed(ed); in fhci_get_empty_ed()
76 return ed; in fhci_get_empty_ed()
79 void fhci_recycle_empty_ed(struct fhci_hcd *fhci, struct ed *ed) in fhci_recycle_empty_ed() argument
81 init_ed(ed); in fhci_recycle_empty_ed()
82 list_add(&ed->node, &fhci->empty_eds); in fhci_recycle_empty_ed()
86 struct urb_priv *urb_priv, struct ed *ed, u16 index, in fhci_td_fill() argument
96 td->ed = ed; in fhci_td_fill()