Lines Matching refs:hcd
60 int hcd_buffer_create(struct usb_hcd *hcd) in hcd_buffer_create() argument
65 if (!hcd->self.controller->dma_mask && in hcd_buffer_create()
66 !(hcd->driver->flags & HCD_LOCAL_MEM)) in hcd_buffer_create()
74 hcd->pool[i] = dma_pool_create(name, hcd->self.controller, in hcd_buffer_create()
76 if (!hcd->pool[i]) { in hcd_buffer_create()
77 hcd_buffer_destroy(hcd); in hcd_buffer_create()
92 void hcd_buffer_destroy(struct usb_hcd *hcd) in hcd_buffer_destroy() argument
97 struct dma_pool *pool = hcd->pool[i]; in hcd_buffer_destroy()
101 hcd->pool[i] = NULL; in hcd_buffer_destroy()
118 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_alloc() local
123 !(hcd->driver->flags & HCD_LOCAL_MEM)) { in hcd_buffer_alloc()
130 return dma_pool_alloc(hcd->pool[i], mem_flags, dma); in hcd_buffer_alloc()
132 return dma_alloc_coherent(hcd->self.controller, size, dma, mem_flags); in hcd_buffer_alloc()
142 struct usb_hcd *hcd = bus_to_hcd(bus); in hcd_buffer_free() local
149 !(hcd->driver->flags & HCD_LOCAL_MEM)) { in hcd_buffer_free()
156 dma_pool_free(hcd->pool[i], addr, dma); in hcd_buffer_free()
160 dma_free_coherent(hcd->self.controller, size, addr, dma); in hcd_buffer_free()