Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/include/linux/
H A Dion.h40 struct ion_heap *heap;
66 int (*allocate)(struct ion_heap *heap,
70 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan);
71 long (*get_pool_size)(struct ion_heap *heap);
117 struct ion_heap { struct
171 int __ion_device_add_heap(struct ion_heap *heap, struct module *owner);
178 void ion_device_remove_heap(struct ion_heap *heap);
188 int ion_heap_init_shrinker(struct ion_heap *heap);
198 int ion_heap_init_deferred_free(struct ion_heap *heap);
207 void ion_heap_freelist_add(struct ion_heap *heap, struct ion_buffer *buffer);
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/
H A Dion_heap.c23 struct ion_heap *heap = container_of(shrinker, struct ion_heap, in ion_heap_shrink_count()
38 struct ion_heap *heap = container_of(shrinker, struct ion_heap, in ion_heap_shrink_scan()
64 static size_t _ion_heap_freelist_drain(struct ion_heap *heap, size_t size, in _ion_heap_freelist_drain()
98 struct ion_heap *heap = data; in ion_heap_deferred_free()
125 void *ion_heap_map_kernel(struct ion_heap *heap, in ion_heap_map_kernel()
164 void ion_heap_unmap_kernel(struct ion_heap *heap, in ion_heap_unmap_kernel()
171 int ion_heap_map_user(struct ion_heap *heap, struct ion_buffer *buffer, in ion_heap_map_user()
208 void ion_heap_freelist_add(struct ion_heap *heap, struct ion_buffer *buffer) in ion_heap_freelist_add()
217 size_t ion_heap_freelist_size(struct ion_heap *heap) in ion_heap_freelist_size()
228 size_t ion_heap_freelist_drain(struct ion_heap *heap, size_t size) in ion_heap_freelist_drain()
[all …]
H A Dion_dma_buf.c54 struct ion_heap *heap = buffer->heap; in ion_dma_buf_attach()
88 struct ion_heap *heap = buffer->heap; in ion_dma_buf_detatch()
105 struct ion_heap *heap = buffer->heap; in ion_map_dma_buf()
133 struct ion_heap *heap = buffer->heap; in ion_unmap_dma_buf()
153 struct ion_heap *heap = buffer->heap; in ion_dma_buf_release()
165 struct ion_heap *heap = buffer->heap; in ion_dma_buf_begin_cpu_access()
193 struct ion_heap *heap = buffer->heap; in ion_dma_buf_begin_cpu_access_partial()
210 struct ion_heap *heap = buffer->heap; in ion_dma_buf_end_cpu_access()
238 struct ion_heap *heap = buffer->heap; in ion_dma_buf_end_cpu_access_partial()
254 struct ion_heap *heap = buffer->heap; in ion_dma_buf_mmap()
[all …]
H A Dion_protected_heap.c169 struct ion_heap heap;
180 static void free_buffer_page(struct ion_heap *heap, in free_buffer_page()
199 static struct page *alloc_buffer_page(struct ion_heap *heap, in alloc_buffer_page()
221 static struct page_info *alloc_largest_available(struct ion_heap *heap, in alloc_largest_available()
254 static int ion_protected_heap_allocate(struct ion_heap *heap, in ion_protected_heap_allocate()
362 static int ion_protected_heap_shrink(struct ion_heap *heap, gfp_t gfp_mask, in ion_protected_heap_shrink()
406 static int ion_protected_heap_debug_show(struct ion_heap *heap, in ion_protected_heap_debug_show()
481 static struct ion_heap *__ion_protected_heap_create(void) in __ion_protected_heap_create()
513 struct ion_heap *heap; in ion_protected_heap_create()
H A Dion.c69 struct ion_heap *heap; in ion_query_heaps_kernel()
102 struct ion_heap *heap; in ion_query_heaps()
229 struct ion_heap *heap = data; in debug_shrink_set()
247 struct ion_heap *heap = data; in debug_shrink_get()
262 static int ion_assign_heap_id(struct ion_heap *heap, struct ion_device *dev) in ion_assign_heap_id()
312 int __ion_device_add_heap(struct ion_heap *heap, struct module *owner) in __ion_device_add_heap()
401 void ion_device_remove_heap(struct ion_heap *heap) in ion_device_remove_heap()
438 struct ion_heap *heap; in total_pools_kb_show()
H A Dion_buffer.c35 static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, in ion_buffer_create()
136 struct ion_heap *heap; in ion_buffer_alloc()
229 struct ion_heap *heap; in ion_buffer_destroy()
H A DMakefile2 obj-$(CONFIG_ION) += ion.o ion_buffer.o ion_dma_buf.o ion_heap.o
H A Dion_private.h54 extern int ion_heap_cleanup(struct ion_heap *heap);
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/
H A Dsdp_basic.c431 int ion_heap, int rnd_offset, int verbosity) in sdp_basic_test() argument
459 fd = allocate_ion_buffer(sdp_size, ion_heap, verbosity); in sdp_basic_test()
462 sdp_size, ion_heap, fd); in sdp_basic_test()
574 int sdp_out_of_bounds_memref_test(size_t size, int ion_heap, int verbosity) in sdp_out_of_bounds_memref_test() argument
586 fd = allocate_ion_buffer(size, ion_heap, verbosity); in sdp_out_of_bounds_memref_test()
589 size, ion_heap, fd); in sdp_out_of_bounds_memref_test()
651 static void usage(const char *progname, size_t size, int loop, int ion_heap) in usage() argument
665 fprintf(stderr, " --ion-heap ID Target ION heap ID [%d]\n", ion_heap); in usage()
690 int ion_heap = DEFAULT_ION_HEAP_TYPE; in sdp_basic_runner_cmd_parser() local
699 usage(argv[0], test_size, test_loop, ion_heap); in sdp_basic_runner_cmd_parser()
[all …]
H A Dsdp_basic.h24 size_t size, size_t loop, int ion_heap,
27 int sdp_out_of_bounds_memref_test(size_t size, int ion_heap, int verbosity);
H A Daes_perf.c32 static int ion_heap = DEFAULT_ION_HEAP_TYPE; variable
219 …intf(stderr, " --ion-heap ID Set ION heap ID where to allocate secure buffers [%d]\n", ion_heap); in usage()
259 input_sdp_fd = allocate_ion_buffer(sz, ion_heap, verbosity); in alloc_buffers()
274 output_sdp_fd = allocate_ion_buffer(sz, ion_heap, verbosity); in alloc_buffers()
646 ion_heap = atoi(argv[i]); in aes_perf_runner_cmd_parser()
H A Dregression_1000.c1227 int ion_heap = DEFAULT_ION_HEAP_TYPE; in xtest_tee_test_1014() local
1234 ret = sdp_basic_test(test, size, loop, ion_heap, rnd_offset, 0); in xtest_tee_test_1014()
1240 ret = sdp_basic_test(test, size, loop, ion_heap, rnd_offset, 0); in xtest_tee_test_1014()
1246 ret = sdp_basic_test(test, size, loop, ion_heap, rnd_offset, 0); in xtest_tee_test_1014()
1252 ret = sdp_basic_test(test, size, loop, ion_heap, rnd_offset, 0); in xtest_tee_test_1014()
1257 ret = sdp_out_of_bounds_memref_test(size, ion_heap, 0); in xtest_tee_test_1014()
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/heaps/
H A Dion_system_heap.c45 struct ion_heap heap;
99 static int ion_system_heap_allocate(struct ion_heap *heap, in ion_system_heap_allocate()
230 static int ion_system_heap_shrink(struct ion_heap *heap, gfp_t gfp_mask, in ion_system_heap_shrink()
265 static long ion_system_get_pool_size(struct ion_heap *heap) in ion_system_get_pool_size()
H A Dion_cma_heap.c19 struct ion_heap heap;
26 static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer, in ion_cma_allocate()
/OK3568_Linux_fs/external/mpp/osal/allocator/
H A Dion.h63 struct ion_heap;
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/rockchip/
H A Drockchip_ion.c29 static struct ion_heap **heaps;