OrangePi_CM5/drivers/dma-buf/heaps
John Stultz 349e8360c9 ANDROID: dma-heap: Rework allocation calls to return struct dma_buf instead of fd
While most uses will want to allocate a fd for a dmabuf, there
are some cases where it might be useful to have just a dma_buf structure.

So refactor the heap allocaiton functions to return a struct dma_buf
and add a dma_heap_bufferfd_alloc() function to convert that return a fd.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: Id6fd7e8471b9555a08bcdf8ca210feb589fa51c1
Bug: 154341375
2020-08-21 20:24:29 +00:00
..
Kconfig dma-buf: heaps: Add CMA heap to dmabuf heaps 2019-12-11 11:13:37 +05:30
Makefile dma-buf: heaps: Add CMA heap to dmabuf heaps 2019-12-11 11:13:37 +05:30
cma_heap.c ANDROID: dma-heap: Rework allocation calls to return struct dma_buf instead of fd 2020-08-21 20:24:29 +00:00
heap-helpers.c dma-buf: heaps: Add heap helpers 2019-12-11 11:13:35 +05:30
heap-helpers.h dma-buf: heaps: Add heap helpers 2019-12-11 11:13:35 +05:30
system_heap.c ANDROID: dma-heap: Rework allocation calls to return struct dma_buf instead of fd 2020-08-21 20:24:29 +00:00