Lines Matching refs:heap
18 * struct dma_heap_ops - ops to operate on a given heap
20 * @get_pool_size: if heap maintains memory pools, get pool size in bytes
25 struct dma_buf *(*allocate)(struct dma_heap *heap, unsigned long len, unsigned long fd_flags,
27 long (*get_pool_size)(struct dma_heap *heap);
31 * struct dma_heap_export_info - information needed to export a new dmabuf heap
33 * @ops: ops struct for this heap
34 * @priv: heap exporter private data
36 * Information needed to export a new dmabuf heap.
45 * dma_heap_get_drvdata() - get per-heap driver data
46 * @heap: DMA-Heap to retrieve private data for
49 * The per-heap data for the heap.
51 void *dma_heap_get_drvdata(struct dma_heap *heap);
54 * dma_heap_get_dev() - get device struct for the heap
55 * @heap: DMA-Heap to retrieve device struct from
58 * The device struct for the heap.
60 struct device *dma_heap_get_dev(struct dma_heap *heap);
63 * dma_heap_get_name() - get heap name
64 * @heap: DMA-Heap to retrieve private data for
67 * The char* for the heap name.
69 const char *dma_heap_get_name(struct dma_heap *heap);
72 * dma_heap_add - adds a heap to dmabuf heaps
73 * @exp_info: information needed to register this heap
79 * @heap: heap pointer
81 void dma_heap_put(struct dma_heap *heap);
85 * @name: Name of the heap to find
94 * @heap: dma_heap to allocate from
97 * @heap_flags: flags to pass to the dma heap
101 struct dma_buf *dma_heap_buffer_alloc(struct dma_heap *heap, size_t len, unsigned int fd_flags,
113 * @heap: dma_heap to allocate from
116 * @heap_flags: flags to pass to the dma heap
118 int dma_heap_bufferfd_alloc(struct dma_heap *heap, size_t len, unsigned int fd_flags, unsigned int heap_flags);