Home
last modified time | relevance | path

Searched refs:ion_client (Results 1 – 6 of 6) sorted by relevance

/device/linaro/hikey/gralloc960/
Dmali_gralloc_ion.cpp108 static int find_heap_id(int ion_client, char *name) in find_heap_id() argument
113 ret = ion_query_heap_cnt(ion_client, &cnt); in find_heap_id()
128 ret = ion_query_get_heaps(ion_client, cnt, data); in find_heap_id()
404 if (m->ion_client < 0) in mali_gralloc_ion_allocate()
406 m->ion_client = ion_open(); in mali_gralloc_ion_allocate()
408 if (m->ion_client < 0) in mali_gralloc_ion_allocate()
414 gralloc_legacy_ion = ion_is_legacy(m->ion_client); in mali_gralloc_ion_allocate()
417 system_heap_id = find_heap_id(m->ion_client, ION_SYSTEM); in mali_gralloc_ion_allocate()
418 cma_heap_id = find_heap_id(m->ion_client, ION_CMA); in mali_gralloc_ion_allocate()
421 ion_close(m->ion_client); in mali_gralloc_ion_allocate()
[all …]
Dmali_gralloc_module.h76 int ion_client; member
Dmali_gralloc_module.cpp186 ion_client = -1; in private_module_t()
/device/linaro/hikey/gralloc/
Dalloc_device.cpp152 ret = ion_alloc(m->ion_client, size, 0, ION_HEAP_TYPE_DMA_MASK, 0, &(ion_hnd)); in gralloc_alloc_buffer()
154 ret = ion_alloc(m->ion_client, size, 0, ION_HEAP_SYSTEM_MASK, 0, &(ion_hnd)); in gralloc_alloc_buffer()
158 AERR("Failed to ion_alloc from ion_client:%d", m->ion_client); in gralloc_alloc_buffer()
162 ret = ion_share(m->ion_client, ion_hnd, &shared_fd); in gralloc_alloc_buffer()
166 AERR("ion_share( %d ) failed", m->ion_client); in gralloc_alloc_buffer()
168 if (0 != ion_free(m->ion_client, ion_hnd)) in gralloc_alloc_buffer()
170 AERR("ion_free( %d ) failed", m->ion_client); in gralloc_alloc_buffer()
177 if (0 != ion_free(m->ion_client, ion_hnd)) in gralloc_alloc_buffer()
179 AWAR("ion_free( %d ) failed", m->ion_client); in gralloc_alloc_buffer()
186 ret = ion_alloc_fd(m->ion_client, size, 0, 1 << m->cma_heap_id, 0, &(shared_fd)); in gralloc_alloc_buffer()
[all …]
Dgralloc_module.cpp160 if (m->ion_client <= 0) in gralloc_register_buffer()
163 m->ion_client = ion_open(); in gralloc_register_buffer()
165 if (m->ion_client < 0) in gralloc_register_buffer()
Dgralloc_priv.h114 int ion_client; member