Lines Matching defs:ohci
27 static void ohci_hcd_init (struct ohci_hcd *ohci)
29 ohci->next_statechange = jiffies;
30 spin_lock_init (&ohci->lock);
31 INIT_LIST_HEAD (&ohci->pending);
32 INIT_LIST_HEAD(&ohci->eds_in_use);
37 static int ohci_mem_init (struct ohci_hcd *ohci)
43 if (ohci_to_hcd(ohci)->localmem_pool)
46 ohci->td_cache = dma_pool_create ("ohci_td",
47 ohci_to_hcd(ohci)->self.controller,
51 if (!ohci->td_cache)
53 ohci->ed_cache = dma_pool_create ("ohci_ed",
54 ohci_to_hcd(ohci)->self.controller,
58 if (!ohci->ed_cache) {
59 dma_pool_destroy (ohci->td_cache);
65 static void ohci_mem_cleanup (struct ohci_hcd *ohci)
67 dma_pool_destroy(ohci->td_cache);
68 ohci->td_cache = NULL;
69 dma_pool_destroy(ohci->ed_cache);
70 ohci->ed_cache = NULL;
75 /* ohci "done list" processing needs this mapping */