Searched refs:cma_heap (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/dma-buf/heaps/ |
D | cma_heap.c | 24 struct cma_heap { struct 31 struct cma_heap *cma_heap = dma_heap_get_drvdata(buffer->heap); in cma_heap_free() local 38 cma_release(cma_heap->cma, cma_pages, nr_pages); in cma_heap_free() 48 struct cma_heap *cma_heap = dma_heap_get_drvdata(heap); in cma_heap_allocate() local 69 cma_pages = cma_alloc(cma_heap->cma, nr_pages, align, false); in cma_heap_allocate() 130 cma_release(cma_heap->cma, cma_pages, nr_pages); in cma_heap_allocate() 142 struct cma_heap *cma_heap; in __add_cma_heap() local 145 cma_heap = kzalloc(sizeof(*cma_heap), GFP_KERNEL); in __add_cma_heap() 146 if (!cma_heap) in __add_cma_heap() 148 cma_heap->cma = cma; in __add_cma_heap() [all …]
|
D | Makefile | 4 obj-$(CONFIG_DMABUF_HEAPS_CMA) += cma_heap.o
|
/Linux-v5.10/drivers/staging/android/ion/ |
D | ion_cma_heap.c | 31 struct ion_cma_heap *cma_heap = to_cma_heap(heap); in ion_cma_allocate() local 42 pages = cma_alloc(cma_heap->cma, nr_pages, align, false); in ion_cma_allocate() 79 cma_release(cma_heap->cma, pages, nr_pages); in ion_cma_allocate() 85 struct ion_cma_heap *cma_heap = to_cma_heap(buffer->heap); in ion_cma_free() local 90 cma_release(cma_heap->cma, pages, nr_pages); in ion_cma_free() 106 struct ion_cma_heap *cma_heap; in __ion_cma_heap_create() local 108 cma_heap = kzalloc(sizeof(*cma_heap), GFP_KERNEL); in __ion_cma_heap_create() 110 if (!cma_heap) in __ion_cma_heap_create() 113 cma_heap->heap.ops = &ion_cma_ops; in __ion_cma_heap_create() 114 cma_heap->cma = cma; in __ion_cma_heap_create() [all …]
|