Lines Matching refs:cma_heap
281 struct rk_cma_heap *cma_heap = buffer->heap; in rk_cma_heap_remove_dmabuf_list() local
282 struct rk_dma_heap *heap = cma_heap->heap; in rk_cma_heap_remove_dmabuf_list()
304 struct rk_cma_heap *cma_heap = buffer->heap; in rk_cma_heap_add_dmabuf_list() local
305 struct rk_dma_heap *heap = cma_heap->heap; in rk_cma_heap_add_dmabuf_list()
387 struct rk_cma_heap *cma_heap = buffer->heap; in rk_cma_heap_dma_buf_release() local
388 struct rk_dma_heap *heap = cma_heap->heap; in rk_cma_heap_dma_buf_release()
400 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in rk_cma_heap_dma_buf_release()
428 struct rk_cma_heap *cma_heap = rk_dma_heap_get_drvdata(heap); in rk_cma_heap_allocate() local
450 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, GFP_KERNEL); in rk_cma_heap_allocate()
488 buffer->heap = cma_heap; in rk_cma_heap_allocate()
521 cma_release(cma_heap->cma, cma_pages, pagecount); in rk_cma_heap_allocate()
531 struct rk_cma_heap *cma_heap = rk_dma_heap_get_drvdata(heap); in rk_cma_heap_allocate_pages() local
541 page = cma_alloc(cma_heap->cma, pagecount, align, GFP_KERNEL); in rk_cma_heap_allocate_pages()
547 cma_release(cma_heap->cma, page, pagecount); in rk_cma_heap_allocate_pages()
560 struct rk_cma_heap *cma_heap = rk_dma_heap_get_drvdata(heap); in rk_cma_heap_free_pages() local
565 cma_release(cma_heap->cma, page, pagecount); in rk_cma_heap_free_pages()
580 struct rk_cma_heap *cma_heap; in __rk_add_cma_heap() local
583 cma_heap = kzalloc(sizeof(*cma_heap), GFP_KERNEL); in __rk_add_cma_heap()
584 if (!cma_heap) in __rk_add_cma_heap()
586 cma_heap->cma = cma; in __rk_add_cma_heap()
590 exp_info.priv = cma_heap; in __rk_add_cma_heap()
593 cma_heap->heap = rk_dma_heap_add(&exp_info); in __rk_add_cma_heap()
594 if (IS_ERR(cma_heap->heap)) { in __rk_add_cma_heap()
595 int ret = PTR_ERR(cma_heap->heap); in __rk_add_cma_heap()
597 kfree(cma_heap); in __rk_add_cma_heap()
601 if (cma_heap->heap->procfs) in __rk_add_cma_heap()
602 proc_create_single_data("alloc_bitmap", 0, cma_heap->heap->procfs, in __rk_add_cma_heap()