Home
last modified time | relevance | path

Searched refs:ion_heap (Results 1 – 11 of 11) sorted by relevance

/linux-4.1.27/drivers/staging/android/ion/
Dion_priv.h68 struct ion_heap *heap;
110 int (*allocate)(struct ion_heap *heap,
114 int (*phys)(struct ion_heap *heap, struct ion_buffer *buffer,
116 struct sg_table * (*map_dma)(struct ion_heap *heap,
118 void (*unmap_dma)(struct ion_heap *heap, struct ion_buffer *buffer);
119 void * (*map_kernel)(struct ion_heap *heap, struct ion_buffer *buffer);
120 void (*unmap_kernel)(struct ion_heap *heap, struct ion_buffer *buffer);
121 int (*map_user)(struct ion_heap *mapper, struct ion_buffer *buffer,
123 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan);
167 struct ion_heap { struct
[all …]
Dion_heap.c28 void *ion_heap_map_kernel(struct ion_heap *heap, in ion_heap_map_kernel()
65 void ion_heap_unmap_kernel(struct ion_heap *heap, in ion_heap_unmap_kernel()
71 int ion_heap_map_user(struct ion_heap *heap, struct ion_buffer *buffer, in ion_heap_map_user()
163 void ion_heap_freelist_add(struct ion_heap *heap, struct ion_buffer *buffer) in ion_heap_freelist_add()
172 size_t ion_heap_freelist_size(struct ion_heap *heap) in ion_heap_freelist_size()
183 static size_t _ion_heap_freelist_drain(struct ion_heap *heap, size_t size, in _ion_heap_freelist_drain()
215 size_t ion_heap_freelist_drain(struct ion_heap *heap, size_t size) in ion_heap_freelist_drain()
220 size_t ion_heap_freelist_shrink(struct ion_heap *heap, size_t size) in ion_heap_freelist_shrink()
227 struct ion_heap *heap = data; in ion_heap_deferred_free()
251 int ion_heap_init_deferred_free(struct ion_heap *heap) in ion_heap_init_deferred_free()
[all …]
Dion_carveout_heap.c29 struct ion_heap heap;
34 ion_phys_addr_t ion_carveout_allocate(struct ion_heap *heap, in ion_carveout_allocate()
48 void ion_carveout_free(struct ion_heap *heap, ion_phys_addr_t addr, in ion_carveout_free()
59 static int ion_carveout_heap_phys(struct ion_heap *heap, in ion_carveout_heap_phys()
72 static int ion_carveout_heap_allocate(struct ion_heap *heap, in ion_carveout_heap_allocate()
111 struct ion_heap *heap = buffer->heap; in ion_carveout_heap_free()
127 static struct sg_table *ion_carveout_heap_map_dma(struct ion_heap *heap, in ion_carveout_heap_map_dma()
133 static void ion_carveout_heap_unmap_dma(struct ion_heap *heap, in ion_carveout_heap_unmap_dma()
149 struct ion_heap *ion_carveout_heap_create(struct ion_platform_heap *heap_data) in ion_carveout_heap_create()
185 void ion_carveout_heap_destroy(struct ion_heap *heap) in ion_carveout_heap_destroy()
Dion_cma_heap.c30 struct ion_heap heap;
44 static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer, in ion_cma_allocate()
109 static int ion_cma_phys(struct ion_heap *heap, struct ion_buffer *buffer, in ion_cma_phys()
125 static struct sg_table *ion_cma_heap_map_dma(struct ion_heap *heap, in ion_cma_heap_map_dma()
133 static void ion_cma_heap_unmap_dma(struct ion_heap *heap, in ion_cma_heap_unmap_dma()
138 static int ion_cma_mmap(struct ion_heap *mapper, struct ion_buffer *buffer, in ion_cma_mmap()
149 static void *ion_cma_map_kernel(struct ion_heap *heap, in ion_cma_map_kernel()
157 static void ion_cma_unmap_kernel(struct ion_heap *heap, in ion_cma_unmap_kernel()
173 struct ion_heap *ion_cma_heap_create(struct ion_platform_heap *data) in ion_cma_heap_create()
190 void ion_cma_heap_destroy(struct ion_heap *heap) in ion_cma_heap_destroy()
Dion_system_heap.c51 struct ion_heap heap;
120 static int ion_system_heap_allocate(struct ion_heap *heap, in ion_system_heap_allocate()
199 static struct sg_table *ion_system_heap_map_dma(struct ion_heap *heap, in ion_system_heap_map_dma()
205 static void ion_system_heap_unmap_dma(struct ion_heap *heap, in ion_system_heap_unmap_dma()
210 static int ion_system_heap_shrink(struct ion_heap *heap, gfp_t gfp_mask, in ion_system_heap_shrink()
239 static int ion_system_heap_debug_show(struct ion_heap *heap, struct seq_file *s, in ion_system_heap_debug_show()
261 struct ion_heap *ion_system_heap_create(struct ion_platform_heap *unused) in ion_system_heap_create()
297 void ion_system_heap_destroy(struct ion_heap *heap) in ion_system_heap_destroy()
309 static int ion_system_contig_heap_allocate(struct ion_heap *heap, in ion_system_contig_heap_allocate()
374 static int ion_system_contig_heap_phys(struct ion_heap *heap, in ion_system_contig_heap_phys()
[all …]
Dion_chunk_heap.c28 struct ion_heap heap;
36 static int ion_chunk_heap_allocate(struct ion_heap *heap, in ion_chunk_heap_allocate()
95 struct ion_heap *heap = buffer->heap; in ion_chunk_heap_free()
120 static struct sg_table *ion_chunk_heap_map_dma(struct ion_heap *heap, in ion_chunk_heap_map_dma()
126 static void ion_chunk_heap_unmap_dma(struct ion_heap *heap, in ion_chunk_heap_unmap_dma()
141 struct ion_heap *ion_chunk_heap_create(struct ion_platform_heap *heap_data) in ion_chunk_heap_create()
186 void ion_chunk_heap_destroy(struct ion_heap *heap) in ion_chunk_heap_destroy()
Dion_dummy_driver.c29 static struct ion_heap **heaps;
71 heaps = kcalloc(dummy_ion_pdata.nr, sizeof(struct ion_heap *), in ion_dummy_init()
DMakefile1 obj-$(CONFIG_ION) += ion.o ion_heap.o ion_page_pool.o ion_system_heap.o \
Dion.h26 struct ion_heap;
Dion.c176 static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, in ion_buffer_create()
285 struct ion_heap *heap = buffer->heap; in _ion_buffer_destroy()
479 struct ion_heap *heap; in ion_alloc()
1397 struct ion_heap *heap = s->private; in ion_debug_heap_show()
1472 struct ion_heap *heap = data; in debug_shrink_set()
1491 struct ion_heap *heap = data; in debug_shrink_get()
1507 void ion_device_add_heap(struct ion_device *dev, struct ion_heap *heap) in ion_device_add_heap()
/linux-4.1.27/drivers/staging/android/ion/tegra/
Dtegra_ion.c25 static struct ion_heap **heaps;
36 sizeof(struct ion_heap *) * pdata->nr, in tegra_ion_probe()