Home
last modified time | relevance | path

Searched refs:ump_mem_handle (Results 1 – 3 of 3) sorted by relevance

/device/linaro/hikey/gralloc/
Dalloc_device.cpp282 ump_handle ump_mem_handle; in gralloc_alloc_buffer() local
303 ump_mem_handle = UMP_INVALID_MEMORY_HANDLE; in gralloc_alloc_buffer()
314 ump_mem_handle = ump_ref_drv_allocate(size, constraints); in gralloc_alloc_buffer()
316 if (UMP_INVALID_MEMORY_HANDLE != ump_mem_handle) in gralloc_alloc_buffer()
318 cpu_ptr = ump_mapped_pointer_get(ump_mem_handle); in gralloc_alloc_buffer()
322 ump_id = ump_secure_id_get(ump_mem_handle); in gralloc_alloc_buffer()
327 private_handle_t::LOCK_STATE_MAPPED, ump_id, ump_mem_handle); in gralloc_alloc_buffer()
336 …c_alloc_buffer() failed to allocate handle. ump_handle = %p, ump_id = %d", ump_mem_handle, ump_id); in gralloc_alloc_buffer()
341 …AERR("gralloc_alloc_buffer() failed to retrieve valid secure id. ump_handle = %p", ump_mem_handle); in gralloc_alloc_buffer()
344 ump_mapped_pointer_release(ump_mem_handle); in gralloc_alloc_buffer()
[all …]
Dgralloc_module.cpp107 hnd->ump_mem_handle = (int)ump_handle_create_from_secure_id(hnd->ump_id); in gralloc_register_buffer()
109 if (UMP_INVALID_MEMORY_HANDLE != (ump_handle)hnd->ump_mem_handle) in gralloc_register_buffer()
111 hnd->base = ump_mapped_pointer_get((ump_handle)hnd->ump_mem_handle); in gralloc_register_buffer()
123 AERR("Failed to map UMP handle 0x%x", hnd->ump_mem_handle); in gralloc_register_buffer()
126 ump_reference_release((ump_handle)hnd->ump_mem_handle); in gralloc_register_buffer()
130 AERR("Failed to create UMP handle 0x%x", hnd->ump_mem_handle); in gralloc_register_buffer()
206 ump_mapped_pointer_release((ump_handle)hnd->ump_mem_handle); in unmap_buffer()
207 ump_reference_release((ump_handle)hnd->ump_mem_handle); in unmap_buffer()
208 hnd->ump_mem_handle = (int)UMP_INVALID_MEMORY_HANDLE; in unmap_buffer()
425 …ump_cpu_msync_now((ump_handle)hnd->ump_mem_handle, UMP_MSYNC_CLEAN_AND_INVALIDATE, (void *)hnd->ba… in gralloc_unlock()
Dgralloc_priv.h191 int ump_mem_handle; member
235 ump_mem_handle((int)handle), in private_handle_t()
269 ump_mem_handle((int)UMP_INVALID_MEMORY_HANDLE), in private_handle_t()
303 ump_mem_handle((int)UMP_INVALID_MEMORY_HANDLE), in private_handle_t()