Lines Matching refs:cma_heap
26 struct cma_heap { struct
32 struct cma_heap *heap; argument
248 struct cma_heap *cma_heap = buffer->heap; in cma_heap_dma_buf_release() local
259 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
281 struct cma_heap *cma_heap = dma_heap_get_drvdata(heap); in cma_heap_allocate() local
303 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, false); in cma_heap_allocate()
340 buffer->heap = cma_heap; in cma_heap_allocate()
359 cma_release(cma_heap->cma, cma_pages, pagecount); in cma_heap_allocate()
372 struct cma_heap *cma_heap; in __add_cma_heap() local
375 cma_heap = kzalloc(sizeof(*cma_heap), GFP_KERNEL); in __add_cma_heap()
376 if (!cma_heap) in __add_cma_heap()
378 cma_heap->cma = cma; in __add_cma_heap()
382 exp_info.priv = cma_heap; in __add_cma_heap()
384 cma_heap->heap = dma_heap_add(&exp_info); in __add_cma_heap()
385 if (IS_ERR(cma_heap->heap)) { in __add_cma_heap()
386 int ret = PTR_ERR(cma_heap->heap); in __add_cma_heap()
388 kfree(cma_heap); in __add_cma_heap()