Lines Matching refs:hc
77 dma_to_td (struct ohci_hcd *hc, dma_addr_t td_dma) in dma_to_td() argument
82 td = hc->td_hash [TD_HASH_FUNC(td_dma)]; in dma_to_td()
90 td_alloc (struct ohci_hcd *hc, gfp_t mem_flags) in td_alloc() argument
94 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_alloc()
100 td = dma_pool_zalloc(hc->td_cache, mem_flags, &dma); in td_alloc()
103 td->hwNextTD = cpu_to_hc32 (hc, dma); in td_alloc()
111 td_free (struct ohci_hcd *hc, struct td *td) in td_free() argument
113 struct td **prev = &hc->td_hash [TD_HASH_FUNC (td->td_dma)]; in td_free()
114 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_free()
120 else if ((td->hwINFO & cpu_to_hc32(hc, TD_DONE)) != 0) in td_free()
121 ohci_dbg (hc, "no hash for td %p\n", td); in td_free()
127 dma_pool_free(hc->td_cache, td, td->td_dma); in td_free()
134 ed_alloc (struct ohci_hcd *hc, gfp_t mem_flags) in ed_alloc() argument
138 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_alloc()
144 ed = dma_pool_zalloc(hc->ed_cache, mem_flags, &dma); in ed_alloc()
153 ed_free (struct ohci_hcd *hc, struct ed *ed) in ed_free() argument
155 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_free()
161 dma_pool_free(hc->ed_cache, ed, ed->dma); in ed_free()