Lines Matching refs:cma_heap
26 struct cma_heap { struct
32 struct cma_heap *heap; argument
246 struct cma_heap *cma_heap = buffer->heap; in cma_heap_dma_buf_release() local
256 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
278 struct cma_heap *cma_heap = dma_heap_get_drvdata(heap); in cma_heap_allocate() local
300 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, GFP_KERNEL); in cma_heap_allocate()
337 buffer->heap = cma_heap; in cma_heap_allocate()
357 cma_release(cma_heap->cma, cma_pages, pagecount); in cma_heap_allocate()
370 struct cma_heap *cma_heap; in __add_cma_heap() local
373 cma_heap = kzalloc(sizeof(*cma_heap), GFP_KERNEL); in __add_cma_heap()
374 if (!cma_heap) in __add_cma_heap()
376 cma_heap->cma = cma; in __add_cma_heap()
380 exp_info.priv = cma_heap; in __add_cma_heap()
382 cma_heap->heap = dma_heap_add(&exp_info); in __add_cma_heap()
383 if (IS_ERR(cma_heap->heap)) { in __add_cma_heap()
384 int ret = PTR_ERR(cma_heap->heap); in __add_cma_heap()
386 kfree(cma_heap); in __add_cma_heap()