Lines Matching full:ohci
3 * OHCI HCD (Host Controller Driver) for USB.
14 * OHCI deals with three types of memory:
27 static void ohci_hcd_init (struct ohci_hcd *ohci) in ohci_hcd_init() argument
29 ohci->next_statechange = jiffies; in ohci_hcd_init()
30 spin_lock_init (&ohci->lock); in ohci_hcd_init()
31 INIT_LIST_HEAD (&ohci->pending); in ohci_hcd_init()
32 INIT_LIST_HEAD(&ohci->eds_in_use); in ohci_hcd_init()
37 static int ohci_mem_init (struct ohci_hcd *ohci) in ohci_mem_init() argument
43 if (ohci_to_hcd(ohci)->localmem_pool) in ohci_mem_init()
46 ohci->td_cache = dma_pool_create ("ohci_td", in ohci_mem_init()
47 ohci_to_hcd(ohci)->self.controller, in ohci_mem_init()
51 if (!ohci->td_cache) in ohci_mem_init()
53 ohci->ed_cache = dma_pool_create ("ohci_ed", in ohci_mem_init()
54 ohci_to_hcd(ohci)->self.controller, in ohci_mem_init()
58 if (!ohci->ed_cache) { in ohci_mem_init()
59 dma_pool_destroy (ohci->td_cache); in ohci_mem_init()
65 static void ohci_mem_cleanup (struct ohci_hcd *ohci) in ohci_mem_cleanup() argument
67 dma_pool_destroy(ohci->td_cache); in ohci_mem_cleanup()
68 ohci->td_cache = NULL; in ohci_mem_cleanup()
69 dma_pool_destroy(ohci->ed_cache); in ohci_mem_cleanup()
70 ohci->ed_cache = NULL; in ohci_mem_cleanup()
75 /* ohci "done list" processing needs this mapping */