Home
last modified time | relevance | path

Searched refs:ion_buffer (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/staging/android/ion/
Dion.h63 struct ion_buffer { struct
81 void ion_buffer_destroy(struct ion_buffer *buffer); argument
117 struct ion_buffer *buffer, unsigned long len,
119 void (*free)(struct ion_buffer *buffer);
120 void * (*map_kernel)(struct ion_heap *heap, struct ion_buffer *buffer);
121 void (*unmap_kernel)(struct ion_heap *heap, struct ion_buffer *buffer);
122 int (*map_user)(struct ion_heap *mapper, struct ion_buffer *buffer,
197 void *ion_heap_map_kernel(struct ion_heap *heap, struct ion_buffer *buffer);
198 void ion_heap_unmap_kernel(struct ion_heap *heap, struct ion_buffer *buffer);
199 int ion_heap_map_user(struct ion_heap *heap, struct ion_buffer *buffer,
[all …]
Dion.c38 struct ion_buffer *buffer) in ion_buffer_add()
42 struct ion_buffer *entry; in ion_buffer_add()
46 entry = rb_entry(parent, struct ion_buffer, node); in ion_buffer_add()
63 static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, in ion_buffer_create()
68 struct ion_buffer *buffer; in ion_buffer_create()
112 void ion_buffer_destroy(struct ion_buffer *buffer) in ion_buffer_destroy()
123 static void _ion_buffer_destroy(struct ion_buffer *buffer) in _ion_buffer_destroy()
138 static void *ion_buffer_kmap_get(struct ion_buffer *buffer) in ion_buffer_kmap_get()
157 static void ion_buffer_kmap_put(struct ion_buffer *buffer) in ion_buffer_kmap_put()
209 struct ion_buffer *buffer = dmabuf->priv; in ion_dma_buf_attach()
[all …]
Dion_heap.c20 struct ion_buffer *buffer) in ion_heap_map_kernel()
58 struct ion_buffer *buffer) in ion_heap_unmap_kernel()
63 int ion_heap_map_user(struct ion_heap *heap, struct ion_buffer *buffer, in ion_heap_map_user()
133 int ion_heap_buffer_zero(struct ion_buffer *buffer) in ion_heap_buffer_zero()
155 void ion_heap_freelist_add(struct ion_heap *heap, struct ion_buffer *buffer) in ion_heap_freelist_add()
178 struct ion_buffer *buffer; in _ion_heap_freelist_drain()
191 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in _ion_heap_freelist_drain()
222 struct ion_buffer *buffer; in ion_heap_deferred_free()
232 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in ion_heap_deferred_free()
Dion_system_heap.c48 struct ion_buffer *buffer, in alloc_buffer_page()
57 struct ion_buffer *buffer, struct page *page) in free_buffer_page()
74 struct ion_buffer *buffer, in alloc_largest_available()
98 struct ion_buffer *buffer, in ion_system_heap_allocate()
152 static void ion_system_heap_free(struct ion_buffer *buffer) in ion_system_heap_free()
307 struct ion_buffer *buffer, in ion_system_contig_heap_allocate()
352 static void ion_system_contig_heap_free(struct ion_buffer *buffer) in ion_system_contig_heap_free()
Dion_cma_heap.c27 static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer, in ion_cma_allocate()
83 static void ion_cma_free(struct ion_buffer *buffer) in ion_cma_free()
Dion_carveout_heap.c51 struct ion_buffer *buffer, in ion_carveout_heap_allocate()
84 static void ion_carveout_heap_free(struct ion_buffer *buffer) in ion_carveout_heap_free()
Dion_chunk_heap.c27 struct ion_buffer *buffer, in ion_chunk_heap_allocate()
80 static void ion_chunk_heap_free(struct ion_buffer *buffer) in ion_chunk_heap_free()