Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/staging/android/ion/
Dion_priv.h32 struct ion_buffer *ion_handle_buffer(struct ion_handle *handle);
61 struct ion_buffer { struct
88 void ion_buffer_destroy(struct ion_buffer *buffer); argument
111 struct ion_buffer *buffer, unsigned long len,
113 void (*free)(struct ion_buffer *buffer);
114 int (*phys)(struct ion_heap *heap, struct ion_buffer *buffer,
117 struct ion_buffer *buffer);
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);
[all …]
Dion_cma_heap.c44 static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer, in ion_cma_allocate()
93 static void ion_cma_free(struct ion_buffer *buffer) in ion_cma_free()
109 static int ion_cma_phys(struct ion_heap *heap, struct ion_buffer *buffer, in ion_cma_phys()
126 struct ion_buffer *buffer) in ion_cma_heap_map_dma()
134 struct ion_buffer *buffer) in ion_cma_heap_unmap_dma()
138 static int ion_cma_mmap(struct ion_heap *mapper, struct ion_buffer *buffer, in ion_cma_mmap()
150 struct ion_buffer *buffer) in ion_cma_map_kernel()
158 struct ion_buffer *buffer) in ion_cma_unmap_kernel()
Dion.c112 struct ion_buffer *buffer;
118 bool ion_buffer_fault_user_mappings(struct ion_buffer *buffer) in ion_buffer_fault_user_mappings()
124 bool ion_buffer_cached(struct ion_buffer *buffer) in ion_buffer_cached()
151 struct ion_buffer *buffer) in ion_buffer_add()
155 struct ion_buffer *entry; in ion_buffer_add()
159 entry = rb_entry(parent, struct ion_buffer, node); in ion_buffer_add()
176 static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, in ion_buffer_create()
182 struct ion_buffer *buffer; in ion_buffer_create()
187 buffer = kzalloc(sizeof(struct ion_buffer), GFP_KERNEL); in ion_buffer_create()
272 void ion_buffer_destroy(struct ion_buffer *buffer) in ion_buffer_destroy()
[all …]
Dion_system_heap.c56 struct ion_buffer *buffer, in alloc_buffer_page()
81 struct ion_buffer *buffer, struct page *page) in free_buffer_page()
97 struct ion_buffer *buffer, in alloc_largest_available()
121 struct ion_buffer *buffer, in ion_system_heap_allocate()
178 static void ion_system_heap_free(struct ion_buffer *buffer) in ion_system_heap_free()
200 struct ion_buffer *buffer) in ion_system_heap_map_dma()
206 struct ion_buffer *buffer) in ion_system_heap_unmap_dma()
310 struct ion_buffer *buffer, in ion_system_contig_heap_allocate()
361 static void ion_system_contig_heap_free(struct ion_buffer *buffer) in ion_system_contig_heap_free()
375 struct ion_buffer *buffer, in ion_system_contig_heap_phys()
[all …]
Dion_heap.c29 struct ion_buffer *buffer) in ion_heap_map_kernel()
66 struct ion_buffer *buffer) in ion_heap_unmap_kernel()
71 int ion_heap_map_user(struct ion_heap *heap, struct ion_buffer *buffer, in ion_heap_map_user()
141 int ion_heap_buffer_zero(struct ion_buffer *buffer) in ion_heap_buffer_zero()
163 void ion_heap_freelist_add(struct ion_heap *heap, struct ion_buffer *buffer) in ion_heap_freelist_add()
186 struct ion_buffer *buffer; in _ion_heap_freelist_drain()
199 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in _ion_heap_freelist_drain()
230 struct ion_buffer *buffer; in ion_heap_deferred_free()
240 buffer = list_first_entry(&heap->free_list, struct ion_buffer, in ion_heap_deferred_free()
Dion_carveout_heap.c60 struct ion_buffer *buffer, in ion_carveout_heap_phys()
73 struct ion_buffer *buffer, in ion_carveout_heap_allocate()
109 static void ion_carveout_heap_free(struct ion_buffer *buffer) in ion_carveout_heap_free()
128 struct ion_buffer *buffer) in ion_carveout_heap_map_dma()
134 struct ion_buffer *buffer) in ion_carveout_heap_unmap_dma()
Dion_chunk_heap.c37 struct ion_buffer *buffer, in ion_chunk_heap_allocate()
93 static void ion_chunk_heap_free(struct ion_buffer *buffer) in ion_chunk_heap_free()
121 struct ion_buffer *buffer) in ion_chunk_heap_map_dma()
127 struct ion_buffer *buffer) in ion_chunk_heap_unmap_dma()
Dion.h29 struct ion_buffer;