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