Lines Matching refs:heap

30 	struct dma_heap *heap;  member
35 struct cma_heap *heap; member
154 dma_sync_single_for_cpu(dma_heap_get_dev(buffer->heap->heap), in cma_heap_dma_buf_begin_cpu_access_partial()
179 dma_sync_single_for_device(dma_heap_get_dev(buffer->heap->heap), in cma_heap_dma_buf_end_cpu_access_partial()
316 struct cma_heap *cma_heap = buffer->heap; in cma_heap_dma_buf_release()
347 static struct dma_buf *cma_heap_do_allocate(struct dma_heap *heap, in cma_heap_do_allocate() argument
352 struct cma_heap *cma_heap = dma_heap_get_drvdata(heap); in cma_heap_do_allocate()
414 buffer->heap = cma_heap; in cma_heap_do_allocate()
418 exp_info.exp_name = dma_heap_get_name(heap); in cma_heap_do_allocate()
430 dma = dma_map_page(dma_heap_get_dev(heap), buffer->cma_pages, 0, in cma_heap_do_allocate()
432 dma_unmap_page(dma_heap_get_dev(heap), dma, in cma_heap_do_allocate()
448 static struct dma_buf *cma_heap_allocate(struct dma_heap *heap, in cma_heap_allocate() argument
453 return cma_heap_do_allocate(heap, len, fd_flags, heap_flags, false); in cma_heap_allocate()
457 static int cma_heap_get_phys(struct dma_heap *heap, in cma_heap_get_phys() argument
460 struct cma_heap *cma_heap = dma_heap_get_drvdata(heap); in cma_heap_get_phys()
477 if (buffer->heap != cma_heap) in cma_heap_get_phys()
496 static struct dma_buf *cma_uncached_heap_allocate(struct dma_heap *heap, in cma_uncached_heap_allocate() argument
501 return cma_heap_do_allocate(heap, len, fd_flags, heap_flags, true); in cma_uncached_heap_allocate()
504 static struct dma_buf *cma_uncached_heap_not_initialized(struct dma_heap *heap, in cma_uncached_heap_not_initialized() argument
509 pr_info("heap %s not initialized\n", dma_heap_get_name(heap)); in cma_uncached_heap_not_initialized()
559 cma_heap->heap = dma_heap_add(&exp_info); in __add_cma_heap()
560 if (IS_ERR(cma_heap->heap)) { in __add_cma_heap()
561 ret = PTR_ERR(cma_heap->heap); in __add_cma_heap()
577 cma_uncached_heap->heap = dma_heap_add(&exp_info); in __add_cma_heap()
578 if (IS_ERR(cma_uncached_heap->heap)) { in __add_cma_heap()
579 ret = PTR_ERR(cma_uncached_heap->heap); in __add_cma_heap()
583 ret = set_heap_dev_dma(dma_heap_get_dev(cma_uncached_heap->heap)); in __add_cma_heap()
593 dma_heap_put(cma_uncached_heap->heap); in __add_cma_heap()
597 dma_heap_put(cma_heap->heap); in __add_cma_heap()