41 memset (qtd, 0,
sizeof *qtd);
56 ehci_qtd_init(ehci, qtd, dma);
61 static inline void ehci_qtd_free (
struct ehci_hcd *ehci,
struct ehci_qtd *qtd)
71 ehci_dbg (ehci,
"unused qh not empty!\n");
75 ehci_qtd_free (ehci, qh->
dummy);
98 qh->
dummy = ehci_qtd_alloc (ehci, flags);
119 static void ehci_mem_cleanup (
struct ehci_hcd *ehci)
122 qh_destroy(ehci, ehci->
async);
126 qh_destroy(ehci, ehci->
dummy);
159 static int ehci_mem_init (
struct ehci_hcd *ehci,
gfp_t flags)
182 ehci->
async = ehci_qh_alloc (ehci, flags);
218 ehci->
dummy = ehci_qh_alloc(ehci, flags);
222 hw = ehci->
dummy->hw;
242 ehci_dbg (ehci,
"couldn't init memory\n");
243 ehci_mem_cleanup (ehci);