Home
last modified time | relevance | path

Searched refs:rk_dma_heap (Results 1 – 9 of 9) sorted by relevance

/OK3568_Linux_fs/kernel/include/linux/
H A Drk-dma-heap.h15 struct rk_dma_heap;
36 struct rk_dma_heap *rk_dma_heap_find(const char *name);
54 struct dma_buf *rk_dma_heap_buffer_alloc(struct rk_dma_heap *heap, size_t len,
66 int rk_dma_heap_bufferfd_alloc(struct rk_dma_heap *heap, size_t len,
77 struct page *rk_dma_heap_alloc_contig_pages(struct rk_dma_heap *heap,
87 void rk_dma_heap_free_contig_pages(struct rk_dma_heap *heap, struct page *pages,
101 static inline struct rk_dma_heap *rk_dma_heap_find(const char *name) in rk_dma_heap_find()
110 static inline struct dma_buf *rk_dma_heap_buffer_alloc(struct rk_dma_heap *heap, size_t len, in rk_dma_heap_buffer_alloc()
118 static inline int rk_dma_heap_bufferfd_alloc(struct rk_dma_heap *heap, size_t len, in rk_dma_heap_bufferfd_alloc()
126 static inline struct page *rk_dma_heap_alloc_contig_pages(struct rk_dma_heap *heap, in rk_dma_heap_alloc_contig_pages()
[all …]
/OK3568_Linux_fs/kernel/drivers/dma-buf/rk_heaps/
H A Drk-dma-heap.h42 struct dma_buf *(*allocate)(struct rk_dma_heap *heap,
47 struct page *(*alloc_contig_pages)(struct rk_dma_heap *heap,
49 void (*free_contig_pages)(struct rk_dma_heap *heap,
52 long (*get_pool_size)(struct rk_dma_heap *heap);
81 struct rk_dma_heap { struct
122 void *rk_dma_heap_get_drvdata(struct rk_dma_heap *heap);
131 struct device *rk_dma_heap_get_dev(struct rk_dma_heap *heap);
140 const char *rk_dma_heap_get_name(struct rk_dma_heap *heap);
146 struct rk_dma_heap *rk_dma_heap_add(const struct rk_dma_heap_export_info *exp_info);
152 void rk_dma_heap_put(struct rk_dma_heap *heap);
[all …]
H A Drk-dma-heap.c95 struct rk_dma_heap *rk_dma_heap_find(const char *name) in rk_dma_heap_find()
97 struct rk_dma_heap *h; in rk_dma_heap_find()
118 struct dma_buf *rk_dma_heap_buffer_alloc(struct rk_dma_heap *heap, size_t len, in rk_dma_heap_buffer_alloc()
147 int rk_dma_heap_bufferfd_alloc(struct rk_dma_heap *heap, size_t len, in rk_dma_heap_bufferfd_alloc()
172 struct page *rk_dma_heap_alloc_contig_pages(struct rk_dma_heap *heap, in rk_dma_heap_alloc_contig_pages()
188 void rk_dma_heap_free_contig_pages(struct rk_dma_heap *heap, in rk_dma_heap_free_contig_pages()
201 void rk_dma_heap_total_inc(struct rk_dma_heap *heap, size_t len) in rk_dma_heap_total_inc()
208 void rk_dma_heap_total_dec(struct rk_dma_heap *heap, size_t len) in rk_dma_heap_total_dec()
220 struct rk_dma_heap *heap; in rk_dma_heap_open()
238 struct rk_dma_heap *heap = file->private_data; in rk_dma_heap_ioctl_allocate()
[all …]
H A Drk-cma-heap.c33 struct rk_dma_heap *heap;
282 struct rk_dma_heap *heap = cma_heap->heap; in rk_cma_heap_remove_dmabuf_list()
305 struct rk_dma_heap *heap = cma_heap->heap; in rk_cma_heap_add_dmabuf_list()
326 static int rk_cma_heap_remove_contig_list(struct rk_dma_heap *heap, in rk_cma_heap_remove_contig_list()
348 static int rk_cma_heap_add_contig_list(struct rk_dma_heap *heap, in rk_cma_heap_add_contig_list()
388 struct rk_dma_heap *heap = cma_heap->heap; in rk_cma_heap_dma_buf_release()
422 static struct dma_buf *rk_cma_heap_allocate(struct rk_dma_heap *heap, in rk_cma_heap_allocate()
528 static struct page *rk_cma_heap_allocate_pages(struct rk_dma_heap *heap, in rk_cma_heap_allocate_pages()
556 static void rk_cma_heap_free_pages(struct rk_dma_heap *heap, in rk_cma_heap_free_pages()
H A DKconfig7 This options creates per heap chardevs in /dev/rk_dma_heap/ which
/OK3568_Linux_fs/kernel/drivers/media/common/videobuf2/
H A Dvideobuf2-cma-sg.c100 struct rk_dma_heap *heap __maybe_unused; in vb2_cma_sg_alloc_contiguous()
106 struct rk_dma_heap *heap = rk_dma_heap_find("rk-dma-heap-cma"); in vb2_cma_sg_alloc_contiguous()
129 struct rk_dma_heap *heap = rk_dma_heap_find("rk-dma-heap-cma"); in vb2_cma_sg_free_contiguous()
/OK3568_Linux_fs/external/linux-rga/samples/im2d_slt/chip_config/
H A Drv1106_slt_config.h.template27 #define IM2D_SLT_RK_DMA_HEAP_EN 1 /* Enable rk_dma_heap. Only rv1106. */
H A Drk3528_rk3562_android_slt_config.h.template27 #define IM2D_SLT_RK_DMA_HEAP_EN 0 /* Enable rk_dma_heap. Only rv1106. */
/OK3568_Linux_fs/kernel/drivers/rknpu/include/
H A Drknpu_drv.h108 struct rk_dma_heap *heap;